@ParametersAreNonnullByDefault public class FolderBasedAuthorizationStrategy extends 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 |
AuthorizationStrategy.UnsecuredExtensionPoint.LegacyInstancesAreScopedToHudsonLIST, UNSECURED| Constructor and Description |
|---|
FolderBasedAuthorizationStrategy(Set<GlobalRole> globalRoles,
Set<FolderRole> folderRoles,
Set<AgentRole> agentRoles) |
| Modifier and Type | Method and Description |
|---|---|
SidACL |
getACL(AbstractItem item) |
SidACL |
getACL(Computer computer) |
SidACL |
getACL(Job<?,?> project)
|
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() |
all, getACL, getACL, getACL, getACL, getACLgetDescriptor@DataBoundConstructor public FolderBasedAuthorizationStrategy(Set<GlobalRole> globalRoles, Set<FolderRole> folderRoles, Set<AgentRole> agentRoles)
@Nonnull public GlobalAclImpl getRootACL()
getRootACL in class AuthorizationStrategyACL formed using just globalRoles@Nonnull public SidACL getACL(Job<?,?> project)
getACL in class AuthorizationStrategyACL for the Job@Nonnull public SidACL getACL(AbstractItem item)
getACL in class AuthorizationStrategy@Nonnull public SidACL getACL(@Nonnull Computer computer)
getACL in class AuthorizationStrategy@Nonnull public Collection<String> getGroups()
getGroups in class 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.