Package hudson.security
Class PermissionScope
java.lang.Object
hudson.security.PermissionScope
Represents the model class
Permission acts on and scoped to.
This abstraction primarily controls what permissions are configurable at what level.
For example, "create an item" is scoped to ItemGroup in the sense that
it "acts" on the item group object (and therefore it won't make sense to control
this permission at more finer scope, such as Run.)
Every Permission belongs to a set of scopes. Each scope is to be represented
as a constant. This class defines a few constants, but plugins can define their own.
- Since:
- 1.421
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PermissionScopestatic final PermissionScopestatic final PermissionScopePermissions scoped to containers ofItems.static final PermissionScopePermissions scoped to the entire Jenkins instance.final Class<? extends ModelObject>Domain model type that approximates this scope.static final PermissionScope -
Constructor Summary
ConstructorsConstructorDescriptionPermissionScope(Class<? extends ModelObject> modelClass, PermissionScope... containers) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this scope is directly or indirectly contained by the given scope.
-
Field Details
-
modelClass
Domain model type that approximates this scope. -
JENKINS
Permissions scoped to the entire Jenkins instance. -
ITEM_GROUP
Permissions scoped to containers ofItems. -
ITEM
-
RUN
-
COMPUTER
-
-
Constructor Details
-
PermissionScope
-
-
Method Details
-
isContainedBy
Returns true if this scope is directly or indirectly contained by the given scope.A scope always contains itself.
-