hudson.plugins.collabnet.auth
Class CNProjectACL.CollabNetRoles
java.lang.Object
hudson.plugins.collabnet.auth.CNProjectACL.CollabNetRoles
- Enclosing class:
- CNProjectACL
public static class CNProjectACL.CollabNetRoles
- extends java.lang.Object
|
Method Summary |
static java.util.Collection<CollabNetRole> |
getAllRoles()
|
static CollabNetRole |
getGrantingRole(hudson.security.Permission permission)
Given a permission, return the CollabNet role which would grant
that permission (if any). |
static java.util.Collection<CollabNetRole> |
getMatchingRoles(java.util.Set<java.lang.String> userRoleSet)
Get the applicable hudson roles matching a set of user role names |
static java.util.List<java.lang.String> |
getNames()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CNProjectACL.CollabNetRoles
public CNProjectACL.CollabNetRoles()
getMatchingRoles
public static java.util.Collection<CollabNetRole> getMatchingRoles(java.util.Set<java.lang.String> userRoleSet)
- Get the applicable hudson roles matching a set of user role names
- Parameters:
userRoleSet - names of roles to match
- Returns:
- a collection of hudson roles with names that exist in user role set
getAllRoles
public static java.util.Collection<CollabNetRole> getAllRoles()
- Returns:
- all roles. Lazily initialized.
getNames
public static java.util.List<java.lang.String> getNames()
- Returns:
- an ordered List of Role names.
getGrantingRole
public static CollabNetRole getGrantingRole(hudson.security.Permission permission)
- Given a permission, return the CollabNet role which would grant
that permission (if any). Returns the first permission granting
role found (but we expect only one).
- Parameters:
permission -
- Returns:
- the CollabNet role which would grant that permission, or
null if none would.
Copyright © 2010. All Rights Reserved.