public class RoleResource extends java.lang.Object implements IResource, java.lang.Comparable<RoleResource>
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Permission> |
applicablePermissions()
Returns the set of Permissions that may be applied to this resource
Certain permissions are not applicable to particular types of resources.
|
int |
compareTo(RoleResource o) |
boolean |
equals(java.lang.Object o) |
boolean |
exists() |
static RoleResource |
fromName(java.lang.String name)
Parses a role resource name into a RoleResource instance.
|
java.lang.String |
getName() |
IResource |
getParent()
Gets next resource in the hierarchy.
|
java.lang.String |
getRoleName() |
int |
hashCode() |
boolean |
hasParent()
Indicates whether or not this resource has a parent in the hierarchy.
|
static RoleResource |
role(java.lang.String name)
Creates a RoleResource representing an individual Role.
|
static RoleResource |
root() |
java.lang.String |
toString() |
public static RoleResource root()
public static RoleResource role(java.lang.String name)
name - name of the Role.public static RoleResource fromName(java.lang.String name)
name - Name of the data resource.public java.lang.String getName()
public java.lang.String getRoleName()
public IResource getParent()
IResourcepublic boolean hasParent()
IResourcepublic boolean exists()
public java.util.Set<Permission> applicablePermissions()
IResourceapplicablePermissions in interface IResourcepublic int compareTo(RoleResource o)
compareTo in interface java.lang.Comparable<RoleResource>public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2015 The Apache Software Foundation