org.jboss.picketlink.idm.model
Class SimpleGroup

java.lang.Object
  extended by org.jboss.picketlink.idm.model.AbstractIdentityType
      extended by org.jboss.picketlink.idm.model.SimpleGroup
All Implemented Interfaces:
Group, IdentityType

public class SimpleGroup
extends AbstractIdentityType
implements Group

Simple implementation of the Group interface


Field Summary
 
Fields inherited from interface org.jboss.picketlink.idm.model.Group
KEY_PREFIX
 
Constructor Summary
SimpleGroup(String id, String name, Group parentGroup)
           
 
Method Summary
 String getId()
          Groups are stored in tree hierarchy and therefore ID represents a path.
 String getKey()
           
 String getName()
          Group name is unique identifier in specific group tree branch.
 Group getParentGroup()
           
 
Methods inherited from class org.jboss.picketlink.idm.model.AbstractIdentityType
getAttribute, getAttributes, getAttributeValues, getCreationDate, getExpirationDate, isEnabled, removeAttribute, setAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.picketlink.idm.model.IdentityType
getAttribute, getAttributes, getAttributeValues, getCreationDate, getExpirationDate, isEnabled, removeAttribute, setAttribute, setAttribute
 

Constructor Detail

SimpleGroup

public SimpleGroup(String id,
                   String name,
                   Group parentGroup)
Method Detail

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.