KeyMapperUtil¶
Resolve Resource Names Into IDs¶
Static Method
mapResourceKeys is a Java class method to be invoked without a reference to a particular object.
Learn more in the Java Language Specification.
mapResourceKeys resolves the given SecurableTypes with their names (resourceKeys) into SecurableTypes with IDs (in the given order).
| Resource Keys | SecurableType | ID | Repository |
|---|---|---|---|
| CATALOG, SCHEMA, TABLE | TABLE | table_id | TableRepository |
| TABLE (with neither CATALOG nor SCHEMA) | TABLE SCHEMA CATALOG | table_idschema_idid | TableRepository SchemaRepository CatalogRepository |
| CATALOG, SCHEMA, VOLUME | VOLUME | volume_id | VolumeRepository |
| VOLUME (with neither CATALOG nor SCHEMA) | |||
| CATALOG, SCHEMA, FUNCTION | |||
| FUNCTION (with neither CATALOG nor SCHEMA) | |||
| CATALOG, SCHEMA, REGISTERED_MODEL | |||
| REGISTERED_MODEL (with neither CATALOG nor SCHEMA) | |||
| CATALOG, SCHEMA | SCHEMA | schema_id | SchemaRepository |
| SCHEMA (with no CATALOG) | SCHEMA CATALOG | schema_idid | SchemaRepository CatalogRepository |
| CATALOG | CATALOG | id | CatalogRepository |
| METASTORE | METASTORE | ca7a1095-537c-4f9c-a136-5ca1ab1ec0de | MetastoreRepository |
mapResourceKeys is used when:
UnityAccessDecoratoris requested to check authorizationTemporaryModelVersionCredentialsServiceis requested to authorizeForOperationTemporaryTableCredentialsServiceis requested to authorizeForOperationTemporaryVolumeCredentialsServiceis requested to authorizeForOperation