Package org.dspace.eperson
Class Group
java.lang.Object
org.dspace.content.DSpaceObject
org.dspace.content.CacheableDSpaceObject
org.dspace.eperson.Group
- All Implemented Interfaces:
Serializable,DSpaceObjectLegacySupport,ReloadableEntity<UUID>
Class representing a group of e-people.
- Author:
- David Stuve
- See Also:
-
Field Summary
FieldsFields inherited from class org.dspace.content.DSpaceObject
id, predefinedUUID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGroup()Protected constructor, create object using:GroupService.create(Context) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanReturntrueifotheris the same Group as this object,falseotherwiseReturn Group members (i.e. direct subgroups) of a Group.Return EPerson members of a Group.getName()intgetType()Get the type of this object, found in ConstantsinthashCode()booleanMay this Group be renamed or deleted?Methods inherited from class org.dspace.content.DSpaceObject
addDetails, addHandle, addMetadata, clearDetails, clearModified, getDetails, getHandle, getHandles, getID, getMetadata, getPredefinedUUID, getResourcePolicies, isMetadataModified, isModified, removeMetadata, removeMetadata, setMetadata, setMetadataModified, setModified
-
Field Details
-
ANONYMOUS
- See Also:
-
ADMIN
- See Also:
-
-
Constructor Details
-
Group
protected Group()Protected constructor, create object using:GroupService.create(Context)
-
-
Method Details
-
getMembers
Return EPerson members of a Group.WARNING: This method may have bad performance for Groups with large numbers of EPerson members. Therefore, only use this when you need to access every EPerson member. Instead, consider using EPersonService.findByGroups() for a paginated list of EPersons.
- Returns:
- list of EPersons
-
getMemberGroups
Return Group members (i.e. direct subgroups) of a Group.WARNING: This method may have bad performance for Groups with large numbers of Subgroups. Therefore, only use this when you need to access every Subgroup. Instead, consider using GroupService.findByParent() for a paginated list of Subgroups.
- Returns:
- list of subgroups
-
equals
Returntrueifotheris the same Group as this object,falseotherwise -
hashCode
public int hashCode() -
getType
public int getType()Description copied from class:DSpaceObjectGet the type of this object, found in Constants- Specified by:
getTypein classDSpaceObject- Returns:
- type of the object
-
getName
- Specified by:
getNamein classDSpaceObject
-
isGroupsChanged
public boolean isGroupsChanged() -
clearGroupsChanged
public void clearGroupsChanged() -
getLegacyId
- Specified by:
getLegacyIdin interfaceDSpaceObjectLegacySupport- Returns:
- the old integer based legacy identifier
-
isPermanent
May this Group be renamed or deleted? (The content of any group may be changed.)- Returns:
- true if this Group may not be renamed or deleted.
-