|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.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 to which the permission applies |
Enum Constant Summary | |
---|---|
CONFIGURE_READ
can view Resource configuration, but can not necessarily C/U/D unless CONFIGURE_WRITE is also possessed |
|
CONFIGURE_WRITE
can C/U/D resource config (e.g. reconfiguring JBoss to listen for jnp on port 1199); having this permission implies having CONFIGURE_READ |
|
CONTROL
can invoke operations and delete operation history items |
|
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 MANAGE_MEASUREMENTS and CONTROL ) |
|
MANAGE_BUNDLE
can C/U/D provisioning bundles |
|
MANAGE_CONTENT
can C/U/D content (package bits, software updates, etc.) |
|
MANAGE_DRIFT
Can C/U/D drift related entities |
|
MANAGE_EVENTS
can C/U/D events (in the future, will also C/U/D event definitions) |
|
MANAGE_INVENTORY
can C/R/U/D all resources, groups and can import auto-discovered resources |
|
MANAGE_MEASUREMENTS
can C/U/D metric schedules |
|
MANAGE_REPOSITORIES
Can C/U/D repositories and content sources |
|
MANAGE_SECURITY
can C/U/D users and roles (viewing is implied for everyone) |
|
MANAGE_SETTINGS
can modify the RHQ Server configuration and perform any server-related functionality |
|
MODIFY_RESOURCE
can modify resource name, description, and plugin config (e.g. set principal/credentials jboss-as plugin uses to access the managed JBossAS instance) |
|
VIEW_RESOURCE
can view (but not C/U/D) all aspects of this Resource except its configuration ( CONFIGURE_READ is
required to view that); this permission is implied just by having a Resource or Group in one's assigned Roles |
Field Summary | |
---|---|
static Set<Permission> |
GLOBAL_ALL
|
static Set<Permission> |
RESOURCE_ALL
|
Method Summary | |
---|---|
Permission.Target |
getTarget()
Returns the target to which the permission applies |
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 are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
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
CONFIGURE_READ
is
required to view that); this permission is implied just by having a Resource or Group in one's assigned Roles
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
MANAGE_MEASUREMENTS
and CONTROL
)
public static final Permission MANAGE_MEASUREMENTS
public static final Permission MANAGE_CONTENT
public static final Permission CONTROL
public static final Permission CONFIGURE_WRITE
CONFIGURE_READ
public static final Permission MANAGE_BUNDLE
public static final Permission CONFIGURE_READ
CONFIGURE_WRITE
is also possessed
public static final Permission MANAGE_EVENTS
public static final Permission MANAGE_REPOSITORIES
public static final Permission MANAGE_DRIFT
Field Detail |
---|
public static final Set<Permission> GLOBAL_ALL
public static final Set<Permission> RESOURCE_ALL
Method Detail |
---|
public static 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 name
NullPointerException
- if the argument is nullpublic Permission.Target getTarget()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |