Interface AccessorBucketServiceInterface
- All Known Implementing Classes:
AccessorBucketService
,AccessorBucketService
public interface AccessorBucketServiceInterface
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkBucket
(String bucketName, boolean fullCheck, String clientId, String opId, boolean isPublic) Check if Bucket existscreateBucket
(String bucketName, String clientId, boolean isPublic) Create bucket from client Id and bucketNamedeleteBucket
(String bucketName, String clientId, boolean isPublic) Delete bucket from bucket nameGet Bucket information from bucket namegetBuckets
(String clientId) Get All buckets
-
Method Details
-
createBucket
AccessorBucket createBucket(String bucketName, String clientId, boolean isPublic) throws CcsAlreadyExistException, CcsOperationException Create bucket from client Id and bucketName- Parameters:
bucketName
- Bucket NameclientId
- Format client ID use to identify clientisPublic
- True means replicate with replicator module- Returns:
- AccessorBucket add on Database and in object storage
- Throws:
CcsAlreadyExistException
CcsOperationException
-
getBucket
AccessorBucket getBucket(String bucketName, String clientId, String opId, boolean isPublic) throws CcsNotExistException, CcsDeletedException, CcsOperationException Get Bucket information from bucket name- Parameters:
bucketName
- Bucket name- Returns:
- AccessorBucket found
- Throws:
CcsNotExistException
CcsDeletedException
CcsOperationException
-
getBuckets
Get All buckets- Returns:
- the list of Buckets
- Throws:
CcsOperationException
-
checkBucket
boolean checkBucket(String bucketName, boolean fullCheck, String clientId, String opId, boolean isPublic) throws CcsOperationException Check if Bucket exists- Parameters:
bucketName
- Bucket namefullCheck
- True to check Object StorageclientId
- the clientIdopId
- the OperationIdisPublic
- True to check remotely if not found locally- Returns:
- True if it exists
- Throws:
CcsOperationException
-
deleteBucket
AccessorBucket deleteBucket(String bucketName, String clientId, boolean isPublic) throws CcsNotExistException, CcsDeletedException, CcsOperationException, CcsNotAcceptableException Delete bucket from bucket name- Parameters:
bucketName
- Bucket nameclientId
- Client ID used to identify clientisPublic
- true to send replication message on replicator- Returns:
- the associated DTO- deleted
- Throws:
CcsNotExistException
CcsDeletedException
CcsOperationException
CcsNotAcceptableException
-