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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExperimenterWrapper.SortByLastName<U extends ExperimenterWrapper>
Class used to sort ExperimenterWrappers.-
Nested classes/interfaces inherited from class fr.igred.omero.GenericObjectWrapper
GenericObjectWrapper.SortById<U extends GenericObjectWrapper<?>>
-
-
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 Modifier and Type Method Description ExperimenterData
asExperimenterData()
GroupWrapper
getDefaultGroup()
Returns the default Group for this ExperimenterString
getEmail()
Returns the e-mail of the experimenter.String
getFirstName()
Returns the first name of the experimenter.List<GroupWrapper>
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()
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(String email)
Sets the e-mail of the experimenter.void
setFirstName(String firstName)
Sets the first name of the experimenter.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.-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString
-
-
-
-
Constructor Detail
-
ExperimenterWrapper
public ExperimenterWrapper(ExperimenterData experimenter)
Constructor of the class ExperimenterWrapper.- Parameters:
experimenter
- The experimenter contained in the ExperimenterWrapper.
-
-
Method Detail
-
asExperimenterData
public ExperimenterData asExperimenterData()
- Returns:
- ExperimenterData contained.
-
getFirstName
public String getFirstName()
Returns the first name of the experimenter.- Returns:
- see above.
-
setFirstName
public void setFirstName(String firstName)
Sets the first name of the experimenter.- Parameters:
firstName
- The value to set.
-
getLastName
public String getLastName()
Returns the last name of the experimenter.- Returns:
- see above.
-
setLastName
public void setLastName(String lastName)
Sets the last name of the experimenter.- Parameters:
lastName
- The value to set.
-
getUserName
public String getUserName()
Returns the last name of the experimenter.- Returns:
- see above.
-
getEmail
public String getEmail()
Returns the e-mail of the experimenter.- Returns:
- see above.
-
setEmail
public void setEmail(String email)
Sets the e-mail of the experimenter.- Parameters:
email
- The value to set.
-
getInstitution
public String getInstitution()
Returns the institution where the experimenter works.- Returns:
- see above.
-
setInstitution
public void setInstitution(String institution)
Sets the institution where the experimenter works.- Parameters:
institution
- The value to set.
-
getGroups
public 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 String getMiddleName()
Returns the middle name of the experimenter.- Returns:
- see above.
-
setMiddleName
public void setMiddleName(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.
-
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.
-
-