Package org.infinispan.security
Enum AuthorizationPermission
- java.lang.Object
-
- java.lang.Enum<AuthorizationPermission>
-
- org.infinispan.security.AuthorizationPermission
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthorizationPermission>
public enum AuthorizationPermission extends Enum<AuthorizationPermission>
AuthorizationPermission.- Since:
- 7.0
- Author:
- Tristan Tarrant
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN
Allows performing "administrative" operations on a cacheALL
Aggregate permission which implies all of the othersALL_READ
Aggregate permission which implies all read permissionsALL_WRITE
Aggregate permission which implies all write permissionsBULK_READ
Allows bulk-read operations (e.g.BULK_WRITE
Allows bulk-write operations (e.g.CREATE
Allows creation of resources (caches, counters, schemas, tasks)EXEC
Allows performing task execution (e.g.LIFECYCLE
Allows control of a cache's lifecycle (i.e.LISTEN
Allows attaching listeners to a cacheMONITOR
Allows retrieval of statsNONE
No permissionsREAD
Allows reading data from a cacheWRITE
Allows writing data to a cache
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMask()
CachePermission
getSecurityPermission()
boolean
implies(AuthorizationPermission that)
boolean
matches(int mask)
static AuthorizationPermission
valueOf(String name)
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 Detail
-
LIFECYCLE
public static final AuthorizationPermission LIFECYCLE
Allows control of a cache's lifecycle (i.e. invokeLifecycle.start()
andCache.stop()
-
READ
public static final AuthorizationPermission READ
Allows reading data from a cache
-
WRITE
public static final AuthorizationPermission WRITE
Allows writing data to a cache
-
EXEC
public static final AuthorizationPermission EXEC
Allows performing task execution (e.g. cluster executor, tasks) on a cache
-
LISTEN
public static final AuthorizationPermission LISTEN
Allows attaching listeners to a cache
-
BULK_READ
public static final AuthorizationPermission BULK_READ
Allows bulk-read operations (e.g.Cache.keySet()
) on a cache
-
BULK_WRITE
public static final AuthorizationPermission BULK_WRITE
Allows bulk-write operations (e.g.Cache.clear()
) on a cache
-
ADMIN
public static final AuthorizationPermission ADMIN
Allows performing "administrative" operations on a cache
-
CREATE
public static final AuthorizationPermission CREATE
Allows creation of resources (caches, counters, schemas, tasks)
-
MONITOR
public static final AuthorizationPermission MONITOR
Allows retrieval of stats
-
ALL
public static final AuthorizationPermission ALL
Aggregate permission which implies all of the others
-
ALL_READ
public static final AuthorizationPermission ALL_READ
Aggregate permission which implies all read permissions
-
ALL_WRITE
public static final AuthorizationPermission ALL_WRITE
Aggregate permission which implies all write permissions
-
NONE
public static final AuthorizationPermission NONE
No permissions
-
-
Method Detail
-
values
public static AuthorizationPermission[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AuthorizationPermission c : AuthorizationPermission.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationPermission valueOf(String name)
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
public CachePermission getSecurityPermission()
-
matches
public boolean matches(int mask)
-
implies
public boolean implies(AuthorizationPermission that)
-
-