public class SecurableObjects
extends java.lang.Object
SecurableObject.| Constructor and Description |
|---|
SecurableObjects() |
| Modifier and Type | Method and Description |
|---|---|
static SecurableObject |
ofAllMetalakes(java.util.List<Privilege> privileges)
All metalakes is a special securable object .You can give the securable object the privileges
`CREATE METALAKE`, etc.
|
static SecurableObject |
ofCatalog(java.lang.String catalog,
java.util.List<Privilege> privileges)
Create the catalog
SecurableObject with the given catalog name. |
static SecurableObject |
ofFileset(SecurableObject schema,
java.lang.String fileset,
java.util.List<Privilege> privileges)
Create the table
SecurableObject with the given securable schema object and fileset
name. |
static SecurableObject |
ofMetalake(java.lang.String metalake,
java.util.List<Privilege> privileges)
Create the metalake
SecurableObject with the given metalake name. |
static SecurableObject |
ofSchema(SecurableObject catalog,
java.lang.String schema,
java.util.List<Privilege> privileges)
Create the schema
SecurableObject with the given securable catalog object and schema
name. |
static SecurableObject |
ofTable(SecurableObject schema,
java.lang.String table,
java.util.List<Privilege> privileges)
Create the table
SecurableObject with the given securable schema object and table name. |
static SecurableObject |
ofTopic(SecurableObject schema,
java.lang.String topic,
java.util.List<Privilege> privileges)
Create the topic
SecurableObject with the given securable schema object and topic name. |
static SecurableObject |
parse(java.lang.String fullName,
SecurableObject.Type type,
java.util.List<Privilege> privileges)
Create a
SecurableObject from the given full name. |
public static SecurableObject ofMetalake(java.lang.String metalake, java.util.List<Privilege> privileges)
SecurableObject with the given metalake name.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.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 and schema
name.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 and table name.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 and topic name.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 and fileset
name.schema - The schema securable objectfileset - The fileset nameprivileges - The privileges of the filesetSecurableObjectpublic static SecurableObject ofAllMetalakes(java.util.List<Privilege> privileges)
privileges - The privileges of the all metalakesSecurableObjectpublic static SecurableObject parse(java.lang.String fullName, SecurableObject.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 secureable object privileges.SecurableObject