org.jbpm.identity
Class Group
java.lang.Object
org.jbpm.identity.Entity
org.jbpm.identity.Group
- All Implemented Interfaces:
- java.io.Serializable
public class Group
- extends Entity
group of users.
The group type allows for the distinction of hierarchical groups, security roles and others.
Following name convention is recommended for assigning group types :
- hierarchy: for hierarchical groups like teams, business units and companies.
- security-role: for j2ee and servlet security roles like admin, user, ...
- See Also:
- Serialized Form
|
Constructor Summary |
Group()
|
Group(java.lang.String name)
|
Group(java.lang.String name,
java.lang.String type)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected java.lang.String type
parent
protected Group parent
children
protected java.util.Set<Group> children
memberships
protected java.util.Set<Membership> memberships
Group
public Group()
Group
public Group(java.lang.String name)
Group
public Group(java.lang.String name,
java.lang.String type)
addMembership
public void addMembership(Membership membership)
addChild
public void addChild(Group child)
getUsers
public java.util.Set<User> getUsers()
getUsersForMembershipRole
public java.util.Set<User> getUsersForMembershipRole(java.lang.String membershipRole)
getId
public long getId()
- Overrides:
getId in class Entity
getMemberships
public java.util.Set<Membership> getMemberships()
getChildren
public java.util.Set<Group> getChildren()
getParent
public Group getParent()
getType
public java.lang.String getType()
setType
public void setType(java.lang.String type)
setChildren
public void setChildren(java.util.Set<Group> children)
setMemberships
public void setMemberships(java.util.Set<Membership> memberships)
setParent
public void setParent(Group parent)
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.