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.voidputObject(String bucketName, org.alfresco.core.model.Node node, HashMap<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, HashMap<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- optional object metadata to store alongside the binary contentinputStream- 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
InputStreamfor the object's content
-