public class SecurableObjects
extends java.lang.Object
SecurableObject.| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Splitter |
DOT_SPLITTER
The splitter for splitting the names.
|
| Constructor and Description |
|---|
SecurableObjects() |
| Modifier and Type | Method and Description |
|---|---|
static SecurableObject |
ofCatalog(java.lang.String catalog,
java.util.List<Privilege> privileges)
Create the catalog
SecurableObject with the given catalog name and privileges. |
static SecurableObject |
ofFileset(SecurableObject schema,
java.lang.String fileset,
java.util.List<Privilege> privileges)
Create the table
SecurableObject with the given securable schema object, fileset name
and privileges. |
static SecurableObject |
ofMetalake(java.lang.String metalake,
java.util.List<Privilege> privileges)
Create the metalake
SecurableObject with the given metalake name and privileges. |
static SecurableObject |
ofSchema(SecurableObject catalog,
java.lang.String schema,
java.util.List<Privilege> privileges)
Create the schema
SecurableObject with the given securable catalog object, schema name
and privileges. |
static SecurableObject |
ofTable(SecurableObject schema,
java.lang.String table,
java.util.List<Privilege> privileges)
Create the table
SecurableObject with the given securable schema object, table name and
privileges. |
static SecurableObject |
ofTopic(SecurableObject schema,
java.lang.String topic,
java.util.List<Privilege> privileges)
Create the topic
SecurableObject with the given securable schema object ,topic name and
privileges. |
static SecurableObject |
parse(java.lang.String fullName,
MetadataObject.Type type,
java.util.List<Privilege> privileges)
Create a
SecurableObject from the given full name. |
public static final com.google.common.base.Splitter DOT_SPLITTER
public static SecurableObject ofMetalake(java.lang.String metalake, java.util.List<Privilege> privileges)
SecurableObject with the given metalake name and privileges.metalake - The metalake nameprivileges - The privileges of the metalakeSecurableObjectpublic static SecurableObject ofCatalog(java.lang.String catalog, java.util.List<Privilege> privileges)
SecurableObject with the given catalog name and privileges.catalog - The catalog nameprivileges - The privileges of the catalogSecurableObjectpublic static SecurableObject ofSchema(SecurableObject catalog, java.lang.String schema, java.util.List<Privilege> privileges)
SecurableObject with the given securable catalog object, schema name
and privileges.catalog - The catalog securable object.schema - The schema nameprivileges - The privileges of the schemaSecurableObjectpublic static SecurableObject ofTable(SecurableObject schema, java.lang.String table, java.util.List<Privilege> privileges)
SecurableObject with the given securable schema object, table name and
privileges.schema - The schema securable objecttable - The table nameprivileges - The privileges of the tableSecurableObjectpublic static SecurableObject ofTopic(SecurableObject schema, java.lang.String topic, java.util.List<Privilege> privileges)
SecurableObject with the given securable schema object ,topic name and
privileges.schema - The schema securable objecttopic - The topic nameprivileges - The privileges of the topicSecurableObjectpublic static SecurableObject ofFileset(SecurableObject schema, java.lang.String fileset, java.util.List<Privilege> privileges)
SecurableObject with the given securable schema object, fileset name
and privileges.schema - The schema securable objectfileset - The fileset nameprivileges - The privileges of the filesetSecurableObjectpublic static SecurableObject parse(java.lang.String fullName, MetadataObject.Type type, java.util.List<Privilege> privileges)
SecurableObject from the given full name.fullName - The full name of securable object.type - The securable object type.privileges - The securable object privileges.SecurableObject