Skip to content

Commit 5a7364c

Browse files
PermissionService and getAuthorization
1 parent e96147e commit 5a7364c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/server/PermissionService.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,24 @@ HttpResponse getAuthorization(
5656
String name)
5757
```
5858

59+
`getAuthorization` [finds the ID](#getResourceId) of the given `SecurableType` and `name`.
60+
61+
`getAuthorization` [finds the ID of the current principal](../server-authorization/IdentityUtils.md#findPrincipalId).
62+
5963
`getAuthorization`...FIXME
6064

65+
---
66+
67+
`getAuthorization` is used when `PermissionService` is requested for the following authorizations:
68+
69+
* [Catalog](#getCatalogAuthorization)
70+
* [Function](#getFunctionAuthorization)
71+
* [Metastore](#getMetastoreAuthorization)
72+
* [RegisteredModel](#getRegisteredModelAuthorization)
73+
* [Schema](#getSchemaAuthorization)
74+
* [Table](#getTableAuthorization)
75+
* [Volume](#getVolumeAuthorization)
76+
6177
## Update Authorization { #updateAuthorization }
6278

6379
```java
@@ -68,3 +84,16 @@ HttpResponse updateAuthorization(
6884
```
6985

7086
`updateAuthorization`...FIXME
87+
88+
## Get Metastore Authorization { #getMetastoreAuthorization }
89+
90+
```java
91+
HttpResponse getMetastoreAuthorization(
92+
String name)
93+
```
94+
95+
`getMetastoreAuthorization` [getAuthorization](#getAuthorization) of the `METASTORE` securable type with the given `name`.
96+
97+
---
98+
99+
`getMetastoreAuthorization` is used to handle `GET /metastore/{name}` requests.

0 commit comments

Comments
 (0)