Class GlobalAclImpl
java.lang.Object
hudson.security.ACL
hudson.security.SidACL
io.jenkins.plugins.folderauth.acls.GlobalAclImpl
An immutable ACL object. Dispose off when no longer valid.
Creation of this object may be time intensive. Do NOT keep returning new instances of this object.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
Set<Permission>> Maps each sid to the set of permissions assigned to it.Fields inherited from class hudson.security.ACL
ANONYMOUS, ANONYMOUS_USERNAME, EVERYONE, SYSTEM, SYSTEM_USERNAME, SYSTEM2
-
Constructor Summary
ConstructorDescriptionGlobalAclImpl
(Set<GlobalRole> globalRoles) Initializes the ACL objects and preemptively calculates all permissions for all sids. -
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
hasPermission
(Sid sid, Permission permission) Methods inherited from class hudson.security.SidACL
_hasPermission, hasPermission2, newInheritingACL, toString
Methods inherited from class hudson.security.ACL
as, as, as2, checkAnyPermission, checkCreatePermission, checkCreatePermission, checkPermission, hasAnyPermission, hasCreatePermission, hasCreatePermission, hasCreatePermission2, hasCreatePermission2, hasPermission, hasPermission, impersonate, impersonate, impersonate, impersonate2, impersonate2, impersonate2, isAnonymous, isAnonymous2, lambda, lambda2
-
Field Details
-
permissionList
Maps each sid to the set of permissions assigned to it.The implementation should ensure that this list contains accurate permissions for each sid.
-
-
Constructor Details
-
GlobalAclImpl
Initializes the ACL objects and preemptively calculates all permissions for all sids.- Parameters:
globalRoles
- set of roles from which to calculate the permissions.
-
-
Method Details
-
hasPermission
- Specified by:
hasPermission
in classSidACL
-