Package omero.gateway.model
Class ExperimenterData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.ExperimenterData
-
public class ExperimenterData extends DataObject
The data that makes up an OME Experimenter along with information about the Group the Experimenter belongs in.- Since:
- OME2.2
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EMAIL
Identifies theExperimenterI.EMAIL
field.static java.lang.String
FIRSTNAME
Identifies theExperimenterI.FIRSTNAME
field.static java.lang.String
GROUP_EXPERIMENTER_MAP
Identifies theExperimenterI.GROUPEXPERIMENTERMAP
field.static java.lang.String
INSTITUTION
Identifies theExperimenterI.INSTITUTION
field.static java.lang.String
LASTNAME
Identifies theExperimenterI.LASTNAME
field.static java.lang.String
MIDDLENAME
Identifies theExperimenterI.MIDDLENAME
field.static java.lang.String
OMENAME
Identifies theExperimenterI.OMENAME
field.
-
Constructor Summary
Constructors Constructor Description ExperimenterData()
Creates a new instance.ExperimenterData(omero.model.Experimenter experimenter)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupData
getDefaultGroup()
Returns the default Group for this Experimenterjava.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()
Returnstrue
if the experimenter is active,false
otherwise.boolean
isLDAP()
Returnstrue
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.-
Methods inherited from class omero.gateway.model.DataObject
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, 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
-
-
-
-
Field Detail
-
FIRSTNAME
public static final java.lang.String FIRSTNAME
Identifies theExperimenterI.FIRSTNAME
field.- See Also:
- Constant Field Values
-
MIDDLENAME
public static final java.lang.String MIDDLENAME
Identifies theExperimenterI.MIDDLENAME
field.- See Also:
- Constant Field Values
-
LASTNAME
public static final java.lang.String LASTNAME
Identifies theExperimenterI.LASTNAME
field.- See Also:
- Constant Field Values
-
EMAIL
public static final java.lang.String EMAIL
Identifies theExperimenterI.EMAIL
field.- See Also:
- Constant Field Values
-
OMENAME
public static final java.lang.String OMENAME
Identifies theExperimenterI.OMENAME
field.- See Also:
- Constant Field Values
-
INSTITUTION
public static final java.lang.String INSTITUTION
Identifies theExperimenterI.INSTITUTION
field.- See Also:
- Constant Field Values
-
GROUP_EXPERIMENTER_MAP
public static final java.lang.String GROUP_EXPERIMENTER_MAP
Identifies theExperimenterI.GROUPEXPERIMENTERMAP
field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExperimenterData
public ExperimenterData()
Creates a new instance.
-
ExperimenterData
public ExperimenterData(omero.model.Experimenter experimenter)
Creates a new instance.- Parameters:
experimenter
- Back pointer to theExperimenter
model object. Mustn't benull
.- Throws:
java.lang.IllegalArgumentException
- If the object isnull
.
-
-
Method Detail
-
setFirstName
public void setFirstName(java.lang.String firstName)
Sets the first name of the experimenter.- Parameters:
firstName
- The value to set.
-
getFirstName
public java.lang.String getFirstName()
Returns the first name of the experimenter.- Returns:
- see above.
-
setLastName
public void setLastName(java.lang.String lastName)
Sets the last name of the experimenter.- Parameters:
lastName
- The value to set.
-
getLastName
public java.lang.String getLastName()
Returns the last name of the experimenter.- Returns:
- see above.
-
getUserName
public java.lang.String getUserName()
Returns the last name of the experimenter.- Returns:
- see above.
-
setEmail
public void setEmail(java.lang.String email)
Sets the e-mail of the experimenter.- Parameters:
email
- The value to set.
-
getEmail
public java.lang.String getEmail()
Returns the e-mail of the experimenter.- Returns:
- see above.
-
setInstitution
public void setInstitution(java.lang.String institution)
Sets the institution where the experimenter works.- Parameters:
institution
- The value to set.
-
getInstitution
public java.lang.String getInstitution()
Returns the institution where the experimenter works.- Returns:
- see above.
-
getGroups
public java.util.List<GroupData> getGroups()
Returns the groups the experimenter is a member of.- Returns:
- See above.
-
setGroups
public void setGroups(java.util.List<GroupData> newValue)
Sets the groups the experimenter is a member of.- Parameters:
newValue
- The set of groups.
-
getDefaultGroup
public GroupData getDefaultGroup()
Returns the default Group for this Experimenter- Returns:
- See above.
-
getMiddleName
public java.lang.String getMiddleName()
Returns the middle name of the experimenter.- Returns:
- see above.
-
setMiddleName
public void setMiddleName(java.lang.String middleName)
Sets the middle name of the experimenter.- Parameters:
middleName
- The value to set.
-
isActive
public boolean isActive()
Returnstrue
if the experimenter is active,false
otherwise.- Returns:
- See above.
-
getGroupId
public long getGroupId()
Overridden to return the id of the default group.- Overrides:
getGroupId
in classDataObject
- Returns:
- See above.
- See Also:
DataObject.getGroupId()
-
isMemberOfGroup
public boolean isMemberOfGroup(long groupId)
Checks if supplied group id matches any group to which the current experimenter belongs to.- Parameters:
groupId
- The id of the group.- Returns:
- boolean
true
/false
depending if matching id found
-
isLDAP
public boolean isLDAP()
Returnstrue
if the user is connected via LDAP.- Returns:
- See above.
-
-