public abstract class Permission extends Object implements Guard, Serializable
Constructor and Description |
---|
Permission(String name) |
Modifier and Type | Method and Description |
---|---|
void |
checkGuard(Object object) |
abstract boolean |
equals(Object obj)
Default object equality (is identity).
|
abstract String |
getActions() |
String |
getName() |
abstract int |
hashCode()
The (default) object hashcode: for transient objects this is simply the
address of the instance in memory, for persistent objects it is the
address at which the instance was first created (maybe in a previous
activation of the VM).
|
abstract boolean |
implies(Permission perm) |
PermissionCollection |
newPermissionCollection() |
String |
toString()
Default String representation: overriden by many classes.
|
public Permission(String name)
public final String getName()
public void checkGuard(Object object) throws SecurityException
checkGuard
in interface Guard
SecurityException
public abstract boolean equals(Object obj)
Object
public abstract boolean implies(Permission perm)
public abstract int hashCode()
Object
public abstract String getActions()
public PermissionCollection newPermissionCollection()