|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.michelin.cio.hudson.plugins.rolestrategy.RoleMap
public class RoleMap
Class holding a map for each kind of AccessControlled object, associating
each Role with the concerned Users/groups.
| Method Summary | |
|---|---|
void |
addRole(Role role)
Add the given role to this RoleMap. |
void |
assignRole(Role role,
java.lang.String sid)
Assign the sid to the given Role. |
void |
clearSids()
Clear all the sids for each Role of the RoleMap. |
void |
clearSidsForRole(Role role)
Clear all the sids associated to the given Role. |
hudson.security.SidACL |
getACL()
Get the ACL for the current RoleMap. |
java.util.SortedMap<Role,java.util.Set<java.lang.String>> |
getGrantedRoles()
Get an unmodifiable sorted map containing Roles and their assigned sids. |
Role |
getRole(java.lang.String name)
Get the Role object named after the given param. |
java.util.Set<Role> |
getRoles()
Get an unmodifiable set containing all the Roles of this RoleMap. |
java.util.SortedSet<java.lang.String> |
getSids()
Get all the sids referenced in this RoleMap, minus the Anonymous sid. |
java.util.SortedSet<java.lang.String> |
getSids(java.lang.Boolean includeAnonymous)
Get all the sids referenced in this RoleMap. |
java.util.Set<java.lang.String> |
getSidsForRole(java.lang.String roleName)
Get all the sids assigned to the Role named after the roleName param. |
boolean |
hasRole(Role role)
Check if the RoleMap contains the given Role. |
RoleMap |
newMatchingRoleMap(java.lang.String namePattern)
Create a sub-map of the current RoleMap containing only the
Roles matching the given pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean hasRole(Role role)
RoleMap contains the given Role.
RoleMap contains the given rolepublic hudson.security.SidACL getACL()
RoleMap.
RoleMappublic void addRole(Role role)
RoleMap.
role - The Role to add
public void assignRole(Role role,
java.lang.String sid)
Role.
role - The Role to assign the sid tosid - The sid to assignpublic void clearSidsForRole(Role role)
Role.
role - The Role for which you want to clear the sidspublic void clearSids()
Role of the RoleMap.
public Role getRole(java.lang.String name)
Role object named after the given param.
name - The name of the Role
Role named after the given parampublic java.util.SortedMap<Role,java.util.Set<java.lang.String>> getGrantedRoles()
Roles and their assigned sids.
Roles and their associated sidspublic java.util.Set<Role> getRoles()
Roles of this RoleMap.
Rolespublic java.util.SortedSet<java.lang.String> getSids()
RoleMap, minus the Anonymous sid.
Anonymous sidpublic java.util.SortedSet<java.lang.String> getSids(java.lang.Boolean includeAnonymous)
RoleMap.
includeAnonymous - True if you want the Anonymous sid to be included in the set
public java.util.Set<java.lang.String> getSidsForRole(java.lang.String roleName)
Role named after the roleName param.
roleName - The name of the role
public RoleMap newMatchingRoleMap(java.lang.String namePattern)
RoleMap containing only the
Roles matching the given pattern.
namePattern - The pattern to match
RoleMap containing only Roles matching the given name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||