|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.security.PermissionScope
public final class 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.
Field Summary | |
---|---|
static PermissionScope |
COMPUTER
Permissions scoped to current instances of Computer s. |
static PermissionScope |
ITEM
Permissions scoped to Item s (including Job s and other subtypes) |
static PermissionScope |
ITEM_GROUP
Permissions scoped to containers of Item s. |
static PermissionScope |
JENKINS
Permissions scoped to the entire Jenkins instance. |
Class |
modelClass
Domain model type that approximates this scope. |
static PermissionScope |
RUN
Permissions scoped to Run s (including Build s and other subtypes) |
Constructor Summary | |
---|---|
PermissionScope(Class modelClass,
PermissionScope... containers)
|
Method Summary | |
---|---|
boolean |
isContainedBy(PermissionScope s)
Returns true if this scope is directly or indirectly contained by the given scope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Class modelClass
public static final PermissionScope JENKINS
public static final PermissionScope ITEM_GROUP
Item
s.
public static final PermissionScope ITEM
Item
s (including Job
s and other subtypes)
public static final PermissionScope RUN
Run
s (including Build
s and other subtypes)
public static final PermissionScope COMPUTER
Computer
s.
Constructor Detail |
---|
public PermissionScope(Class modelClass, PermissionScope... containers)
Method Detail |
---|
public boolean isContainedBy(PermissionScope s)
A scope always contains itself.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |