Package org.infinispan.security
Enum AuthorizationPermission
- All Implemented Interfaces:
Serializable
,Comparable<AuthorizationPermission>
AuthorizationPermission.
- Since:
- 7.0
- Author:
- Tristan Tarrant
-
Enum Constant Summary
Enum ConstantDescriptionAllows performing "administrative" operations on a cacheAggregate permission which implies all the othersAggregate permission which implies all read permissionsAggregate permission which implies all write permissionsAllows bulk-read operations (e.g.Allows bulk-write operations (e.g.Allows creation of resources (caches, counters, schemas, tasks)Allows performing task execution (e.g.Allows control of a cache's lifecycle (i.e.Allows attaching listeners to a cacheAllows retrieval of statsNo permissionsAllows reading data from a cacheAllows writing data to a cache -
Method Summary
Modifier and TypeMethodDescriptionint
getMask()
boolean
boolean
matches
(int mask) static AuthorizationPermission
Returns the enum constant of this type with the specified name.static AuthorizationPermission[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LIFECYCLE
@ProtoEnumValue(value=1, name="LIFECYCLE_PERMISSION") public static final AuthorizationPermission LIFECYCLEAllows control of a cache's lifecycle (i.e. invokeLifecycle.start()
andCache.stop()
-
READ
Allows reading data from a cache -
WRITE
Allows writing data to a cache -
EXEC
Allows performing task execution (e.g. cluster executor, tasks) on a cache -
LISTEN
Allows attaching listeners to a cache -
BULK_READ
Allows bulk-read operations (e.g.Cache.keySet()
) on a cache -
BULK_WRITE
Allows bulk-write operations (e.g.Cache.clear()
) on a cache -
ADMIN
Allows performing "administrative" operations on a cache -
CREATE
Allows creation of resources (caches, counters, schemas, tasks) -
MONITOR
Allows retrieval of stats -
ALL
Aggregate permission which implies all the others -
ALL_READ
Aggregate permission which implies all read permissions -
ALL_WRITE
Aggregate permission which implies all write permissions -
NONE
No permissions
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMask
public int getMask() -
getSecurityPermission
-
matches
public boolean matches(int mask) -
implies
-