|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Permission>
org.rhq.core.domain.authz.Permission
public enum Permission
An authorization permission is applied to Role
s and related to Subject
s that are members of those
Roles. There are two types of permissions - global and resource.
Nested Class Summary | |
---|---|
static class |
Permission.Target
The target that a permission applies to. |
Enum Constant Summary | |
---|---|
CONFIGURE
can C/U/D resource config (e.g. reconfiguring JBoss to listen for jnp on port 1199) |
|
CONTROL
can invoke operations that only change the "running" state of the resource (e.g. start/stop) |
|
CREATE_CHILD_RESOURCES
can manually create new child servers or services |
|
DELETE_RESOURCE
can delete this resource (which also implies deleting all its descendant resources) |
|
MANAGE_ALERTS
can C/U/D alert definitions (this implies VIEW_RESOURCE , MANAGE_MEASUREMENTS , CONTROL ) |
|
MANAGE_CONTENT
can C/U/D content (package bits, software updates, etc) (this implies VIEW_RESOURCE ) |
|
MANAGE_INVENTORY
can C/R/U/D all resources, groups and can import auto-discovered resources |
|
MANAGE_MEASUREMENTS
can C/U/D metric schedules (this implies VIEW_RESOURCE ) |
|
MANAGE_SECURITY
can C/U/D users and roles (viewing is implied for everyone) |
|
MANAGE_SETTINGS
can modify the JON Server configuration and perform any server-related functionality |
|
MODIFY_RESOURCE
can modify resource name, description, and plugin config (e.g. set principal/credentials JBoss plugin uses to access the server) |
|
VIEW_RESOURCE
can view this resource's config, metrics, and alerts |
Field Summary | |
---|---|
static EnumSet<Permission> |
RESOURCE_ALL
|
Method Summary | |
---|---|
Permission.Target |
getTarget()
Returns the target that this permission applies to. |
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Permission[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Permission MANAGE_SECURITY
public static final Permission MANAGE_INVENTORY
public static final Permission MANAGE_SETTINGS
public static final Permission VIEW_RESOURCE
public static final Permission MODIFY_RESOURCE
public static final Permission DELETE_RESOURCE
public static final Permission CREATE_CHILD_RESOURCES
public static final Permission MANAGE_ALERTS
VIEW_RESOURCE
, MANAGE_MEASUREMENTS
, CONTROL
)
public static final Permission MANAGE_MEASUREMENTS
VIEW_RESOURCE
)
public static final Permission MANAGE_CONTENT
VIEW_RESOURCE
)
public static final Permission CONTROL
public static final Permission CONFIGURE
Field Detail |
---|
public static final EnumSet<Permission> RESOURCE_ALL
Method Detail |
---|
public static final Permission[] values()
for(Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic Permission.Target getTarget()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |