Package fr.igred.omero.meta
Class ExperimenterWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<ExperimenterData>
-
- fr.igred.omero.meta.ExperimenterWrapper
-
public class ExperimenterWrapper extends GenericObjectWrapper<ExperimenterData>
Class containing an ExperimenterData object.Wraps function calls to the ExperimenterData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description ExperimenterWrapper(ExperimenterData experimenter)Constructor of the class ExperimenterWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExperimenterDataasExperimenterData()Deprecated.Returns the ExperimenterData contained.GroupWrappergetDefaultGroup()Returns the default Group for this Experimenterjava.lang.StringgetEmail()Returns the e-mail of the experimenter.java.lang.StringgetFirstName()Returns the first name of the experimenter.java.util.List<GroupWrapper>getGroups()Returns the groups the experimenter is a member of.java.lang.StringgetInstitution()Returns the institution where the experimenter works.java.lang.StringgetLastName()Returns the last name of the experimenter.java.lang.StringgetMiddleName()Returns the middle name of the experimenter.java.lang.StringgetUserName()Returns the last name of the experimenter.booleanisActive()Returnstrueif the experimenter is active,falseotherwise.booleanisLDAP()Returnstrueif the user is connected via LDAP.booleanisMemberOfGroup(long groupId)Checks if supplied group id matches any group to which the current experimenter belongs to.voidsetEmail(java.lang.String email)Sets the e-mail of the experimenter.voidsetFirstName(java.lang.String firstName)Sets the first name of the experimenter.voidsetInstitution(java.lang.String institution)Sets the institution where the experimenter works.voidsetLastName(java.lang.String lastName)Sets the last name of the experimenter.voidsetMiddleName(java.lang.String middleName)Sets the middle name of the experimenter.-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
ExperimenterWrapper
public ExperimenterWrapper(ExperimenterData experimenter)
Constructor of the class ExperimenterWrapper.- Parameters:
experimenter- The ExperimenterData to wrap in the ExperimenterWrapper.
-
-
Method Detail
-
asExperimenterData
@Deprecated public ExperimenterData asExperimenterData()
Deprecated.Returns the ExperimenterData contained. UseGenericObjectWrapper.asDataObject()instead.- Returns:
- See above.
-
getFirstName
public java.lang.String getFirstName()
Returns the first name of the experimenter.- Returns:
- see above.
-
setFirstName
public void setFirstName(java.lang.String firstName)
Sets the first name of the experimenter.- Parameters:
firstName- The value to set.
-
getLastName
public java.lang.String getLastName()
Returns the last 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.
-
getUserName
public java.lang.String getUserName()
Returns the last name of the experimenter.- Returns:
- see above.
-
getEmail
public java.lang.String getEmail()
Returns the e-mail 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.
-
getInstitution
public java.lang.String getInstitution()
Returns the institution where the experimenter works.- Returns:
- see above.
-
setInstitution
public void setInstitution(java.lang.String institution)
Sets the institution where the experimenter works.- Parameters:
institution- The value to set.
-
getGroups
public java.util.List<GroupWrapper> getGroups()
Returns the groups the experimenter is a member of.- Returns:
- See above.
-
getDefaultGroup
public GroupWrapper 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()
Returnstrueif the experimenter is active,falseotherwise.- Returns:
- See above.
-
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/falsedepending on the matching id found
-
isLDAP
public boolean isLDAP()
Returnstrueif the user is connected via LDAP.- Returns:
- See above.
-
-