org.jboss.picketlink.idm.model
Class SimpleGroup
java.lang.Object
org.jboss.picketlink.idm.model.AbstractIdentityType
org.jboss.picketlink.idm.model.SimpleGroup
- All Implemented Interfaces:
- Group, IdentityType
public class SimpleGroup
- extends AbstractIdentityType
- implements Group
Simple implementation of the Group interface
| Fields inherited from interface org.jboss.picketlink.idm.model.Group |
KEY_PREFIX |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleGroup
public SimpleGroup(String id,
String name,
Group parentGroup)
getId
public String getId()
- Description copied from interface:
Group
- Groups are stored in tree hierarchy and therefore ID represents a path. ID string always begins with "/" element that
represents root of the tree
Example: Valid IDs are "/acme/departments/marketing", "/security/administrator" or "/administrator". Where "acme",
"departments", "marketing", "security" and "administrator" are group names.
- Specified by:
getId in interface Group
- Returns:
- Group Id in String representation.
getName
public String getName()
- Description copied from interface:
Group
- Group name is unique identifier in specific group tree branch. For example group with id "/acme/departments/marketing"
will have name "marketing" and parent group of id "/acme/departments"
- Specified by:
getName in interface Group
- Returns:
- name
getParentGroup
public Group getParentGroup()
- Specified by:
getParentGroup in interface Group
- Returns:
- parent group or null if it refers to root ("/") in a group tree.
getKey
public String getKey()
- Specified by:
getKey in interface IdentityType
Copyright © 2012. All Rights Reserved.