public class AuthorizationMatrixProperty extends hudson.model.JobProperty<hudson.model.Job<?,?>> implements AuthorizationProperty
JobProperty
to associate ACL for each project.
Once created (and initialized), this object becomes immutable.
Modifier and Type | Class and Description |
---|---|
static class |
AuthorizationMatrixProperty.ConverterImpl
Persist
ProjectMatrixAuthorizationStrategy as a list of IDs that
represent GlobalMatrixAuthorizationStrategy.grantedPermissions . |
static class |
AuthorizationMatrixProperty.DescriptorImpl |
static class |
AuthorizationMatrixProperty.ItemListenerImpl
Ensure that the user creating a job has Read and Configure permissions
|
AuthorizationContainer.IdStrategyComparator
Constructor and Description |
---|
AuthorizationMatrixProperty(Map<hudson.security.Permission,Set<String>> grantedPermissions) |
Modifier and Type | Method and Description |
---|---|
void |
add(hudson.security.Permission p,
String sid)
Adds to
grantedPermissions . |
hudson.security.SidACL |
getACL() |
Map<hudson.security.Permission,Set<String>> |
getGrantedPermissions()
Returns all the (Permission,sid) pairs that are granted, in the multi-map form.
|
Set<String> |
getGroups() |
InheritanceStrategy |
getInheritanceStrategy() |
void |
setInheritanceStrategy(InheritanceStrategy inheritanceStrategy) |
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isBlocksInheritance, setBlocksInheritance
add, getAllSIDs, hasExplicitPermission, hasPermission, hasPermission, isAnyRelevantDangerousPermissionExplicitlyGranted, isAnyRelevantDangerousPermissionExplicitlyGranted
public Map<hudson.security.Permission,Set<String>> getGrantedPermissions()
getGrantedPermissions
in interface AuthorizationContainer
public void add(hudson.security.Permission p, String sid)
grantedPermissions
. Use of this method should be limited
during construction, as this object itself is considered immutable once
populated.add
in interface AuthorizationContainer
public hudson.security.SidACL getACL()
public void setInheritanceStrategy(InheritanceStrategy inheritanceStrategy)
setInheritanceStrategy
in interface AuthorizationProperty
public InheritanceStrategy getInheritanceStrategy()
getInheritanceStrategy
in interface AuthorizationProperty
Copyright © 2016–2017. All rights reserved.