Package fr.igred.omero.meta
Class GroupWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<GroupData>
-
- fr.igred.omero.meta.GroupWrapper
-
public class GroupWrapper extends GenericObjectWrapper<GroupData>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupWrapper.SortByName<U extends GroupWrapper>Class used to sort GroupWrappers.-
Nested classes/interfaces inherited from class fr.igred.omero.GenericObjectWrapper
GenericObjectWrapper.SortById<U extends GenericObjectWrapper<?>>
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
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 GroupDataasGroupData()StringgetDescription()Returns the description of the group.List<ExperimenterWrapper>getExperimenters()Returns the experimenters contained in this group.List<ExperimenterWrapper>getLeaders()Returns the leaders of this group.List<ExperimenterWrapper>getMembersOnly()Returns the list of experimenters that are not owners of the group.StringgetName()Returns the name of the group.voidsetDescription(String description)Sets the description of the group.voidsetName(String name)Sets the name of the group.-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString
-
-
-
-
Constructor Detail
-
GroupWrapper
public GroupWrapper(GroupData group)
Constructor of the class GroupWrapper.- Parameters:
group- The object contained in the GroupWrapper.
-
-
Method Detail
-
asGroupData
public GroupData asGroupData()
- Returns:
- GroupData contained.
-
getName
public String getName()
Returns the name of the group.- Returns:
- See above.
-
setName
public void setName(String name)
Sets the name of the group.- Parameters:
name- The name of the group. Mustn't benull.- Throws:
IllegalArgumentException- If the name isnull.
-
getDescription
public String getDescription()
Returns the description of the group.- Returns:
- See above.
-
setDescription
public void setDescription(String description)
Sets the description of the group.- Parameters:
description- The description of the group. Mustn't benull.- Throws:
IllegalArgumentException- If the name isnull.
-
getLeaders
public List<ExperimenterWrapper> getLeaders()
Returns the leaders of this group.- Returns:
- See above.
-
getExperimenters
public List<ExperimenterWrapper> getExperimenters()
Returns the experimenters contained in this group.- Returns:
- See above.
-
getMembersOnly
public List<ExperimenterWrapper> getMembersOnly()
Returns the list of experimenters that are not owners of the group.- Returns:
- See above.
-
-