Class OwnershipApiClient
java.lang.Object
io.clonecloudstore.common.quarkus.client.SimpleClientAbstract<OwnershipApi>
io.clonecloudstore.administration.client.OwnershipApiClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class io.clonecloudstore.common.quarkus.client.SimpleClientAbstract
exceptionMapper, MDC_COMPRESSED_CONTENT, MDC_COMPRESSED_RESPONSE, MDC_QUERY_HEADERS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor used by the Factory -
Method Summary
Modifier and TypeMethodDescriptionadd
(String clientId, String bucket, ClientOwnership ownership) Invalidate CacheaddAsync
(String clientId, String bucket, ClientOwnership ownership) Invalidate Cache and async methodboolean
Invalidate CacheCompletableFuture
<jakarta.ws.rs.core.Response> deleteAllClientsAsync
(String bucket) Invalidate Cache and async methodfindByBucket
(String clientId, String bucket) Cache if possibleboolean
getBooleanFromAsync
(CompletableFuture<jakarta.ws.rs.core.Response> completableFuture) getClientOwnershipFromAsync
(CompletableFuture<ClientOwnership> completableFuture) Cache on ALL_FROM + clientIdlistWithOwnership
(String clientId, ClientOwnership ownership) Cache if possibleupdate
(String clientId, String bucket, ClientOwnership ownership) Invalidate CacheMethods inherited from class io.clonecloudstore.common.quarkus.client.SimpleClientAbstract
acceptCompression, bodyCompressed, close, getCompressionStatusFromHeaders, getDtoFromHeaders, getFactory, getHeadersMap, getMdcOpId, getOpId, getService, getUri, isAcceptCompression, isBodyCompressed, reopen, resetMdcOpId, resetQueryContext, setCompressionStatusFromHeaders, setDtoFromHeaders, setHeadersMap, setMdcOpId, setOpId
-
Constructor Details
-
OwnershipApiClient
Constructor used by the Factory
-
-
Method Details
-
listAll
Cache on ALL_FROM + clientId- Throws:
CcsWithStatusException
-
listWithOwnership
public Collection<ClientBucketAccess> listWithOwnership(String clientId, ClientOwnership ownership) throws CcsWithStatusException Cache if possible- Throws:
CcsWithStatusException
-
findByBucket
Cache if possible- Throws:
CcsWithStatusException
-
add
public ClientOwnership add(String clientId, String bucket, ClientOwnership ownership) throws CcsWithStatusException Invalidate Cache- Throws:
CcsWithStatusException
-
addAsync
public CompletableFuture<ClientOwnership> addAsync(String clientId, String bucket, ClientOwnership ownership) Invalidate Cache and async method -
getClientOwnershipFromAsync
public ClientOwnership getClientOwnershipFromAsync(CompletableFuture<ClientOwnership> completableFuture) throws CcsWithStatusException - Returns:
- the final result
- Throws:
CcsWithStatusException
- if any error occurs
-
update
public ClientOwnership update(String clientId, String bucket, ClientOwnership ownership) throws CcsWithStatusException Invalidate Cache- Throws:
CcsWithStatusException
-
delete
Invalidate Cache- Throws:
CcsWithStatusException
-
deleteAllClientsAsync
Invalidate Cache and async method -
getBooleanFromAsync
public boolean getBooleanFromAsync(CompletableFuture<jakarta.ws.rs.core.Response> completableFuture) throws CcsWithStatusException - Returns:
- the final result
- Throws:
CcsWithStatusException
- if any error occurs
-