|
6 | 6 | import java.util.List; |
7 | 7 |
|
8 | 8 | public interface DirectoryClientReader { |
9 | | - GetObjectResponse getObject(String type, String id); |
10 | | - GetObjectResponse getObject(String type, String id, boolean withRelations); |
11 | | - GetObjectsResponse getObjects(String type); |
12 | | - GetObjectsResponse getObjects(String type, int pageSize, String pageToken); |
13 | | - GetObjectManyResponse getObjectManyRequest(List<ObjectIdentifier> objectIdentifiers); |
| 9 | + GetObjectResponse getObject(String type, String id) throws UninitilizedClientException; |
| 10 | + GetObjectResponse getObject(String type, String id, boolean withRelations) throws UninitilizedClientException; |
| 11 | + GetObjectsResponse getObjects(String type) throws UninitilizedClientException; |
| 12 | + GetObjectsResponse getObjects(String type, int pageSize, String pageToken) throws UninitilizedClientException; |
| 13 | + GetObjectManyResponse getObjectManyRequest(List<ObjectIdentifier> objectIdentifiers) throws UninitilizedClientException; |
14 | 14 | GetRelationResponse getRelation(String objectType, String objectId, String relationName, |
15 | | - String subjectType, String subjectId); |
| 15 | + String subjectType, String subjectId) throws UninitilizedClientException; |
16 | 16 | GetRelationResponse getRelation(String objectType, String objectId, String relationName, String subjectType, |
17 | | - String subjectId, String subjectRelation); |
| 17 | + String subjectId, String subjectRelation) throws UninitilizedClientException; |
18 | 18 | GetRelationResponse getRelation(String objectType, String objectId, String relationName, String subjectType, |
19 | | - String subjectId, String subjectRelation, boolean withObjects); |
20 | | - GetRelationsResponse getRelations(GetRelationsRequest relationsRequest); |
| 19 | + String subjectId, String subjectRelation, boolean withObjects) throws UninitilizedClientException; |
| 20 | + GetRelationsResponse getRelations(GetRelationsRequest relationsRequest) throws UninitilizedClientException; |
21 | 21 |
|
22 | 22 | CheckPermissionResponse checkPermission(String objectType, String objectId, String subjectType, |
23 | | - String subjectId, String permissionName); |
| 23 | + String subjectId, String permissionName) throws UninitilizedClientException; |
24 | 24 | CheckPermissionResponse checkPermission(String objectType, String objectId, |
25 | | - String subjectType, String subjectId, String permissionName, boolean trace); |
26 | | - CheckRelationResponse checkRelation(String objectType, String objectId, String relationName, String subjectType, String subjectId); |
| 25 | + String subjectType, String subjectId, String permissionName, boolean trace) throws UninitilizedClientException; |
| 26 | + CheckRelationResponse checkRelation(String objectType, String objectId, String relationName, String subjectType, String subjectId) throws UninitilizedClientException; |
27 | 27 | CheckRelationResponse checkRelation(String objectType, String objectId, String relationName, |
28 | | - String subjectType, String subjectId, boolean trace); |
29 | | - CheckResponse check(String objectType, String objectId, String relationName, String subjectType, String subjectId); |
| 28 | + String subjectType, String subjectId, boolean trace) throws UninitilizedClientException; |
| 29 | + CheckResponse check(String objectType, String objectId, String relationName, String subjectType, String subjectId) throws UninitilizedClientException; |
30 | 30 | CheckResponse check(String objectType, String objectId, String relationName, |
31 | | - String subjectType, String subjectId, boolean trace); |
| 31 | + String subjectType, String subjectId, boolean trace) throws UninitilizedClientException; |
32 | 32 | GetGraphResponse getGraph(GetGraphRequest getGraphRequest); |
33 | 33 | } |
0 commit comments