public class Operation
extends java.lang.Object
Constructor and Description |
---|
Operation(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Operation> |
allowOps() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
matches(Operation requestedOp,
PermissionType permissionType)
Returns true if this operation in an access rule can be used for authorizing the provided operation.
|
java.lang.String |
name() |
java.lang.String |
toString() |
public static final Operation ALL
public java.lang.String name()
public java.util.Collection<Operation> allowOps()
public boolean matches(Operation requestedOp, PermissionType permissionType)
AclOperation
for more details about ACL inheritance.requestedOp
- The operation being authorizedpermissionType
- Permission typepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object