public class ExperimenterData extends DataObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EMAIL
Identifies the
ExperimenterI.EMAIL field. |
static java.lang.String |
FIRSTNAME
Identifies the
ExperimenterI.FIRSTNAME field. |
static java.lang.String |
GROUP_EXPERIMENTER_MAP
Identifies the
ExperimenterI.GROUPEXPERIMENTERMAP field. |
static java.lang.String |
INSTITUTION
Identifies the
ExperimenterI.INSTITUTION field. |
static java.lang.String |
LASTNAME
Identifies the
ExperimenterI.LASTNAME field. |
static java.lang.String |
MIDDLENAME
Identifies the
ExperimenterI.MIDDLENAME field. |
static java.lang.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
|
java.lang.String |
getEmail()
Returns the e-mail of the experimenter.
|
java.lang.String |
getFirstName()
Returns the first name of the experimenter.
|
long |
getGroupId()
Overridden to return the id of the default group.
|
java.util.List<GroupData> |
getGroups()
Returns the groups the experimenter is a member of.
|
java.lang.String |
getInstitution()
Returns the institution where the experimenter works.
|
java.lang.String |
getLastName()
Returns the last name of the experimenter.
|
java.lang.String |
getMiddleName()
Returns the middle name of the experimenter.
|
java.lang.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(java.lang.String email)
Sets the e-mail of the experimenter.
|
void |
setFirstName(java.lang.String firstName)
Sets the first name of the experimenter.
|
void |
setGroups(java.util.List<GroupData> newValue)
Sets the groups the experimenter is a member of.
|
void |
setInstitution(java.lang.String institution)
Sets the institution where the experimenter works.
|
void |
setLastName(java.lang.String lastName)
Sets the last name of the experimenter.
|
void |
setMiddleName(java.lang.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, canChgrp, canChown, 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 java.lang.String FIRSTNAME
ExperimenterI.FIRSTNAME
field.public static final java.lang.String MIDDLENAME
ExperimenterI.MIDDLENAME
field.public static final java.lang.String LASTNAME
ExperimenterI.LASTNAME
field.public static final java.lang.String EMAIL
ExperimenterI.EMAIL
field.public static final java.lang.String OMENAME
ExperimenterI.OMENAME
field.public static final java.lang.String INSTITUTION
ExperimenterI.INSTITUTION
field.public static final java.lang.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
.java.lang.IllegalArgumentException
- If the object is null
.public void setFirstName(java.lang.String firstName)
firstName
- The value to set.public java.lang.String getFirstName()
public void setLastName(java.lang.String lastName)
lastName
- The value to set.public java.lang.String getLastName()
public java.lang.String getUserName()
public void setEmail(java.lang.String email)
email
- The value to set.public java.lang.String getEmail()
public void setInstitution(java.lang.String institution)
institution
- The value to set.public java.lang.String getInstitution()
public java.util.List<GroupData> getGroups()
public void setGroups(java.util.List<GroupData> newValue)
newValue
- The set of groups.public GroupData getDefaultGroup()
public java.lang.String getMiddleName()
public void setMiddleName(java.lang.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.