Package org.opencms.db.storage.s3
Class CmsS3DeleteResult
java.lang.Object
org.opencms.db.storage.s3.CmsS3DeleteResult
Result of an S3 multi-object delete operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsS3DeleteResult(Collection<String> requestedKeys, Map<String, Exception> failures) Creates a delete result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the successfully deleted object keys.Returns the failures by object key.booleanReturns whether every requested object was deleted successfully.
-
Constructor Details
-
CmsS3DeleteResult
Creates a delete result.Keys without a reported failure are treated as successfully deleted because S3 deletes are idempotent and quiet responses may omit successful keys.
- Parameters:
requestedKeys- the requested object keysfailures- the failures by object key
-
-
Method Details
-
getDeletedKeys
Returns the successfully deleted object keys. -
getFailures
Returns the failures by object key. -
isSuccessful
Returns whether every requested object was deleted successfully.
-