Package org.saidone.repository
Interface S3Repository
- All Known Implementing Classes:
EncryptedS3RepositoryImpl
,S3RepositoryImpl
public interface S3Repository
Abstraction over the minimal set of S3 operations required by the vault.
Implementations store and retrieve node content using the AWS SDK.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves an object from S3 previously stored for the given node id.void
putObject
(String bucketName, org.alfresco.core.model.Node node, Map<String, String> metadata, InputStream inputStream) Uploads a node's content to the specified S3 bucket using the node id as object key.
-
Method Details
-
putObject
void putObject(String bucketName, org.alfresco.core.model.Node node, Map<String, String> metadata, InputStream inputStream) Uploads a node's content to the specified S3 bucket using the node id as object key.- Parameters:
bucketName
- name of the target S3 bucketnode
- node whose identifier will be used as the object keymetadata
- metadata key/value pairs to associate with the objectinputStream
- the stream providing the content to store
-
getObject
Retrieves an object from S3 previously stored for the given node id.- Parameters:
bucketName
- the bucket where the object residesnodeId
- identifier of the node / object key- Returns:
- an
InputStream
for the object's content
-