public class ExperimenterData extends DataObject
Modifier and Type | Field and Description |
---|---|
static String |
EMAIL
Identifies the
ExperimenterI.EMAIL field. |
static String |
FIRSTNAME
Identifies the
ExperimenterI.FIRSTNAME field. |
static String |
GROUP_EXPERIMENTER_MAP
Identifies the
ExperimenterI.GROUPEXPERIMENTERMAP field. |
static String |
INSTITUTION
Identifies the
ExperimenterI.INSTITUTION field. |
static String |
LASTNAME
Identifies the
ExperimenterI.LASTNAME field. |
static String |
MIDDLENAME
Identifies the
ExperimenterI.MIDDLENAME field. |
static String |
OMENAME
Identifies the
ExperimenterI.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, asFolder, 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, toString
public static final String FIRSTNAME
ExperimenterI.FIRSTNAME
field.public static final String MIDDLENAME
ExperimenterI.MIDDLENAME
field.public static final String LASTNAME
ExperimenterI.LASTNAME
field.public static final String EMAIL
ExperimenterI.EMAIL
field.public static final String OMENAME
ExperimenterI.OMENAME
field.public static final String INSTITUTION
ExperimenterI.INSTITUTION
field.public static final String GROUP_EXPERIMENTER_MAP
ExperimenterI.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 DataObject
DataObject.getGroupId()
public boolean isMemberOfGroup(long groupId)
groupId
- The id of the group.true
/false
depending if matching
id foundpublic boolean isLDAP()
true
if the user is connected via LDAP.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.