Package com.microsoft.jenkins.azuread
Class AzureAdAuthorizationMatrixProperty
java.lang.Object
hudson.model.JobProperty<Job<?,?>>
com.microsoft.jenkins.azuread.AuthorizationMatrixProperty
com.microsoft.jenkins.azuread.AzureAdAuthorizationMatrixProperty
- All Implemented Interfaces:
AuthorizationContainer
,AuthorizationProperty
,ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class com.microsoft.jenkins.azuread.AuthorizationMatrixProperty
AuthorizationMatrixProperty.ItemListenerImpl
Nested 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
ConstructorDescriptionAzureAdAuthorizationMatrixProperty
(Map<Permission, Set<PermissionEntry>> grantedPermissions, org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy inheritanceStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Permission p, PermissionEntry entry) boolean
hasExplicitPermission
(PermissionEntry entry, Permission p) Return true if and only if the exact permission entry is explicitly granted the specified permission, ignoring compatible types (e.g.boolean
hasPermission
(String sid, Permission p, boolean principal) Checks if the given SID has the given permission.Methods inherited from class com.microsoft.jenkins.azuread.AuthorizationMatrixProperty
getACL, getEditingPermission, getEntries, getGrantedPermissionEntries, getGroups, getInheritanceStrategy, getPermissions, recordGroup, setInheritanceStrategy, setOwner
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, getAllPermissionEntries, getAllSIDs, getDescriptor, getGrantedPermissions, hasExplicitPermission, hasPermission
Methods inherited from interface com.microsoft.jenkins.azuread.AuthorizationProperty
isBlocksInheritance, setBlocksInheritance, setEntries
-
Constructor Details
-
AzureAdAuthorizationMatrixProperty
public AzureAdAuthorizationMatrixProperty() -
AzureAdAuthorizationMatrixProperty
public AzureAdAuthorizationMatrixProperty(Map<Permission, Set<PermissionEntry>> grantedPermissions, org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy inheritanceStrategy) -
AzureAdAuthorizationMatrixProperty
@DataBoundConstructor @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public AzureAdAuthorizationMatrixProperty(List<AuthorizationProperty.DslEntry> entries)
-
-
Method Details
-
add
Description copied from interface:AuthorizationContainer
Adds toAuthorizationContainer.getGrantedPermissionEntries()
. Use of this method should be limited during construction, as this object itself is considered immutable once populated. -
hasExplicitPermission
Description copied from interface:AuthorizationContainer
Return true if and only if the exact permission entry is explicitly granted the specified permission, ignoring compatible types (e.g. passing USER will not match an EITHER entry) and implications.- Parameters:
entry
- the entry to check forp
- the permission to check for- Returns:
- true if and only if the exact entry matches
-
hasPermission
Description copied from interface:AuthorizationContainer
Checks if the given SID has the given permission.
-