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>
Class containing a GroupData object.Wraps function calls to the GroupData contained.
-
-
Field Summary
Fields Modifier and Type Field Description static int
PERMISSIONS_GROUP_READ
Indicates that the group isGroup
i.e.static int
PERMISSIONS_GROUP_READ_LINK
Indicates that the group isGroup
i.e.static int
PERMISSIONS_GROUP_READ_WRITE
Indicates that the group isGroup
i.e.static int
PERMISSIONS_PRIVATE
Indicates that the group isPrivate
i.e.static int
PERMISSIONS_PUBLIC_READ
Indicates that the group isPublic
i.e.static int
PERMISSIONS_PUBLIC_READ_WRITE
Indicates that the group isPublic
i.e.-
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 Deprecated Methods Modifier and Type Method Description GroupData
asGroupData()
Deprecated.Returns the GroupData contained.String
getDescription()
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.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.-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Field Detail
-
PERMISSIONS_PRIVATE
public static final int PERMISSIONS_PRIVATE
Indicates that the group isPrivate
i.e. RW----.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ
public static final int PERMISSIONS_GROUP_READ
Indicates that the group isGroup
i.e. RWR---.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_LINK
public static final int PERMISSIONS_GROUP_READ_LINK
Indicates that the group isGroup
i.e. RWRA--.- See Also:
- Constant Field Values
-
PERMISSIONS_GROUP_READ_WRITE
public static final int PERMISSIONS_GROUP_READ_WRITE
Indicates that the group isGroup
i.e. RWRW--.- See Also:
- Constant Field Values
-
PERMISSIONS_PUBLIC_READ
public static final int PERMISSIONS_PUBLIC_READ
Indicates that the group isPublic
i.e. RWRWR-.- See Also:
- Constant Field Values
-
PERMISSIONS_PUBLIC_READ_WRITE
public static final int PERMISSIONS_PUBLIC_READ_WRITE
Indicates that the group isPublic
i.e. RWRWRW.- See Also:
- Constant Field Values
-
-
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 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
.
-
asGroupData
@Deprecated public GroupData asGroupData()
Deprecated.Returns the GroupData contained. UseGenericObjectWrapper.asDataObject()
instead.- Returns:
- See above.
-
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.
-
getPermissionsLevel
public int getPermissionsLevel()
Returns the permissions level.- Returns:
- See above.
-
-