| Modifier and Type | Method and Description |
|---|---|
void |
addRole(Role role)
Add the given role to this
RoleMap. |
void |
assignRole(Role role,
String sid)
Assign the sid to the given
Role. |
void |
clearSids()
|
void |
clearSidsForRole(Role role)
Clear all the sids associated to the given
Role. |
hudson.security.SidACL |
getACL(RoleType roleType,
hudson.security.AccessControlled controlledItem)
Get the ACL for the current
RoleMap. |
SortedMap<Role,Set<String>> |
getGrantedRoles()
Get an unmodifiable sorted map containing
Roles and their assigned sids. |
Role |
getRole(String name)
Get the
Role object named after the given param. |
Set<Role> |
getRoles()
|
SortedSet<String> |
getSids()
Get all the sids referenced in this
RoleMap, minus the Anonymous sid. |
SortedSet<String> |
getSids(Boolean includeAnonymous)
Get all the sids referenced in this
RoleMap. |
Set<String> |
getSidsForRole(String roleName)
Get all the sids assigned to the
Role named after the roleName param. |
boolean |
hasRole(Role role)
|
RoleMap |
newMatchingRoleMap(String namePattern)
|
public hudson.security.SidACL getACL(RoleType roleType, hudson.security.AccessControlled controlledItem)
RoleMap.RoleMappublic void addRole(Role role)
RoleMap.role - The Role to addpublic void assignRole(Role role, 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()
public SortedMap<Role,Set<String>> getGrantedRoles()
Roles and their assigned sids.Roles and their associated sidspublic SortedSet<String> getSids()
RoleMap, minus the Anonymous sid.Anonymous sidpublic SortedSet<String> getSids(Boolean includeAnonymous)
RoleMap.includeAnonymous - True if you want the Anonymous sid to be included in the setpublic Set<String> getSidsForRole(String roleName)
Role named after the roleName param.roleName - The name of the roleCopyright © 2004-2013. All Rights Reserved.