Package org.apache.cassandra.auth
Class JMXResource
java.lang.Object
org.apache.cassandra.auth.JMXResource
- All Implemented Interfaces:
IResource
-
Method Summary
Modifier and TypeMethodDescriptionReturns the set of Permissions that may be applied to this resource Certain permissions are not applicable to particular types of resources.booleanbooleanexists()static JMXResourceParses a role resource name into a RoleResource instance.getName()Gets next resource in the hierarchy.inthashCode()booleanIndicates whether or not this resource has a parent in the hierarchy.static JMXResourcestatic JMXResourceroot()toString()
-
Method Details
-
mbean
-
fromName
Parses a role resource name into a RoleResource instance.- Parameters:
name- Name of the data resource.- Returns:
- RoleResource instance matching the name.
-
getName
-
getObjectName
- Returns:
- for a non-root resource, return the short form of the resource name which represents an ObjectName (which may be of the pattern or exact kind). i.e. not the full "root/name" version returned by getName(). Throws IllegalStateException if called on the root-level resource.
-
root
- Returns:
- the root-level resource.
-
getParent
Description copied from interface:IResourceGets next resource in the hierarchy. Call hasParent first to make sure there is one. -
hasParent
public boolean hasParent()Description copied from interface:IResourceIndicates whether or not this resource has a parent in the hierarchy. Please perform this check before calling getParent() method. -
exists
public boolean exists() -
applicablePermissions
Description copied from interface:IResourceReturns the set of Permissions that may be applied to this resource Certain permissions are not applicable to particular types of resources. For instance, it makes no sense to talk about CREATE permission on table, or SELECT on a Role. Here we filter a set of permissions depending on the specific resource they're being applied to. This is necessary because the CQL syntax supports ALL as wildcard, but the set of permissions that should resolve to varies by IResource.- Specified by:
applicablePermissionsin interfaceIResource- Returns:
- the permissions that may be granted on the specific resource
-
toString
-
equals
-
hashCode
public int hashCode()
-