Package io.jenkins.plugins.folderauth
Class FolderBasedAuthorizationStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<hudson.security.AuthorizationStrategy>
-
- hudson.security.AuthorizationStrategy
-
- io.jenkins.plugins.folderauth.FolderBasedAuthorizationStrategy
-
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Describable<hudson.security.AuthorizationStrategy>
@ParametersAreNonnullByDefault public class FolderBasedAuthorizationStrategy extends hudson.security.AuthorizationStrategy
AnAuthorizationStrategy
that controls access toAbstractFolder
s throughFolderRole
s, toComputer
s throughAgentRole
s. Also provides global permissions throughGlobalRole
s.All objects of this class are immutable. To modify the data for this strategy, please use the
FolderAuthorizationStrategyAPI
.- See Also:
for modifying the roles
,for REST API methods
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FolderBasedAuthorizationStrategy.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description FolderBasedAuthorizationStrategy(Set<GlobalRole> globalRoles, Set<FolderRole> folderRoles, Set<AgentRole> agentRoles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theACL
for aJob
Set<AgentRole>
getAgentRoles()
Returns theAgentRole
s on which thisAuthorizationStrategy
works.Set<FolderRole>
getFolderRoles()
Returns theFolderRole
s on which thisAuthorizationStrategy
works.Set<GlobalRole>
getGlobalRoles()
Returns theGlobalRole
s on which thisAuthorizationStrategy
works.Collection<String>
getGroups()
GlobalAclImpl
getRootACL()
-
-
-
Constructor Detail
-
FolderBasedAuthorizationStrategy
@DataBoundConstructor public FolderBasedAuthorizationStrategy(Set<GlobalRole> globalRoles, Set<FolderRole> folderRoles, Set<AgentRole> agentRoles)
-
-
Method Detail
-
getRootACL
@Nonnull public GlobalAclImpl getRootACL()
- Specified by:
getRootACL
in classhudson.security.AuthorizationStrategy
- Returns:
- an
ACL
formed using just globalRoles
-
getACL
@Nonnull public hudson.security.SidACL getACL(hudson.model.Job<?,?> project)
Gets theACL
for aJob
- Overrides:
getACL
in classhudson.security.AuthorizationStrategy
- Returns:
- the
ACL
for theJob
-
getACL
@Nonnull public hudson.security.SidACL getACL(hudson.model.AbstractItem item)
- Overrides:
getACL
in classhudson.security.AuthorizationStrategy
-
getACL
@Nonnull public hudson.security.SidACL getACL(@Nonnull hudson.model.Computer computer)
- Overrides:
getACL
in classhudson.security.AuthorizationStrategy
-
getGroups
@Nonnull public Collection<String> getGroups()
- Specified by:
getGroups
in classhudson.security.AuthorizationStrategy
-
getGlobalRoles
@Nonnull public Set<GlobalRole> getGlobalRoles()
Returns theGlobalRole
s on which thisAuthorizationStrategy
works.- Returns:
- set of
GlobalRole
s on which thisAuthorizationStrategy
works.
-
getAgentRoles
@Nonnull public Set<AgentRole> getAgentRoles()
Returns theAgentRole
s on which thisAuthorizationStrategy
works.- Returns:
- set of
AgentRole
s on which thisAuthorizationStrategy
works.
-
getFolderRoles
@Nonnull public Set<FolderRole> getFolderRoles()
Returns theFolderRole
s on which thisAuthorizationStrategy
works.- Returns:
FolderRole
s on which thisAuthorizationStrategy
works
-
-