Package fr.igred.omero.meta
Class GroupWrapper
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<GroupData>
-
- fr.igred.omero.meta.GroupWrapper
-
- All Implemented Interfaces:
Group
,RemoteObject
public class GroupWrapper extends ObjectWrapper<GroupData> implements Group
Class containing a GroupData object.Wraps function calls to the GroupData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.ObjectWrapper
data
-
Fields inherited from interface fr.igred.omero.meta.Group
PERMISSIONS_GROUP_READ, PERMISSIONS_GROUP_READ_LINK, PERMISSIONS_GROUP_READ_WRITE, PERMISSIONS_PRIVATE, PERMISSIONS_PUBLIC_READ, PERMISSIONS_PUBLIC_READ_WRITE
-
-
Constructor Summary
Constructors Constructor Description GroupWrapper(GroupData group)
Constructor of the class GroupWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Returns the description of the group.java.util.List<Experimenter>
getExperimenters()
Returns the experimenters contained in this group.java.util.List<Experimenter>
getLeaders()
Returns the leaders of this group.java.util.List<Experimenter>
getMembersOnly()
Returns the list of experimenters that are not owners of the group.java.lang.String
getName()
Returns the name of the group.int
getPermissionsLevel()
Returns the permissions level.void
setDescription(java.lang.String description)
Sets the description of the group.void
setName(java.lang.String name)
Sets the name of the group.-
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.Group
asDataObject
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
-
-
-
Constructor Detail
-
GroupWrapper
public GroupWrapper(GroupData group)
Constructor of the class GroupWrapper.- Parameters:
group
- The GroupData to wrap in the GroupWrapper.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the group.
-
setName
public void setName(java.lang.String name)
Sets the name of the group.
-
getDescription
public java.lang.String getDescription()
Returns the description of the group.- Specified by:
getDescription
in interfaceGroup
- Returns:
- See above.
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the group.- Specified by:
setDescription
in interfaceGroup
- Parameters:
description
- The description of the group. Mustn't benull
.- Throws:
java.lang.IllegalArgumentException
- If the name isnull
.
-
getLeaders
public java.util.List<Experimenter> getLeaders()
Returns the leaders of this group.- Specified by:
getLeaders
in interfaceGroup
- Returns:
- See above.
-
getExperimenters
public java.util.List<Experimenter> getExperimenters()
Returns the experimenters contained in this group.- Specified by:
getExperimenters
in interfaceGroup
- Returns:
- See above.
-
getMembersOnly
public java.util.List<Experimenter> getMembersOnly()
Returns the list of experimenters that are not owners of the group.- Specified by:
getMembersOnly
in interfaceGroup
- Returns:
- See above.
-
getPermissionsLevel
public int getPermissionsLevel()
Returns the permissions level.- Specified by:
getPermissionsLevel
in interfaceGroup
- Returns:
- See above.
-
-