Package fr.igred.omero.meta
Class ExperimenterWrapper
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<ExperimenterData>
-
- fr.igred.omero.meta.ExperimenterWrapper
-
- All Implemented Interfaces:
Experimenter
,RemoteObject
public class ExperimenterWrapper extends ObjectWrapper<ExperimenterData> implements Experimenter
Class containing an ExperimenterData object.Wraps function calls to the ExperimenterData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.ObjectWrapper
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 Group
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.java.util.List<Group>
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
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 fr.igred.omero.ObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface fr.igred.omero.meta.Experimenter
asDataObject
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
-
-
-
Constructor Detail
-
ExperimenterWrapper
public ExperimenterWrapper(ExperimenterData experimenter)
Constructor of the class ExperimenterWrapper.- Parameters:
experimenter
- The ExperimenterData to wrap in the ExperimenterWrapper.
-
-
Method Detail
-
getFirstName
public java.lang.String getFirstName()
Returns the first name of the experimenter.- Specified by:
getFirstName
in interfaceExperimenter
- Returns:
- see above.
-
setFirstName
public void setFirstName(java.lang.String firstName)
Sets the first name of the experimenter.- Specified by:
setFirstName
in interfaceExperimenter
- Parameters:
firstName
- The value to set.
-
getLastName
public java.lang.String getLastName()
Returns the last name of the experimenter.- Specified by:
getLastName
in interfaceExperimenter
- Returns:
- see above.
-
setLastName
public void setLastName(java.lang.String lastName)
Sets the last name of the experimenter.- Specified by:
setLastName
in interfaceExperimenter
- Parameters:
lastName
- The value to set.
-
getUserName
public java.lang.String getUserName()
Returns the last name of the experimenter.- Specified by:
getUserName
in interfaceExperimenter
- Returns:
- see above.
-
getEmail
public java.lang.String getEmail()
Returns the e-mail of the experimenter.- Specified by:
getEmail
in interfaceExperimenter
- Returns:
- see above.
-
setEmail
public void setEmail(java.lang.String email)
Sets the e-mail of the experimenter.- Specified by:
setEmail
in interfaceExperimenter
- Parameters:
email
- The value to set.
-
getInstitution
public java.lang.String getInstitution()
Returns the institution where the experimenter works.- Specified by:
getInstitution
in interfaceExperimenter
- Returns:
- see above.
-
setInstitution
public void setInstitution(java.lang.String institution)
Sets the institution where the experimenter works.- Specified by:
setInstitution
in interfaceExperimenter
- Parameters:
institution
- The value to set.
-
getGroups
public java.util.List<Group> getGroups()
Returns the groups the experimenter is a member of.- Specified by:
getGroups
in interfaceExperimenter
- Returns:
- See above.
-
getDefaultGroup
public Group getDefaultGroup()
Returns the default Group for this Experimenter- Specified by:
getDefaultGroup
in interfaceExperimenter
- Returns:
- See above.
-
getMiddleName
public java.lang.String getMiddleName()
Returns the middle name of the experimenter.- Specified by:
getMiddleName
in interfaceExperimenter
- Returns:
- see above.
-
setMiddleName
public void setMiddleName(java.lang.String middleName)
Sets the middle name of the experimenter.- Specified by:
setMiddleName
in interfaceExperimenter
- Parameters:
middleName
- The value to set.
-
isActive
public boolean isActive()
Returnstrue
if the experimenter is active,false
otherwise.- Specified by:
isActive
in interfaceExperimenter
- Returns:
- See above.
-
isMemberOfGroup
public boolean isMemberOfGroup(long groupId)
Checks if supplied group id matches any group to which the current experimenter belongs to.- Specified by:
isMemberOfGroup
in interfaceExperimenter
- Parameters:
groupId
- The ID of the group.- Returns:
- boolean
true
/false
depending on the matching id found
-
isLDAP
public boolean isLDAP()
Returnstrue
if the user is connected via LDAP.- Specified by:
isLDAP
in interfaceExperimenter
- Returns:
- See above.
-
-