Class S3Storer

java.lang.Object
com.logicaldoc.core.store.AbstractStorer
com.logicaldoc.enterprise.storer.EncryptionAbstractStorer
com.logicaldoc.enterprise.storer.s3.S3Storer
All Implemented Interfaces:
com.logicaldoc.core.store.Storer, Comparable<com.logicaldoc.core.store.Storer>
Direct Known Subclasses:
S3StorerIAMRole

public class S3Storer extends EncryptionAbstractStorer
A storer that operates on a remote S3 bucket using secretKey / accessKey credentials.
Since:
7.7.1
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • S3Storer

      public S3Storer()
  • Method Details

    • getParameterNames

      public List<String> getParameterNames()
      Specified by:
      getParameterNames in interface com.logicaldoc.core.store.Storer
      Overrides:
      getParameterNames in class EncryptionAbstractStorer
    • store

      public void store(File file, long docId, String resource) throws IOException
      Specified by:
      store in interface com.logicaldoc.core.store.Storer
      Overrides:
      store in class com.logicaldoc.core.store.AbstractStorer
      Throws:
      IOException
    • store

      public void store(InputStream stream, long docId, String resource) throws IOException
      Throws:
      IOException
    • delete

      public void delete(long docId)
    • delete

      public void delete(long docId, String resource)
    • listResources

      public List<String> listResources(long docId, String fileVersion)
    • size

      public long size(long docId, String resource)
    • exists

      public boolean exists(long docId, String resource)
    • getStream

      public InputStream getStream(long docId, String resource) throws IOException
      Throws:
      IOException
    • getBytes

      public byte[] getBytes(long docId, String resource, long start, long length) throws IOException
      Throws:
      IOException
    • getTotalSize

      public long getTotalSize()
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface com.logicaldoc.core.store.Storer
      Overrides:
      isEnabled in class com.logicaldoc.core.store.AbstractStorer
    • moveResourcesToStore

      public int moveResourcesToStore(long docId, int targetStorageId) throws IOException
      Throws:
      IOException