public class RoleBasedAuthorizationStrategy
extends hudson.security.AuthorizationStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
RoleBasedAuthorizationStrategy.ConverterImpl
Converter used to persist and retrieve the strategy from disk.
|
static class |
RoleBasedAuthorizationStrategy.DescriptorImpl
Descriptor used to bind the strategy to the Web forms.
|
| Modifier and Type | Field and Description |
|---|---|
static RoleBasedAuthorizationStrategy.DescriptorImpl |
DESCRIPTOR |
static String |
GLOBAL |
static String |
MACRO_ROLE |
static String |
MACRO_USER |
static String |
PROJECT |
static String |
SLAVE |
| Constructor and Description |
|---|
RoleBasedAuthorizationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
hudson.security.ACL |
getACL(hudson.model.AbstractItem project) |
hudson.security.ACL |
getACL(hudson.model.Computer computer) |
hudson.security.ACL |
getACL(hudson.model.Job<?,?> project)
Get the specific ACL for projects.
|
SortedMap<Role,Set<String>> |
getGrantedRoles(String type)
Get the roles from the global
RoleMap. |
Collection<String> |
getGroups()
Used by the container realm.
|
hudson.security.SidACL |
getRootACL()
Get the root ACL.
|
Set<String> |
getSIDs(String type)
Get all the SIDs referenced by specified
RoleMap type. |
static boolean |
isCreateAllowed()
Control job create using
RoleBasedProjectNamingStrategy. |
public static final String GLOBAL
public static final String PROJECT
public static final String SLAVE
public static final String MACRO_ROLE
public static final String MACRO_USER
@Extension public static final RoleBasedAuthorizationStrategy.DescriptorImpl DESCRIPTOR
public hudson.security.SidACL getRootACL()
getRootACL in class hudson.security.AuthorizationStrategypublic hudson.security.ACL getACL(hudson.model.Job<?,?> project)
getACL in class hudson.security.AuthorizationStrategyproject - The access-controlled projectpublic hudson.security.ACL getACL(hudson.model.AbstractItem project)
getACL in class hudson.security.AuthorizationStrategypublic hudson.security.ACL getACL(hudson.model.Computer computer)
getACL in class hudson.security.AuthorizationStrategypublic Collection<String> getGroups()
getGroups in class hudson.security.AuthorizationStrategypublic SortedMap<Role,Set<String>> getGrantedRoles(String type)
RoleMap.
The returned sorted map is unmodifiable.
public Set<String> getSIDs(String type)
RoleMap type.public static boolean isCreateAllowed()
RoleBasedProjectNamingStrategy.Copyright © 2016. All rights reserved.