public class GroupWrapper extends ObjectWrapper<GroupData> implements Group
Wraps function calls to the GroupData contained.
dataPERMISSIONS_GROUP_READ, PERMISSIONS_GROUP_READ_LINK, PERMISSIONS_GROUP_READ_WRITE, PERMISSIONS_PRIVATE, PERMISSIONS_PUBLIC_READ, PERMISSIONS_PUBLIC_READ_WRITE| Constructor and Description |
|---|
GroupWrapper(GroupData group)
Constructor of the class GroupWrapper.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the description of the group.
|
List<Experimenter> |
getExperimenters()
Returns the experimenters contained in this group.
|
List<Experimenter> |
getLeaders()
Returns the leaders of this group.
|
List<Experimenter> |
getMembersOnly()
Returns the list of experimenters that are not owners of the group.
|
String |
getName()
Returns the name of the group.
|
int |
getPermissionsLevel()
Returns the permissions level.
|
void |
setDescription(String description)
Sets the description of the group.
|
void |
setName(String name)
Sets the name of the group.
|
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasDataObjectcanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdatepublic GroupWrapper(GroupData group)
group - The GroupData to wrap in the GroupWrapper.public String getName()
public void setName(String name)
setName in interface Groupname - The name of the group. Mustn't be null.IllegalArgumentException - If the name is null.public String getDescription()
getDescription in interface Grouppublic void setDescription(String description)
setDescription in interface Groupdescription - The description of the group. Mustn't be null.IllegalArgumentException - If the name is null.public List<Experimenter> getLeaders()
getLeaders in interface Grouppublic List<Experimenter> getExperimenters()
getExperimenters in interface Grouppublic List<Experimenter> getMembersOnly()
getMembersOnly in interface Grouppublic int getPermissionsLevel()
getPermissionsLevel in interface GroupCopyright © 2020–2023 GReD. All rights reserved.