@Immutable public class ResourcePermission extends org.apache.shiro.authz.permission.WildcardPermission
Modifier and Type | Class and Description |
---|---|
static class |
ResourcePermission.Operation |
static class |
ResourcePermission.Resource |
static class |
ResourcePermission.Target |
Modifier and Type | Field and Description |
---|---|
static String |
ALL |
static String |
ALL_KEYS
Deprecated.
use All
|
static String |
ALL_REGIONS
Deprecated.
use ALL
|
static String |
NULL |
Constructor and Description |
---|
ResourcePermission() |
ResourcePermission(ResourcePermission.Resource resource,
ResourcePermission.Operation operation) |
ResourcePermission(ResourcePermission.Resource resource,
ResourcePermission.Operation operation,
ResourcePermission.Target target) |
ResourcePermission(ResourcePermission.Resource resource,
ResourcePermission.Operation operation,
ResourcePermission.Target target,
String key) |
ResourcePermission(ResourcePermission.Resource resource,
ResourcePermission.Operation operation,
String target) |
ResourcePermission(ResourcePermission.Resource resource,
ResourcePermission.Operation operation,
String target,
String key) |
ResourcePermission(String resource,
String operation) |
ResourcePermission(String resource,
String operation,
String target) |
ResourcePermission(String resource,
String operation,
String target,
String key) |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
returns the key, could be "*" meaning all keys.
|
ResourcePermission.Operation |
getOperation()
Returns the operation, could be either ALL, NULL, MANAGE, WRITE or READ
|
String |
getOperationString()
Returns the operation, could be either "*", "NULL", "MANAGE", "WRITE" or "READ"
|
String |
getRegionName()
Deprecated.
use getTarget()
|
ResourcePermission.Resource |
getResource()
Returns the resource, could be either ALL, NULL, DATA or CLUSTER
|
String |
getResourceString()
could be either "*", "NULL", "DATA", "CLUSTER"
|
String |
getTarget()
returns the regionName, or cluster target, could be "*", meaning all regions or all targets
|
String |
toString() |
public static final String ALL
public static final String NULL
@Deprecated public static final String ALL_REGIONS
@Deprecated public static final String ALL_KEYS
public ResourcePermission()
public ResourcePermission(ResourcePermission.Resource resource, ResourcePermission.Operation operation)
public ResourcePermission(ResourcePermission.Resource resource, ResourcePermission.Operation operation, String target)
public ResourcePermission(ResourcePermission.Resource resource, ResourcePermission.Operation operation, ResourcePermission.Target target)
public ResourcePermission(ResourcePermission.Resource resource, ResourcePermission.Operation operation, ResourcePermission.Target target, String key)
public ResourcePermission(ResourcePermission.Resource resource, ResourcePermission.Operation operation, String target, String key)
public ResourcePermission.Resource getResource()
ResourcePermission.Resource
public ResourcePermission.Operation getOperation()
ResourcePermission.Operation
public String getResourceString()
public String getOperationString()
public String getTarget()
@Deprecated public String getRegionName()
public String getKey()
public String toString()
toString
in class org.apache.shiro.authz.permission.WildcardPermission