com.michelin.cio.hudson.plugins.rolestrategy
Class RoleBasedAuthorizationStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.security.AuthorizationStrategy>
hudson.security.AuthorizationStrategy
com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.security.AuthorizationStrategy>
public class RoleBasedAuthorizationStrategy
- extends hudson.security.AuthorizationStrategy
Role-based authorization strategy.
- Author:
- Thomas Maurel
| Nested classes/interfaces inherited from class hudson.security.AuthorizationStrategy |
hudson.security.AuthorizationStrategy.Unsecured |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.security.AuthorizationStrategy |
LIST, UNSECURED |
|
Method Summary |
hudson.security.ACL |
getACL(hudson.model.Job<?,?> project)
Get the specific ACL for projects. |
java.util.SortedMap<Role,java.util.Set<java.lang.String>> |
getGrantedRoles(java.lang.String type)
Get the roles from the global RoleMap. |
java.util.Collection<java.lang.String> |
getGroups()
Used by the container realm. |
hudson.security.SidACL |
getRootACL()
Get the root ACL. |
java.util.Set<java.lang.String> |
getSIDs(java.lang.String type)
Get all the SIDs referenced by specified RoleMap type. |
| Methods inherited from class hudson.security.AuthorizationStrategy |
all, getACL, getACL, getACL, getACL, getACL, getACL, getACL |
| Methods inherited from class hudson.model.AbstractDescribableImpl |
getDescriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLOBAL
public static final java.lang.String GLOBAL
- See Also:
- Constant Field Values
PROJECT
public static final java.lang.String PROJECT
- See Also:
- Constant Field Values
DESCRIPTOR
@Extension
public static final RoleBasedAuthorizationStrategy.DescriptorImpl DESCRIPTOR
RoleBasedAuthorizationStrategy
public RoleBasedAuthorizationStrategy()
getRootACL
public hudson.security.SidACL getRootACL()
- Get the root ACL.
- Specified by:
getRootACL in class hudson.security.AuthorizationStrategy
- Returns:
- The global ACL
getACL
public hudson.security.ACL getACL(hudson.model.Job<?,?> project)
- Get the specific ACL for projects.
- Overrides:
getACL in class hudson.security.AuthorizationStrategy
- Parameters:
project - The access-controlled project
- Returns:
- The project specific ACL
getGroups
public java.util.Collection<java.lang.String> getGroups()
- Used by the container realm.
- Specified by:
getGroups in class hudson.security.AuthorizationStrategy
- Returns:
- All the sids referenced by the strategy
getGrantedRoles
public java.util.SortedMap<Role,java.util.Set<java.lang.String>> getGrantedRoles(java.lang.String type)
- Get the roles from the global
RoleMap.
The returned sorted map is unmodifiable.
- Parameters:
type - The object type controlled by the RoleMap
- Returns:
- All roles from the global
RoleMap
getSIDs
public java.util.Set<java.lang.String> getSIDs(java.lang.String type)
- Get all the SIDs referenced by specified
RoleMap type.
- Parameters:
type - The object type controlled by the RoleMap
- Returns:
- All SIDs from the specified
RoleMap.
Copyright © 2010. All Rights Reserved.