Package io.jenkins.plugins.folderauth
Class FolderBasedAuthorizationStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<AuthorizationStrategy>
hudson.security.AuthorizationStrategy
io.jenkins.plugins.folderauth.FolderBasedAuthorizationStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<AuthorizationStrategy>
@ParametersAreNonnullByDefault
public class FolderBasedAuthorizationStrategy
extends AuthorizationStrategy
An
AuthorizationStrategy
that controls access to AbstractFolder
s
through FolderRole
s, to Computer
s through AgentRole
s. Also provides global permissions
through GlobalRole
s.
All objects of this class are immutable. To modify the data for this strategy,
please use the FolderAuthorizationStrategyAPI
.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.security.AuthorizationStrategy
AuthorizationStrategy.Unsecured
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.security.AuthorizationStrategy
LIST, UNSECURED
-
Constructor Summary
ConstructorDescriptionFolderBasedAuthorizationStrategy
(Set<GlobalRole> globalRoles, Set<FolderRole> folderRoles, Set<AgentRole> agentRoles) -
Method Summary
Modifier and TypeMethodDescriptiongetACL
(AbstractItem item) Returns theAgentRole
s on which thisAuthorizationStrategy
works.Returns theFolderRole
s on which thisAuthorizationStrategy
works.Returns theGlobalRole
s on which thisAuthorizationStrategy
works.Methods inherited from class hudson.security.AuthorizationStrategy
all, getACL, getACL, getACL, getACL, getACL
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
FolderBasedAuthorizationStrategy
@DataBoundConstructor public FolderBasedAuthorizationStrategy(Set<GlobalRole> globalRoles, Set<FolderRole> folderRoles, Set<AgentRole> agentRoles)
-
-
Method Details
-
getRootACL
- Specified by:
getRootACL
in classAuthorizationStrategy
- Returns:
- an
ACL
formed using just globalRoles
-
getACL
- Overrides:
getACL
in classAuthorizationStrategy
- Returns:
- the
ACL
for theJob
-
getACL
- Overrides:
getACL
in classAuthorizationStrategy
-
getACL
- Overrides:
getACL
in classAuthorizationStrategy
-
getGroups
- Specified by:
getGroups
in classAuthorizationStrategy
-
getGlobalRoles
Returns theGlobalRole
s on which thisAuthorizationStrategy
works.- Returns:
- set of
GlobalRole
s on which thisAuthorizationStrategy
works.
-
getAgentRoles
Returns theAgentRole
s on which thisAuthorizationStrategy
works.- Returns:
- set of
AgentRole
s on which thisAuthorizationStrategy
works.
-
getFolderRoles
Returns theFolderRole
s on which thisAuthorizationStrategy
works.- Returns:
FolderRole
s on which thisAuthorizationStrategy
works
-