public abstract class Permission extends Object implements Guard, Serializable
| Constructor and Description |
|---|
Permission(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkGuard(Object obj)
Checks whether access to the specified
Object should be granted. |
abstract String |
getActions() |
String |
getName() |
abstract boolean |
implies(Permission permission) |
PermissionCollection |
newPermissionCollection() |
public Permission(String name)
public final String getName()
public void checkGuard(Object obj) throws SecurityException
GuardObject should be granted.
This method returns silently if access is granted, otherwise a SecurityException is thrown.checkGuard in interface Guardobj - the object to be protected by this Guard.SecurityException - if access is not granted.public PermissionCollection newPermissionCollection()
public abstract String getActions()
public abstract boolean implies(Permission permission)