org.openpermis.policy
Interface RoleHierarchy

All Superinterfaces:
Identifiable, Part, Serializable
All Known Subinterfaces:
RoleHierarchyBean
All Known Implementing Classes:
BasicRoleHierarchy

public interface RoleHierarchy
extends Part, Identifiable

A hierarchy of roles.

Since:
0.1.0

Method Summary
 Set<String> getSubRoles(String roleName)
          Returns all subordinate roles of a role including the role itself.
 Set<String> getSuperRoles(String roleName)
          Returns all superior roles of a role including the role itself.
 
Methods inherited from interface org.openpermis.policy.Part
equals, hashCode, isValid, toString
 
Methods inherited from interface org.openpermis.policy.Identifiable
getIdentity
 

Method Detail

getSuperRoles

Set<String> getSuperRoles(String roleName)
Returns all superior roles of a role including the role itself.

A role is superior to the specified role if it inherits the specified role's privileges.

Parameters:
roleName - identifies a role in the hierarchy.
Returns:
all superior roles of the role including the role itself.
Since:
0.3.0

getSubRoles

Set<String> getSubRoles(String roleName)
Returns all subordinate roles of a role including the role itself.

A role is subordinate to the specified role if the specified role inherits its privileges.

Parameters:
roleName - identifies a role in the hierarchy.
Returns:
all subordinate roles of the role including the role itself.
Since:
0.3.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:10
Copyright (c) 2002-2007 Ergon Informatik AG