public class ObjectServiceImpl extends org.mule.connectors.commons.template.service.DefaultConnectorService<S3Configuration,S3Connection> implements ObjectService
| Constructor and Description |
|---|
ObjectServiceImpl(S3Configuration config,
S3Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
ObjectResult |
copyObject(VersionedObjectIdentifier sourceObjectId,
ObjectIdentifier destinationObjectId,
CannedAccessControlList destinationAcl,
StorageClass destinationStorageClass,
Map<String,String> destinationUserMetadata,
LocalDateTime modifiedSince,
LocalDateTime unmodifiedSince,
String encryption,
String contentType) |
ObjectResult |
createObject(ObjectIdentifier objectId,
InputStream objectContent,
ObjectMetadataParameterGroup objectMetadata,
CannedAccessControlList acl,
String kmsMasterKey) |
String |
createObjectPresignedUri(ObjectIdentifier objectId,
LocalDateTime expiration,
String contentMd5,
String contentType,
HttpMethod method,
SSEAlgorithm sseS3Encryption) |
void |
deleteObject(VersionedObjectIdentifier objectId) |
void |
deleteObjects(String bucketName,
List<KeyVersion> keys) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,S3ObjectAttributes> |
getObject(VersionedObjectIdentifier objectId,
Range range,
LocalDateTime modifiedSince,
LocalDateTime unmodifiedSince) |
org.mule.runtime.extension.api.runtime.operation.Result<List<Grant>,AccessControlListAttributes> |
getObjectAcl(VersionedObjectIdentifier objectId) |
ObjectMetadataParameterGroup |
getObjectMetadata(VersionedObjectIdentifier objectId) |
org.mule.runtime.extension.api.runtime.streaming.PagingProvider<S3Connection,S3ObjectSummary> |
listObjects(String bucketName,
String prefix,
String marker,
String delimiter,
Integer maxKeys,
EncodingType encodingType) |
org.mule.runtime.extension.api.runtime.streaming.PagingProvider<S3Connection,S3VersionSummary> |
listVersions(String bucketName,
String prefix,
String keyMarker,
String versionIdMarker,
String delimiter,
Integer maxResults,
EncodingType encodingType) |
void |
setObjectAcl(VersionedObjectIdentifier objectId,
Owner owner,
List<Grant> grants) |
void |
setObjectStorageClass(ObjectIdentifier objectId,
StorageClass storageClass) |
public ObjectServiceImpl(S3Configuration config, S3Connection connection)
public ObjectResult createObject(ObjectIdentifier objectId, InputStream objectContent, ObjectMetadataParameterGroup objectMetadata, CannedAccessControlList acl, String kmsMasterKey)
createObject in interface ObjectServicepublic void deleteObject(VersionedObjectIdentifier objectId)
deleteObject in interface ObjectServicepublic void deleteObjects(String bucketName, List<KeyVersion> keys)
deleteObjects in interface ObjectServicepublic org.mule.runtime.extension.api.runtime.streaming.PagingProvider<S3Connection,S3ObjectSummary> listObjects(String bucketName, String prefix, String marker, String delimiter, Integer maxKeys, EncodingType encodingType)
listObjects in interface ObjectServicepublic org.mule.runtime.extension.api.runtime.streaming.PagingProvider<S3Connection,S3VersionSummary> listVersions(String bucketName, String prefix, String keyMarker, String versionIdMarker, String delimiter, Integer maxResults, EncodingType encodingType)
listVersions in interface ObjectServicepublic void setObjectStorageClass(ObjectIdentifier objectId, StorageClass storageClass)
setObjectStorageClass in interface ObjectServicepublic org.mule.runtime.extension.api.runtime.operation.Result<List<Grant>,AccessControlListAttributes> getObjectAcl(VersionedObjectIdentifier objectId)
getObjectAcl in interface ObjectServicepublic void setObjectAcl(VersionedObjectIdentifier objectId, Owner owner, List<Grant> grants)
setObjectAcl in interface ObjectServicepublic ObjectResult copyObject(VersionedObjectIdentifier sourceObjectId, ObjectIdentifier destinationObjectId, CannedAccessControlList destinationAcl, StorageClass destinationStorageClass, Map<String,String> destinationUserMetadata, LocalDateTime modifiedSince, LocalDateTime unmodifiedSince, String encryption, String contentType)
copyObject in interface ObjectServicepublic String createObjectPresignedUri(ObjectIdentifier objectId, LocalDateTime expiration, String contentMd5, String contentType, HttpMethod method, SSEAlgorithm sseS3Encryption)
createObjectPresignedUri in interface ObjectServicepublic org.mule.runtime.extension.api.runtime.operation.Result<InputStream,S3ObjectAttributes> getObject(VersionedObjectIdentifier objectId, Range range, LocalDateTime modifiedSince, LocalDateTime unmodifiedSince)
getObject in interface ObjectServicepublic ObjectMetadataParameterGroup getObjectMetadata(VersionedObjectIdentifier objectId)
getObjectMetadata in interface ObjectServiceCopyright © 2021 MuleSoft, Inc.. All rights reserved.