Package com.microsoft.jenkins.azuread
Class AuthorizationMatrixProperty
- All Implemented Interfaces:
AuthorizationContainer
,AuthorizationProperty
,ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
- Direct Known Subclasses:
AzureAdAuthorizationMatrixProperty
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 com.microsoft.jenkins.azuread.AuthorizationContainer
AuthorizationContainer.IdStrategyComparator, AuthorizationContainer.PermissionEntryComparator
Nested classes/interfaces inherited from interface com.microsoft.jenkins.azuread.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<PermissionEntry>> grantedPermissions, org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy inheritanceStrategy) AuthorizationMatrixProperty
(Map<Permission, Set<String>> grantedPermissions) Deprecated. -
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()
.org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy
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
(org.jenkinsci.plugins.matrixauth.inheritance.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 com.microsoft.jenkins.azuread.AuthorizationContainer
add, add, add, getAllPermissionEntries, getAllSIDs, getDescriptor, getGrantedPermissions, hasExplicitPermission, hasExplicitPermission, hasPermission, hasPermission
Methods inherited from interface com.microsoft.jenkins.azuread.AuthorizationProperty
isBlocksInheritance, setBlocksInheritance, setEntries
-
Constructor Details
-
AuthorizationMatrixProperty
public AuthorizationMatrixProperty(Map<Permission, Set<PermissionEntry>> grantedPermissions, org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy inheritanceStrategy) - Since:
- 3.0
-
AuthorizationMatrixProperty
Deprecated. -
AuthorizationMatrixProperty
@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
@DataBoundSetter public void setInheritanceStrategy(org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy inheritanceStrategy) - Specified by:
setInheritanceStrategy
in interfaceAuthorizationProperty
-
getInheritanceStrategy
public org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy getInheritanceStrategy()- Specified by:
getInheritanceStrategy
in interfaceAuthorizationProperty
-
setOwner
- Overrides:
setOwner
in classJobProperty<Job<?,
?>>
-
AuthorizationMatrixProperty(Map, InheritanceStrategy)
instead.