public class Operation extends Object
Modifier and Type | Method and Description |
---|---|
Collection<Operation> |
allowOps() |
boolean |
equals(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.
|
String |
name() |
String |
toString() |
public static final Operation ALL
public Operation(String name)
public String name()
public Collection<Operation> allowOps()
public boolean matches(Operation requestedOp, PermissionType permissionType)
AclOperation
for more details about ACL inheritance.requestedOp
- The operation being authorizedpermissionType
- Permission type