Class AuthorizationMatrixProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
,ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
,AuthorizationContainer
,AuthorizationProperty
public class AuthorizationMatrixProperty
extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
implements AuthorizationProperty
Holds ACL for
ProjectMatrixAuthorizationStrategy
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
PersistAuthorizationMatrixProperty
as a list of IDs that representAuthorizationContainer.getGrantedPermissions()
.static class
static class
Ensure that the user creating a folder 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 com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
owner
-
Constructor Summary
ModifierConstructorDescriptionprotected
Exists for reflective Job DSL / Pipeline use only.AuthorizationMatrixProperty
(Map<Permission, ? extends 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()
.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
setOwner
(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> owner) Methods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getDescriptor, getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, 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
protected AuthorizationMatrixProperty() -
AuthorizationMatrixProperty
@Deprecated public AuthorizationMatrixProperty(Map<Permission, ? extends Set<String>> grantedPermissions) Deprecated. -
AuthorizationMatrixProperty
@DataBoundConstructor @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public AuthorizationMatrixProperty(List<AuthorizationProperty.DslEntry> entries) Exists for reflective Job DSL / Pipeline use only.
-
-
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
-
setOwner
protected void setOwner(@NonNull com.cloudbees.hudson.plugins.folder.AbstractFolder<?> owner) - Overrides:
setOwner
in classcom.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
-
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
-