Package com.microsoft.jenkins.azuread
Class AzureAdAuthorizationMatrixNodeProperty
- java.lang.Object
-
- hudson.slaves.NodeProperty<Node>
-
- com.microsoft.jenkins.azuread.AuthorizationMatrixNodeProperty
-
- com.microsoft.jenkins.azuread.AzureAdAuthorizationMatrixNodeProperty
-
- All Implemented Interfaces:
AuthorizationContainer
,AuthorizationProperty
,ExtensionPoint
,Describable<NodeProperty<?>>
,ReconfigurableDescribable<NodeProperty<?>>
public class AzureAdAuthorizationMatrixNodeProperty extends AuthorizationMatrixNodeProperty
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AzureAdAuthorizationMatrixNodeProperty.ConverterImpl
PersistAzureAdAuthorizationMatrixNodeProperty
as a list of IDs that representAuthorizationMatrixNodeProperty.getGrantedPermissionEntries()
.static class
AzureAdAuthorizationMatrixNodeProperty.DescriptorImpl
static class
AzureAdAuthorizationMatrixNodeProperty.NodeListenerImpl
Ensure that the user creating a node has Read and Configure permissions.-
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.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.slaves.NodeProperty
node
-
-
Constructor Summary
Constructors Constructor Description AzureAdAuthorizationMatrixNodeProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Permission permission, 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.AuthorizationMatrixNodeProperty
getACL, getEditingPermission, getGrantedPermissionEntries, getGroups, getInheritanceStrategy, recordGroup, setInheritanceStrategy
-
Methods inherited from class hudson.slaves.NodeProperty
all, buildEnvVars, canTake, canTake, for_, getDescriptor, reconfigure, setNode, setUp
-
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
getEntries, isBlocksInheritance, setBlocksInheritance, setEntries
-
-
-
-
Method Detail
-
add
public void add(Permission permission, PermissionEntry entry)
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
public boolean hasExplicitPermission(PermissionEntry entry, Permission p)
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
public boolean hasPermission(String sid, Permission p, boolean principal)
Description copied from interface:AuthorizationContainer
Checks if the given SID has the given permission.
-
-