org.openpermis.policy.bean.basic
Class BasicRoleHierarchy.RoleSet

java.lang.Object
  extended by org.openpermis.policy.bean.basic.BasicRoleHierarchy.RoleSet
Enclosing class:
BasicRoleHierarchy

private class BasicRoleHierarchy.RoleSet
extends Object

Set for Roles using SerialNumber as primary key.

Since:
0.3.0

Field Summary
private  Set<String> set
           
 
Constructor Summary
protected BasicRoleHierarchy.RoleSet()
           
protected BasicRoleHierarchy.RoleSet(Collection<String> roles)
           
 
Method Summary
 void addAllRoles(Collection<String> roleCollection)
           
 void addRole(String role)
           
 void clear()
           
 boolean containsRole(String role)
           
 Set<String> getRoles()
          Returns a unmodifiable set of all role.
 void removeRole(String role)
           
 void renameRole(String role, String newName)
           
 boolean sharesElements(BasicRoleHierarchy.RoleSet otherSet)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

set

private final Set<String> set
Constructor Detail

BasicRoleHierarchy.RoleSet

protected BasicRoleHierarchy.RoleSet()

BasicRoleHierarchy.RoleSet

protected BasicRoleHierarchy.RoleSet(Collection<String> roles)
Method Detail

addRole

public void addRole(String role)

addAllRoles

public void addAllRoles(Collection<String> roleCollection)

removeRole

public void removeRole(String role)

renameRole

public void renameRole(String role,
                       String newName)

containsRole

public boolean containsRole(String role)

getRoles

public Set<String> getRoles()
Returns a unmodifiable set of all role.

Returns:
a unmodifiable set of all roles.
Since:
0.3.0

sharesElements

public boolean sharesElements(BasicRoleHierarchy.RoleSet otherSet)

size

public int size()

clear

public void clear()


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG