Class S3Store

java.lang.Object
com.logicaldoc.core.store.AbstractStore
com.logicaldoc.enterprise.store.EncryptionAbstractStore
com.logicaldoc.enterprise.store.s3.S3Store
All Implemented Interfaces:
com.logicaldoc.core.store.Store, Comparable<com.logicaldoc.core.store.Store>
Direct Known Subclasses:
S3StoreIAMRole

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

    • S3Store

      public S3Store()
  • Method Details

    • getParameterNames

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

      public void store(File file, long docId, String resource) throws IOException
      Specified by:
      store in interface com.logicaldoc.core.store.Store
      Overrides:
      store in class com.logicaldoc.core.store.AbstractStore
      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.Store
      Overrides:
      isEnabled in class com.logicaldoc.core.store.AbstractStore
    • moveResourcesToStore

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