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 Deprecated 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 java.util.List<? extends IResource>chain(IResource resource, java.util.function.Predicate<IResource> filter)Construct a chain of resource parents starting with the resource and ending with the root.static IResourcefromName(java.lang.String name)Creates an IResource instance from its external name.static java.lang.StringtoString(java.util.List<java.lang.Object> resource)Deprecated.
-
-
-
Field Detail
-
ROOT
@Deprecated public static final java.lang.String ROOT
Deprecated.- See Also:
- Constant Field Values
-
KEYSPACES
@Deprecated public static final java.lang.String KEYSPACES
Deprecated.- See Also:
- Constant Field Values
-
-
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 starting point.- Returns:
- list of resource in the chain form start to the root.
-
chain
public static java.util.List<? extends IResource> chain(IResource resource, java.util.function.Predicate<IResource> filter)
Construct a chain of resource parents starting with the resource and ending with the root. Only resources which satisfy the supplied predicate will be included.- Parameters:
resource- The starting point.filter- can be used to omit specific resources from the chain- 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-- Returns:
- an IResource instance created from the name
-
toString
@Deprecated public static java.lang.String toString(java.util.List<java.lang.Object> resource)
Deprecated.
-
-