Package hudson.security
Class ProjectMatrixAuthorizationStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<AuthorizationStrategy>
-
- hudson.security.AuthorizationStrategy
-
- hudson.security.GlobalMatrixAuthorizationStrategy
-
- hudson.security.ProjectMatrixAuthorizationStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<AuthorizationStrategy>
,AuthorizationContainer
public class ProjectMatrixAuthorizationStrategy extends GlobalMatrixAuthorizationStrategy
GlobalMatrixAuthorizationStrategy
plus per-project ACL.Per-project ACL is stored in
AuthorizationMatrixProperty
.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProjectMatrixAuthorizationStrategy.ConverterImpl
-
Nested classes/interfaces inherited from class hudson.security.GlobalMatrixAuthorizationStrategy
GlobalMatrixAuthorizationStrategy.DescriptorImpl, GlobalMatrixAuthorizationStrategy.PermissionAdderImpl
-
Nested classes/interfaces inherited from class hudson.security.AuthorizationStrategy
AuthorizationStrategy.Unsecured
-
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.matrixauth.AuthorizationContainer
AuthorizationContainer.IdStrategyComparator, AuthorizationContainer.PermissionEntryComparator
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static Descriptor<AuthorizationStrategy>
DESCRIPTOR
-
Fields inherited from class hudson.security.GlobalMatrixAuthorizationStrategy
DANGEROUS_PERMISSIONS
-
Fields inherited from class hudson.security.AuthorizationStrategy
LIST, UNSECURED
-
-
Constructor Summary
Constructors Constructor Description ProjectMatrixAuthorizationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ACL
getACL(AbstractItem item)
ACL
getACL(ItemGroup<?> g)
ACL
getACL(Job<?,?> project)
ACL
getACL(Node node)
Set<String>
getGroups()
Internal only: Returns all recorded (possible) group sids to allow populatingAuthorizationStrategy.getGroups()
.-
Methods inherited from class hudson.security.GlobalMatrixAuthorizationStrategy
getEditingPermission, getGrantedPermissionEntries, getRootACL, recordGroup
-
Methods inherited from class hudson.security.AuthorizationStrategy
all, getACL, getACL, getACL, getACL, getACL
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.plugins.matrixauth.AuthorizationContainer
add, add, add, getAllPermissionEntries, getAllSIDs, getDescriptor, getGrantedPermissions, hasExplicitPermission, hasExplicitPermission, hasPermission, hasPermission
-
-
-
-
Field Detail
-
DESCRIPTOR
@Extension public static final Descriptor<AuthorizationStrategy> DESCRIPTOR
-
-
Method Detail
-
getACL
@NonNull public ACL getACL(@NonNull Job<?,?> project)
- Overrides:
getACL
in classAuthorizationStrategy
-
getACL
@NonNull public ACL getACL(@NonNull Node node)
- Overrides:
getACL
in classAuthorizationStrategy
-
getACL
@NonNull public ACL getACL(@NonNull AbstractItem item)
- Overrides:
getACL
in classAuthorizationStrategy
-
getGroups
@NonNull public Set<String> getGroups()
Description copied from interface:AuthorizationContainer
Internal only: Returns all recorded (possible) group sids to allow populatingAuthorizationStrategy.getGroups()
.- Specified by:
getGroups
in interfaceAuthorizationContainer
- Overrides:
getGroups
in classGlobalMatrixAuthorizationStrategy
-
-