Package fr.igred.omero.meta
Class ExperimenterWrapper
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
ConstructorsConstructorDescriptionExperimenterWrapper(ExperimenterData experimenter) Constructor of the class ExperimenterWrapper. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the ExperimenterData contained.Returns the default Group for this ExperimentergetEmail()Returns the e-mail of the experimenter.Returns the first name of the experimenter.Returns the groups the experimenter is a member of.Returns the institution where the experimenter works.Returns the last name of the experimenter.Returns the middle name of the experimenter.Returns the last name of the experimenter.booleanisActive()Returnstrueif the experimenter is active,falseotherwise.booleanReturnstrueif the user is a full admin.booleanisLDAP()Returnstrueif the user is connected via LDAP.booleanisLeader(GroupWrapper group) Returnstrueif the user owns the specified group.booleanisMemberOfGroup(long groupId) Checks if supplied group id matches any group to which the current experimenter belongs to.voidSets the e-mail of the experimenter.voidsetFirstName(String firstName) Sets the first name of the experimenter.voidsetInstitution(String institution) Sets the institution where the experimenter works.voidsetLastName(String lastName) Sets the last name of the experimenter.voidsetMiddleName(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, getUpdated, saveAndUpdate, toString, wrap, wrap
-
Constructor Details
-
ExperimenterWrapper
Constructor of the class ExperimenterWrapper.- Parameters:
experimenter- The ExperimenterData to wrap in the ExperimenterWrapper.
-
-
Method Details
-
asExperimenterData
Deprecated.Returns the ExperimenterData contained. UseGenericObjectWrapper.asDataObject()instead.- Returns:
- See above.
-
getFirstName
Returns the first name of the experimenter.- Returns:
- see above.
-
setFirstName
Sets the first name of the experimenter.- Parameters:
firstName- The value to set.
-
getLastName
Returns the last name of the experimenter.- Returns:
- see above.
-
setLastName
Sets the last name of the experimenter.- Parameters:
lastName- The value to set.
-
getUserName
Returns the last name of the experimenter.- Returns:
- see above.
-
getEmail
Returns the e-mail of the experimenter.- Returns:
- see above.
-
setEmail
Sets the e-mail of the experimenter.- Parameters:
email- The value to set.
-
getInstitution
Returns the institution where the experimenter works.- Returns:
- see above.
-
setInstitution
Sets the institution where the experimenter works.- Parameters:
institution- The value to set.
-
getGroups
Returns the groups the experimenter is a member of.- Returns:
- See above.
-
getDefaultGroup
Returns the default Group for this Experimenter- Returns:
- See above.
-
getMiddleName
Returns the middle name of the experimenter.- Returns:
- see above.
-
setMiddleName
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.
-
isLeader
Returnstrueif the user owns the specified group.- Parameters:
group- The group.- Returns:
- See above.
-
isAdmin
Returnstrueif the user is a full admin.- Parameters:
client-Clientthat handles the connection- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.ExecutionException- A Facility can't be retrieved or instantiated.
-