Class StoresApi
java.lang.Object
org.apache.syncope.ext.openfga.client.api.StoresApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-10-17T13:24:48.337210454+02:00[Europe/Rome]",
comments="Generator version: 7.16.0")
public class StoresApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a store Create a unique OpenFGA store which will be used to store authorization models and relationship tuples.createStore(CreateStoreRequest body, Map<String, String> headers) Create a store Create a unique OpenFGA store which will be used to store authorization models and relationship tuples.Create a store Create a unique OpenFGA store which will be used to store authorization models and relationship tuples.createStoreWithHttpInfo(CreateStoreRequest body, Map<String, String> headers) Create a store Create a unique OpenFGA store which will be used to store authorization models and relationship tuples.voiddeleteStore(String storeId) Delete a store Delete an OpenFGA store.voiddeleteStore(String storeId, Map<String, String> headers) Delete a store Delete an OpenFGA store.deleteStoreWithHttpInfo(String storeId) Delete a store Delete an OpenFGA store.deleteStoreWithHttpInfo(String storeId, Map<String, String> headers) Delete a store Delete an OpenFGA store.downloadFileFromResponse(HttpResponse<InputStream> response) Download file from the given response.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) Get a store Returns an OpenFGA store by its identifierGet a store Returns an OpenFGA store by its identifiergetStoreWithHttpInfo(String storeId) Get a store Returns an OpenFGA store by its identifiergetStoreWithHttpInfo(String storeId, Map<String, String> headers) Get a store Returns an OpenFGA store by its identifierlistStores(Integer pageSize, String continuationToken, String name) List all stores Returns a paginated list of OpenFGA stores and a continuation token to get additional stores.List all stores Returns a paginated list of OpenFGA stores and a continuation token to get additional stores.listStoresWithHttpInfo(Integer pageSize, String continuationToken, String name) List all stores Returns a paginated list of OpenFGA stores and a continuation token to get additional stores.listStoresWithHttpInfo(Integer pageSize, String continuationToken, String name, Map<String, String> headers) List all stores Returns a paginated list of OpenFGA stores and a continuation token to get additional stores.
-
Constructor Details
-
StoresApi
public StoresApi() -
StoresApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
downloadFileFromResponse
Download file from the given response.- Parameters:
response- Response- Returns:
- File
- Throws:
ApiException- If fail to read file content from response and write to disk
-
createStore
Create a store Create a unique OpenFGA store which will be used to store authorization models and relationship tuples.- Parameters:
body- (required)- Returns:
- CreateStoreResponse
- Throws:
ApiException- if fails to make API call
-
createStore
public CreateStoreResponse createStore(@Nonnull CreateStoreRequest body, Map<String, String> headers) throws ApiExceptionCreate a store Create a unique OpenFGA store which will be used to store authorization models and relationship tuples.- Parameters:
body- (required)headers- Optional headers to include in the request- Returns:
- CreateStoreResponse
- Throws:
ApiException- if fails to make API call
-
createStoreWithHttpInfo
public ApiResponse<CreateStoreResponse> createStoreWithHttpInfo(@Nonnull CreateStoreRequest body) throws ApiException Create a store Create a unique OpenFGA store which will be used to store authorization models and relationship tuples.- Parameters:
body- (required)- Returns:
- ApiResponse<CreateStoreResponse>
- Throws:
ApiException- if fails to make API call
-
createStoreWithHttpInfo
public ApiResponse<CreateStoreResponse> createStoreWithHttpInfo(@Nonnull CreateStoreRequest body, Map<String, String> headers) throws ApiExceptionCreate a store Create a unique OpenFGA store which will be used to store authorization models and relationship tuples.- Parameters:
body- (required)headers- Optional headers to include in the request- Returns:
- ApiResponse<CreateStoreResponse>
- Throws:
ApiException- if fails to make API call
-
deleteStore
Delete a store Delete an OpenFGA store. This does not delete the data associated with the store, like tuples or authorization models.- Parameters:
storeId- (required)- Throws:
ApiException- if fails to make API call
-
deleteStore
Delete a store Delete an OpenFGA store. This does not delete the data associated with the store, like tuples or authorization models.- Parameters:
storeId- (required)headers- Optional headers to include in the request- Throws:
ApiException- if fails to make API call
-
deleteStoreWithHttpInfo
Delete a store Delete an OpenFGA store. This does not delete the data associated with the store, like tuples or authorization models.- Parameters:
storeId- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
deleteStoreWithHttpInfo
public ApiResponse<Void> deleteStoreWithHttpInfo(@Nonnull String storeId, Map<String, String> headers) throws ApiExceptionDelete a store Delete an OpenFGA store. This does not delete the data associated with the store, like tuples or authorization models.- Parameters:
storeId- (required)headers- Optional headers to include in the request- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
getStore
Get a store Returns an OpenFGA store by its identifier- Parameters:
storeId- (required)- Returns:
- GetStoreResponse
- Throws:
ApiException- if fails to make API call
-
getStore
public GetStoreResponse getStore(@Nonnull String storeId, Map<String, String> headers) throws ApiExceptionGet a store Returns an OpenFGA store by its identifier- Parameters:
storeId- (required)headers- Optional headers to include in the request- Returns:
- GetStoreResponse
- Throws:
ApiException- if fails to make API call
-
getStoreWithHttpInfo
public ApiResponse<GetStoreResponse> getStoreWithHttpInfo(@Nonnull String storeId) throws ApiException Get a store Returns an OpenFGA store by its identifier- Parameters:
storeId- (required)- Returns:
- ApiResponse<GetStoreResponse>
- Throws:
ApiException- if fails to make API call
-
getStoreWithHttpInfo
public ApiResponse<GetStoreResponse> getStoreWithHttpInfo(@Nonnull String storeId, Map<String, String> headers) throws ApiExceptionGet a store Returns an OpenFGA store by its identifier- Parameters:
storeId- (required)headers- Optional headers to include in the request- Returns:
- ApiResponse<GetStoreResponse>
- Throws:
ApiException- if fails to make API call
-
listStores
public ListStoresResponse listStores(@Nullable Integer pageSize, @Nullable String continuationToken, @Nullable String name) throws ApiException List all stores Returns a paginated list of OpenFGA stores and a continuation token to get additional stores. The continuation token will be empty if there are no more stores.- Parameters:
pageSize- (optional)continuationToken- (optional)name- The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated (optional)- Returns:
- ListStoresResponse
- Throws:
ApiException- if fails to make API call
-
listStores
public ListStoresResponse listStores(@Nullable Integer pageSize, @Nullable String continuationToken, @Nullable String name, Map<String, String> headers) throws ApiExceptionList all stores Returns a paginated list of OpenFGA stores and a continuation token to get additional stores. The continuation token will be empty if there are no more stores.- Parameters:
pageSize- (optional)continuationToken- (optional)name- The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated (optional)headers- Optional headers to include in the request- Returns:
- ListStoresResponse
- Throws:
ApiException- if fails to make API call
-
listStoresWithHttpInfo
public ApiResponse<ListStoresResponse> listStoresWithHttpInfo(@Nullable Integer pageSize, @Nullable String continuationToken, @Nullable String name) throws ApiException List all stores Returns a paginated list of OpenFGA stores and a continuation token to get additional stores. The continuation token will be empty if there are no more stores.- Parameters:
pageSize- (optional)continuationToken- (optional)name- The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated (optional)- Returns:
- ApiResponse<ListStoresResponse>
- Throws:
ApiException- if fails to make API call
-
listStoresWithHttpInfo
public ApiResponse<ListStoresResponse> listStoresWithHttpInfo(@Nullable Integer pageSize, @Nullable String continuationToken, @Nullable String name, Map<String, String> headers) throws ApiExceptionList all stores Returns a paginated list of OpenFGA stores and a continuation token to get additional stores. The continuation token will be empty if there are no more stores.- Parameters:
pageSize- (optional)continuationToken- (optional)name- The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated (optional)headers- Optional headers to include in the request- Returns:
- ApiResponse<ListStoresResponse>
- Throws:
ApiException- if fails to make API call
-