public static class SecurityContext.Permission<T> extends Object
Modifier and Type | Field and Description |
---|---|
static SecurityContext.Permission<Object> |
ALL
Holds the global permission for anything.
|
Constructor and Description |
---|
SecurityContext.Permission(Class<? super T> category)
Creates a security permission for all actions of the specified category.
|
SecurityContext.Permission(Class<? super T> category,
String action)
Creates a security permission for the specified action of the
specified category.
|
SecurityContext.Permission(Class<? super T> category,
String action,
T instance)
Creates a security permission for the specified instance and the
specified action of the specified category.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAction()
Returns the permission action or
null for all actions. |
Class<? super T> |
getCategory()
Returns the permission category or
null for all categories. |
T |
getInstance()
Returns the permission instance or
null for all instances. |
int |
hashCode() |
boolean |
implies(SecurityContext.Permission<?> that)
Checks if the specified permission is automatically granted/revoked
by 'this' permission being granted/revoked.
|
String |
toString() |
public static final SecurityContext.Permission<Object> ALL
public SecurityContext.Permission(Class<? super T> category)
public SecurityContext.Permission(Class<? super T> category, String action)
public Class<? super T> getCategory()
null
for all categories.public String getAction()
null
for all actions.public T getInstance()
null
for all instances.public boolean implies(SecurityContext.Permission<?> that)
that
- the permission to check.true
if this permission being granted/revoked
implies that the specified permission is granted/revoked;
false
otherwise.Copyright © 2005-2013 Javolution. All Rights Reserved.