public class AuthorizationMatrixProperty
extends hudson.model.JobProperty<hudson.model.Job<?,?>>
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 |
Constructor and Description |
---|
AuthorizationMatrixProperty(Map<hudson.security.Permission,Set<String>> grantedPermissions) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(hudson.security.Permission p,
String sid)
Adds to
grantedPermissions . |
hudson.security.SidACL |
getACL() |
List<String> |
getAllSIDs()
Returns all SIDs configured in this matrix, minus "anonymous"
|
Map<hudson.security.Permission,Set<String>> |
getGrantedPermissions()
Returns all the (Permission,sid) pairs that are granted, in the multi-map form.
|
Set<String> |
getGroups() |
boolean |
hasExplicitPermission(String sid,
hudson.security.Permission p)
Checks if the permission is explicitly given, instead of implied through
Permission.impliedBy . |
boolean |
hasPermission(String sid,
hudson.security.Permission p)
Checks if the given SID has the given permission.
|
boolean |
isBlocksInheritance()
Returns true if the authorization matrix is configured to block
inheritance from the parent.
|
public List<String> getAllSIDs()
public Map<hudson.security.Permission,Set<String>> getGrantedPermissions()
protected 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.public hudson.security.SidACL getACL()
public boolean isBlocksInheritance()
public boolean hasPermission(String sid, hudson.security.Permission p)
public boolean hasExplicitPermission(String sid, hudson.security.Permission p)
Permission.impliedBy
.Copyright © 2016. All rights reserved.