public enum AuthorizationPermission extends Enum<AuthorizationPermission>
Enum Constant and Description |
---|
ADMIN
Allows performing "administrative" operations on a cache
|
ALL
Aggregate permission which implies all of the others
|
ALL_READ
Aggregate permission which implies all read permissions
|
ALL_WRITE
Aggregate permission which implies all write permissions
|
BULK_READ
Allows bulk-read operations (e.g.
|
BULK_WRITE
Allows bulk-write operations (e.g.
|
EXEC
Allows performing task execution (e.g.
|
LIFECYCLE
Allows control of a cache's lifecycle (i.e.
|
LISTEN
Allows attaching listeners to a cache
|
NONE
No permissions
|
READ
Allows reading data from a cache
|
WRITE
Allows writing data to a cache
|
Modifier and Type | Method and 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.
|
public static final AuthorizationPermission LIFECYCLE
Lifecycle.start()
and
Cache.stop()
public static final AuthorizationPermission READ
public static final AuthorizationPermission WRITE
public static final AuthorizationPermission EXEC
public static final AuthorizationPermission LISTEN
public static final AuthorizationPermission BULK_READ
Cache.keySet()
) on a cachepublic static final AuthorizationPermission BULK_WRITE
Cache.clear()
) on a cachepublic static final AuthorizationPermission ADMIN
public static final AuthorizationPermission ALL
public static final AuthorizationPermission ALL_READ
public static final AuthorizationPermission ALL_WRITE
public static final AuthorizationPermission NONE
public static AuthorizationPermission[] values()
for (AuthorizationPermission c : AuthorizationPermission.values()) System.out.println(c);
public static AuthorizationPermission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getMask()
public CachePermission getSecurityPermission()
public boolean matches(int mask)
public boolean implies(AuthorizationPermission that)
Copyright © 2021 JBoss by Red Hat. All rights reserved.