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 Type
    Method
    Description
    getObject(String bucketName, String nodeId)
    Retrieves 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 bucket
      node - node whose identifier will be used as the object key
      metadata - metadata key/value pairs to associate with the object
      inputStream - the stream providing the content to store
    • getObject

      InputStream getObject(String bucketName, String nodeId)
      Retrieves an object from S3 previously stored for the given node id.
      Parameters:
      bucketName - the bucket where the object resides
      nodeId - identifier of the node / object key
      Returns:
      an InputStream for the object's content