org.openpermis.policy.bean.basic
Class BasicRoleHierarchy.RoleSet
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
set
private final Set<String> set
BasicRoleHierarchy.RoleSet
protected BasicRoleHierarchy.RoleSet()
BasicRoleHierarchy.RoleSet
protected BasicRoleHierarchy.RoleSet(Collection<String> roles)
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