public class ExperimenterWrapper extends ObjectWrapper<ExperimenterData> implements Experimenter
Wraps function calls to the ExperimenterData contained.
data| Constructor and Description |
|---|
ExperimenterWrapper(ExperimenterData experimenter)
Constructor of the class ExperimenterWrapper.
|
| Modifier and Type | Method and Description |
|---|---|
Group |
getDefaultGroup()
Returns the default Group for this Experimenter
|
String |
getEmail()
Returns the e-mail of the experimenter.
|
String |
getFirstName()
Returns the first name of the experimenter.
|
List<Group> |
getGroups()
Returns the groups the experimenter is a member of.
|
String |
getInstitution()
Returns the institution where the experimenter works.
|
String |
getLastName()
Returns the last name of the experimenter.
|
String |
getMiddleName()
Returns the middle name of the experimenter.
|
String |
getUserName()
Returns the last name of the experimenter.
|
boolean |
isActive()
Returns
true if the experimenter is active, false otherwise. |
boolean |
isLDAP()
Returns
true if the user is connected via LDAP. |
boolean |
isMemberOfGroup(long groupId)
Checks if supplied group id matches any group to which the current experimenter belongs to.
|
void |
setEmail(String email)
Sets the e-mail of the experimenter.
|
void |
setFirstName(String firstName)
Sets the first name of the experimenter.
|
void |
setInstitution(String institution)
Sets the institution where the experimenter works.
|
void |
setLastName(String lastName)
Sets the last name of the experimenter.
|
void |
setMiddleName(String middleName)
Sets the middle name of the experimenter.
|
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasDataObjectcanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdatepublic ExperimenterWrapper(ExperimenterData experimenter)
experimenter - The ExperimenterData to wrap in the ExperimenterWrapper.public String getFirstName()
getFirstName in interface Experimenterpublic void setFirstName(String firstName)
setFirstName in interface ExperimenterfirstName - The value to set.public String getLastName()
getLastName in interface Experimenterpublic void setLastName(String lastName)
setLastName in interface ExperimenterlastName - The value to set.public String getUserName()
getUserName in interface Experimenterpublic String getEmail()
getEmail in interface Experimenterpublic void setEmail(String email)
setEmail in interface Experimenteremail - The value to set.public String getInstitution()
getInstitution in interface Experimenterpublic void setInstitution(String institution)
setInstitution in interface Experimenterinstitution - The value to set.public List<Group> getGroups()
getGroups in interface Experimenterpublic Group getDefaultGroup()
getDefaultGroup in interface Experimenterpublic String getMiddleName()
getMiddleName in interface Experimenterpublic void setMiddleName(String middleName)
setMiddleName in interface ExperimentermiddleName - The value to set.public boolean isActive()
true if the experimenter is active, false otherwise.isActive in interface Experimenterpublic boolean isMemberOfGroup(long groupId)
isMemberOfGroup in interface ExperimentergroupId - The ID of the group.true/false depending on the matching id foundpublic boolean isLDAP()
true if the user is connected via LDAP.isLDAP in interface ExperimenterCopyright © 2020–2023 GReD. All rights reserved.