Package hudson.security
Class AuthorizationMatrixProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
,AuthorizationContainer
,AuthorizationProperty
public class AuthorizationMatrixProperty
extends JobProperty<Job<?,?>>
implements AuthorizationProperty
JobProperty
to associate ACL for each project.
Once created (and initialized), this object becomes immutable.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
PersistAuthorizationMatrixProperty
as a list of IDs that representgetGrantedPermissionEntries()
.static class
static class
Ensure that the user creating a job has Read and Configure permissionsNested classes/interfaces inherited from interface org.jenkinsci.plugins.matrixauth.AuthorizationContainer
AuthorizationContainer.IdStrategyComparator, AuthorizationContainer.PermissionEntryComparator
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.matrixauth.AuthorizationProperty
AuthorizationProperty.DslEntry, AuthorizationProperty.DslGroup, AuthorizationProperty.DslUser, AuthorizationProperty.DslUserOrGroup
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.JobProperty
owner
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionExists for reflective Job DSL / Pipeline use only.AuthorizationMatrixProperty
(Map<Permission, Set<String>> grantedPermissions) Deprecated.AuthorizationMatrixProperty
(Map<Permission, Set<PermissionEntry>> grantedPermissions, InheritanceStrategy inheritanceStrategy) -
Method Summary
Modifier and TypeMethodDescriptiongetACL()
Getter supporting nicer DSL syntax for Job DSL and Pipeline job property definitions.Returns a live modifiable map of permissions.Internal only: Returns all recorded (possible) group sids to allow populatingAuthorizationStrategy.getGroups()
.Getter corresponding to databound contructor for Pipeline snippetizer.void
recordGroup
(String sid) Internal only: Record use of a (possible) group sid to be later returned inAuthorizationContainer.getGroups()
.void
setInheritanceStrategy
(InheritanceStrategy inheritanceStrategy) protected void
Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure
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
Methods inherited from interface org.jenkinsci.plugins.matrixauth.AuthorizationProperty
isBlocksInheritance, setBlocksInheritance, setEntries
-
Constructor Details
-
AuthorizationMatrixProperty
public AuthorizationMatrixProperty(Map<Permission, Set<PermissionEntry>> grantedPermissions, InheritanceStrategy inheritanceStrategy) - Since:
- 3.0
-
AuthorizationMatrixProperty
Deprecated. -
AuthorizationMatrixProperty
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @DataBoundConstructor public AuthorizationMatrixProperty(List<AuthorizationProperty.DslEntry> entries) Exists for reflective Job DSL / Pipeline use only.
-
-
Method Details
-
getPermissions
Getter corresponding to databound contructor for Pipeline snippetizer. -
getGroups
Description copied from interface:AuthorizationContainer
Internal only: Returns all recorded (possible) group sids to allow populatingAuthorizationStrategy.getGroups()
.- Specified by:
getGroups
in interfaceAuthorizationContainer
-
recordGroup
Description copied from interface:AuthorizationContainer
Internal only: Record use of a (possible) group sid to be later returned inAuthorizationContainer.getGroups()
.- Specified by:
recordGroup
in interfaceAuthorizationContainer
-
getGrantedPermissionEntries
Description copied from interface:AuthorizationContainer
Returns a live modifiable map of permissions. This return value needs to be treated as unmodifiable from shortly after object construction (even though it isn't for practical reasons).- Specified by:
getGrantedPermissionEntries
in interfaceAuthorizationContainer
-
getEditingPermission
- Specified by:
getEditingPermission
in interfaceAuthorizationContainer
-
getEntries
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public List<AuthorizationProperty.DslEntry> getEntries()Description copied from interface:AuthorizationProperty
Getter supporting nicer DSL syntax for Job DSL and Pipeline job property definitions.- Specified by:
getEntries
in interfaceAuthorizationProperty
- Returns:
- a list of
AuthorizationProperty.DslEntry
-
getACL
-
setInheritanceStrategy
- Specified by:
setInheritanceStrategy
in interfaceAuthorizationProperty
-
getInheritanceStrategy
- Specified by:
getInheritanceStrategy
in interfaceAuthorizationProperty
-
setOwner
- Overrides:
setOwner
in classJobProperty<Job<?,
?>>
-
AuthorizationMatrixProperty(Map, InheritanceStrategy)
instead.