Package org.apache.cassandra.auth
Class Resources
- java.lang.Object
-
- org.apache.cassandra.auth.Resources
-
public final class Resources extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Resources()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<? extends IResource>
chain(IResource resource)
Construct a chain of resource parents starting with the resource and ending with the root.static IResource
fromName(java.lang.String name)
Creates an IResource instance from its external name.
-
-
-
Method Detail
-
chain
public static java.util.List<? extends IResource> chain(IResource resource)
Construct a chain of resource parents starting with the resource and ending with the root.- Parameters:
resource
- The staring point.- Returns:
- list of resource in the chain form start to the root.
-
fromName
public static IResource fromName(java.lang.String name)
Creates an IResource instance from its external name. Resource implementation class is inferred by matching against the known IResource impls' root level resources.- Parameters:
name
- external name to create IResource from- Returns:
- an IResource instance created from the name
-
-