Package org.dspace.pack.bagit.xml.roles
Class AssociatedGroup
- java.lang.Object
-
- org.dspace.pack.bagit.xml.roles.AssociatedGroup
-
public class AssociatedGroup extends Object
The Group tag for roles.xml Named as to not conflict withGroupbut still be clear for what it is- Author:
- mikejritter
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssociatedGroup()Default constructor for jaxbAssociatedGroup(org.dspace.core.Context context, org.dspace.content.DSpaceObject dso, org.dspace.eperson.Group group)Constructor to create anAssociatedGroupfrom aGroup
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMember(Member member)Add a single member to the MembersvoidaddMemberGroup(Member member)Add a singleMemberto thememberGroupsbooleanequals(Object o)StringgetId()List<Member>getMemberGroups()The groups associated with thisAssociatedGroup.List<Member>getMembers()TheMembers in the group.StringgetName()StringgetType()inthashCode()
-
-
-
Constructor Detail
-
AssociatedGroup
protected AssociatedGroup()
Default constructor for jaxb
-
AssociatedGroup
public AssociatedGroup(org.dspace.core.Context context, org.dspace.content.DSpaceObject dso, org.dspace.eperson.Group group) throws SQLException, org.dspace.content.packager.PackageExceptionConstructor to create anAssociatedGroupfrom aGroup- Parameters:
context- the context to usedso- the related DSpaceObjectgroup- the group to use- Throws:
SQLException- if there is an error translating a Group's nameorg.dspace.content.packager.PackageException- if there is an error translating a Group's name
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the id of the group, the string value of
DSpaceObject.getID()
-
getName
public String getName()
- Returns:
- the name of the group,
Group.getName()
-
getType
public String getType()
- Returns:
- the group type
- See Also:
findGroupType(Context, DSpaceObject, Group)
-
getMembers
public List<Member> getMembers()
TheMembers in the group. When converting to XML a parent group Members is created and each list item is in a single Member tag.- Returns:
- the members associated with the group
Group.getMembers()
-
addMember
public void addMember(Member member)
Add a single member to the Members- Parameters:
member- theMemberto add
-
getMemberGroups
public List<Member> getMemberGroups()
The groups associated with thisAssociatedGroup. When converting to XML a parent group MemberGroups is created and each list item is in a single MemberGroup tag.- Returns:
- the members associated with the group
Group.getMemberGroups()
-
addMemberGroup
public void addMemberGroup(Member member)
Add a singleMemberto thememberGroups- Parameters:
member- theMemberto add
-
-