Class GrantLayer
java.lang.Object
io.jenkins.plugins.batchcontrol.security.GrantLayer
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class GrantLayer
extends Object
Entry points to the grant layer for code outside this package (D-35b, D-35c).
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasPermissionWithoutGrants(AccessControlled object, org.springframework.security.core.Authentication a, Permission permission) Whetheraholdspermissiononobjectwithout any grant: the answer of the installed strategy alone, with every grant layer switched off on this thread for the duration of the check (inherited ACLs included).static booleanisGrantLayered(AuthorizationStrategy strategy) Whetherstrategyis a Batch Control strategy (layers grants over its parent).
-
Method Details
-
isGrantLayered
Whetherstrategyis a Batch Control strategy (layers grants over its parent). -
hasPermissionWithoutGrants
public static boolean hasPermissionWithoutGrants(@NonNull AccessControlled object, @NonNull org.springframework.security.core.Authentication a, @NonNull Permission permission) Whetheraholdspermissiononobjectwithout any grant: the answer of the installed strategy alone, with every grant layer switched off on this thread for the duration of the check (inherited ACLs included).
-