public class SpaceAuthority extends Object implements InternalAuthority
The
SpaceAuthrotiy
s' Authority.getAuthority()
String representation format:
SpacePrivilege privilege-value [filter]
Where:
privilege-value = WRITE | CREATE | READ | TAKE | EXECUTE | ALTER
filter = RegexFilter regex |
NegateRegexFilter regex |
ClassFilter class-name |
NegateClassFilter class-name |
PackageFilter package-name |
NegatePackageFilter package-name
The privileges represent the following space operations:
WRITE - write and update operations, this grants CREATE privilege as well.
CREATE - write only operations
READ - read operations, count, notify
TAKE - take operations, clear
EXECUTE - execute tasks
ALTER - clean, drop-class
Modifier and Type | Class and Description |
---|---|
static class |
SpaceAuthority.ClassFilter
Class filter accepting only the defined class-name.
|
static interface |
SpaceAuthority.Filter<T>
interface for data access filtering.
|
static class |
SpaceAuthority.NegateClassFilter
Class filter accepting only classes not of the defined class-name.
|
static interface |
SpaceAuthority.NegateFilter<T>
interface for restrictive data access filtering.
|
static class |
SpaceAuthority.NegatePackageFilter
Package filter accepting only packages not of the defined package.
|
static class |
SpaceAuthority.NegateRegexFilter
Negate a regular expression filter.
|
static class |
SpaceAuthority.PackageFilter
Package filter accepting only the defined package
|
static class |
SpaceAuthority.RegexFilter
Regular expression filter, using a regular expression as a pattern of characters that
describes a set of strings.
|
static class |
SpaceAuthority.SpacePrivilege
Defines operation privileges
|
static class |
SpaceAuthority.WildcardExpressionToFilterConverter
Convert a wildcard expression to a filter instance.
|
Constructor and Description |
---|
SpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege)
An authority with the specified privilege.
|
SpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege,
SpaceAuthority.Filter filter)
An authority with the specified privilege.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAuthority()
An
Authority that can be represented as a String which is
sufficient in precision to be relied upon for an access control decisions. |
SpaceAuthority.Filter |
getFilter() |
Privilege |
getPrivilege()
A granted privilege associated with this Authority.
|
int |
hashCode() |
String |
toString() |
static SpaceAuthority |
valueOf(String authority)
Parses the
getAuthority() string representation of an Authority. |
public SpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege)
spacePrivilege
- a granted authority.public SpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege, SpaceAuthority.Filter filter)
spacePrivilege
- granted privilegefilter
- a filter on the specified privilege.public static SpaceAuthority valueOf(String authority)
getAuthority()
string representation of an Authority.authority
- the authority string to parse.public String getAuthority()
Authority
Authority
that can be represented as a String
which is
sufficient in precision to be relied upon for an access control decisions.getAuthority
in interface Authority
String
with
sufficient precision).public SpaceAuthority.Filter getFilter()
public Privilege getPrivilege()
InternalAuthority
getPrivilege
in interface InternalAuthority
Copyright © GigaSpaces.