public class ExperimenterWrapper extends ObjectWrapper<ExperimenterData> implements Experimenter
Wraps function calls to the ExperimenterData contained.
data
Constructor and Description |
---|
ExperimenterWrapper(ExperimenterData experimenter)
Constructor of the class ExperimenterWrapper.
|
Modifier and Type | Method and Description |
---|---|
Group |
getDefaultGroup()
Returns the default Group for this Experimenter
|
String |
getEmail()
Returns the e-mail of the experimenter.
|
String |
getFirstName()
Returns the first name of the experimenter.
|
List<Group> |
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()
Returns
true if the experimenter is active, false otherwise. |
boolean |
isLDAP()
Returns
true 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.
|
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asDataObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
public ExperimenterWrapper(ExperimenterData experimenter)
experimenter
- The ExperimenterData to wrap in the ExperimenterWrapper.public String getFirstName()
getFirstName
in interface Experimenter
public void setFirstName(String firstName)
setFirstName
in interface Experimenter
firstName
- The value to set.public String getLastName()
getLastName
in interface Experimenter
public void setLastName(String lastName)
setLastName
in interface Experimenter
lastName
- The value to set.public String getUserName()
getUserName
in interface Experimenter
public String getEmail()
getEmail
in interface Experimenter
public void setEmail(String email)
setEmail
in interface Experimenter
email
- The value to set.public String getInstitution()
getInstitution
in interface Experimenter
public void setInstitution(String institution)
setInstitution
in interface Experimenter
institution
- The value to set.public List<Group> getGroups()
getGroups
in interface Experimenter
public Group getDefaultGroup()
getDefaultGroup
in interface Experimenter
public String getMiddleName()
getMiddleName
in interface Experimenter
public void setMiddleName(String middleName)
setMiddleName
in interface Experimenter
middleName
- The value to set.public boolean isActive()
true
if the experimenter is active, false
otherwise.isActive
in interface Experimenter
public boolean isMemberOfGroup(long groupId)
isMemberOfGroup
in interface Experimenter
groupId
- The ID of the group.true
/false
depending on the matching id foundpublic boolean isLDAP()
true
if the user is connected via LDAP.isLDAP
in interface Experimenter
Copyright © 2020–2023 GReD. All rights reserved.