@ParametersAreNonnullByDefault public class FolderBasedAuthorizationStrategy extends hudson.security.AuthorizationStrategy
AuthorizationStrategy that controls access to AbstractFolders
through FolderRoles, to Computers through AgentRoles. Also provides global permissions
through GlobalRoles.
All objects of this class are immutable. To modify the data for this strategy,
please use the FolderAuthorizationStrategyAPI.
for modifying the roles,
for REST API methods| Modifier and Type | Class and Description |
|---|---|
static class |
FolderBasedAuthorizationStrategy.DescriptorImpl |
| Constructor and Description |
|---|
FolderBasedAuthorizationStrategy(Set<GlobalRole> globalRoles,
Set<FolderRole> folderRoles,
Set<AgentRole> agentRoles) |
| Modifier and Type | Method and Description |
|---|---|
hudson.security.SidACL |
getACL(hudson.model.AbstractItem item) |
hudson.security.SidACL |
getACL(hudson.model.Computer computer) |
hudson.security.SidACL |
getACL(hudson.model.Job<?,?> project)
Gets the
ACL for a Job |
Set<AgentRole> |
getAgentRoles()
Returns the
AgentRoles on which this AuthorizationStrategy works. |
Set<FolderRole> |
getFolderRoles()
Returns the
FolderRoles on which this AuthorizationStrategy works. |
Set<GlobalRole> |
getGlobalRoles()
Returns the
GlobalRoles on which this AuthorizationStrategy works. |
Collection<String> |
getGroups() |
GlobalAclImpl |
getRootACL() |
@DataBoundConstructor public FolderBasedAuthorizationStrategy(Set<GlobalRole> globalRoles, Set<FolderRole> folderRoles, Set<AgentRole> agentRoles)
@Nonnull public GlobalAclImpl getRootACL()
getRootACL in class hudson.security.AuthorizationStrategyACL formed using just globalRoles@Nonnull public hudson.security.SidACL getACL(hudson.model.Job<?,?> project)
ACL for a JobgetACL in class hudson.security.AuthorizationStrategyACL for the Job@Nonnull public hudson.security.SidACL getACL(hudson.model.AbstractItem item)
getACL in class hudson.security.AuthorizationStrategy@Nonnull public hudson.security.SidACL getACL(@Nonnull hudson.model.Computer computer)
getACL in class hudson.security.AuthorizationStrategy@Nonnull public Collection<String> getGroups()
getGroups in class hudson.security.AuthorizationStrategy@Nonnull public Set<GlobalRole> getGlobalRoles()
GlobalRoles on which this AuthorizationStrategy works.GlobalRoles on which this AuthorizationStrategy works.@Nonnull public Set<AgentRole> getAgentRoles()
AgentRoles on which this AuthorizationStrategy works.AgentRoles on which this AuthorizationStrategy works.@Nonnull public Set<FolderRole> getFolderRoles()
FolderRoles on which this AuthorizationStrategy works.FolderRoles on which this AuthorizationStrategy worksCopyright © 2016–2019. All rights reserved.