org.apache.jetspeed.security.impl
Class AggregationHierarchyResolver
java.lang.Object
org.apache.jetspeed.security.impl.BaseHierarchyResolver
org.apache.jetspeed.security.impl.AggregationHierarchyResolver
- All Implemented Interfaces:
- HierarchyResolver
- public class AggregationHierarchyResolver
- extends BaseHierarchyResolver
- implements HierarchyResolver
Implementation for "part of" hierarchy. For Example: There're roles:
- roleA
- roleA.roleB
- roleA.roleB.roleC
if a user has the role [roleA] than
user.getSubject().getPrincipals()
returns:
- /role/roleA
- /role/roleA/roleB
- /role/roleA/roleB/roleC
- Version:
- $Id: AggregationHierarchyResolver.java,v 1.2 2004/09/18 19:33:58
dlestrat Exp $
- Author:
- Artem Grinshtein
Field Summary |
private static org.apache.commons.logging.Log |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.commons.logging.Log log
AggregationHierarchyResolver
public AggregationHierarchyResolver()
resolve
public String[] resolve(Preferences prefs)
- Description copied from interface:
HierarchyResolver
Returns absolute path names of the hierarchy roles/groups.
- Specified by:
resolve
in interface HierarchyResolver
- Parameters:
prefs
- Preferences for the role/group
- Returns:
- Returns absolute path names of the dependcy roles/groups.
- See Also:
HierarchyResolver.resolve(Preferences)
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.