public class ExperimenterData extends DataObject
| Modifier and Type | Field and Description |
|---|---|
static String |
EMAIL
Identifies the
Experimenter#EMAIL field. |
static String |
FIRSTNAME
Identifies the
Experimenter#FIRSTNAME field. |
static String |
GROUP_EXPERIMENTER_MAP
Identifies the
Experimenter#GROUPEXPERIMENTERMAP field. |
static String |
INSTITUTION
Identifies the
Experimenter#INSTITUTION field. |
static String |
LASTNAME
Identifies the
Experimenter#LASTNAME field. |
static String |
MIDDLENAME
Identifies the
Experimenter#MIDDLENAME field. |
static String |
OMENAME
Identifies the
Experimenter#OMENAME field. |
| Constructor and Description |
|---|
ExperimenterData()
Creates a new instance.
|
ExperimenterData(omero.model.Experimenter experimenter)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
GroupData |
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.
|
long |
getGroupId()
Overridden to return the id of the default group.
|
List<GroupData> |
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 |
setGroups(List<GroupData> newValue)
Sets the groups the experimenter is a member of.
|
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.
|
asAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canDelete, canEdit, canLink, getCreated, getDetails, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toStringpublic static final String FIRSTNAME
Experimenter#FIRSTNAME field.public static final String MIDDLENAME
Experimenter#MIDDLENAME field.public static final String LASTNAME
Experimenter#LASTNAME field.public static final String EMAIL
Experimenter#EMAIL field.public static final String OMENAME
Experimenter#OMENAME field.public static final String INSTITUTION
Experimenter#INSTITUTION field.public static final String GROUP_EXPERIMENTER_MAP
Experimenter#GROUPEXPERIMENTERMAP field.public ExperimenterData()
public ExperimenterData(omero.model.Experimenter experimenter)
experimenter - Back pointer to the Experimenter model object. Mustn't
be null.IllegalArgumentException - If the object is null.public void setFirstName(String firstName)
firstName - The value to set.public String getFirstName()
public void setLastName(String lastName)
lastName - The value to set.public String getLastName()
public String getUserName()
public void setEmail(String email)
email - The value to set.public String getEmail()
public void setInstitution(String institution)
institution - The value to set.public String getInstitution()
public List<GroupData> getGroups()
public void setGroups(List<GroupData> newValue)
newValue - The set of groups.public GroupData getDefaultGroup()
public String getMiddleName()
public void setMiddleName(String middleName)
middleName - The value to set.public boolean isActive()
true if the experimenter is active,
false otherwise.public long getGroupId()
getGroupId in class DataObjectDataObject.getGroupId()public boolean isMemberOfGroup(long groupId)
long - groupIdtrue/false depending if matching
id foundpublic boolean isLDAP()
true if the user is connected via LDAP.
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.