public class GroupWrapper extends ObjectWrapper<GroupData> implements Group
Wraps function calls to the GroupData contained.
data
PERMISSIONS_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, 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 GroupWrapper(GroupData group)
group
- The GroupData to wrap in the GroupWrapper.public String getName()
public void setName(String name)
setName
in interface Group
name
- The name of the group. Mustn't be null
.IllegalArgumentException
- If the name is null
.public String getDescription()
getDescription
in interface Group
public void setDescription(String description)
setDescription
in interface Group
description
- The description of the group. Mustn't be null
.IllegalArgumentException
- If the name is null
.public List<Experimenter> getLeaders()
getLeaders
in interface Group
public List<Experimenter> getExperimenters()
getExperimenters
in interface Group
public List<Experimenter> getMembersOnly()
getMembersOnly
in interface Group
public int getPermissionsLevel()
getPermissionsLevel
in interface Group
Copyright © 2020–2023 GReD. All rights reserved.