Package org.jenkinsci.plugins.matrixauth
Class AuthorizationMatrixNodeProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<NodeProperty<?>>
,ReconfigurableDescribable<NodeProperty<?>>
,AuthorizationContainer
,AuthorizationProperty
public class AuthorizationMatrixNodeProperty
extends NodeProperty<Node>
implements AuthorizationProperty
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
PersistAuthorizationMatrixNodeProperty
as a list of IDs that representgetGrantedPermissionEntries()
.static class
static class
Ensure that the user creating a node 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.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.slaves.NodeProperty
node
-
Constructor Summary
ConstructorDescriptionAuthorizationMatrixNodeProperty
(Map<Permission, Set<PermissionEntry>> grantedPermissions) -
Method Summary
Modifier and TypeMethodDescriptiongetACL()
Returns a live modifiable map of permissions.Internal only: Returns all recorded (possible) group sids to allow populatingAuthorizationStrategy.getGroups()
.void
recordGroup
(String sid) Internal only: Record use of a (possible) group sid to be later returned inAuthorizationContainer.getGroups()
.void
setInheritanceStrategy
(InheritanceStrategy inheritanceStrategy) 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 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
getEntries, isBlocksInheritance, setBlocksInheritance, setEntries
-
Constructor Details
-
AuthorizationMatrixNodeProperty
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public AuthorizationMatrixNodeProperty() -
AuthorizationMatrixNodeProperty
-
-
Method Details
-
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
-
setInheritanceStrategy
- Specified by:
setInheritanceStrategy
in interfaceAuthorizationProperty
-
getInheritanceStrategy
- Specified by:
getInheritanceStrategy
in interfaceAuthorizationProperty
-
getACL
-