Class EnterpriseFSStore

java.lang.Object
com.logicaldoc.core.store.AbstractStore
com.logicaldoc.core.store.FSStore
com.logicaldoc.enterprise.store.EnterpriseFSStore
All Implemented Interfaces:
com.logicaldoc.core.store.Store, Comparable<com.logicaldoc.core.store.Store>

public class EnterpriseFSStore extends com.logicaldoc.core.store.FSStore
A Store that operates on the Filesystem and also has compression capabilities. If the parameter encryption=true all the document resources will be placed in a compressed archive called container. This archive is also encrypted.
Since:
7.6.4
Author:
Marco Meschieri - LogicalDOC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(long docId, String resource)
     
    boolean
    exists(long docId, String resource)
     
    byte[]
    getBytes(long docId, String resource, long start, long length)
     
     
    getStream(long docId, String resource)
     
    listResources(long docId, String fileVersion)
     
    long
    size(long docId, String resource)
     
    void
    store(File file, long docId, String resource)
     
    void
    store(InputStream stream, long docId, String resource)
     
    void
    writeToFile(long docId, String resource, File out)
     

    Methods inherited from class com.logicaldoc.core.store.FSStore

    delete, getContainer, getRoot, getTotalSize, moveResourcesToStore

    Methods inherited from class com.logicaldoc.core.store.AbstractStore

    compareTo, destroy, equals, getBytes, getConfig, getId, getParameters, getResourceName, getResourceName, getStoreDefinitions, getString, hashCode, init, isEnabled, newStore, setConfig, setId, test, toString, writeToStream, writeToStream

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EnterpriseFSStore

      public EnterpriseFSStore()
  • Method Details

    • getParameterNames

      public List<String> getParameterNames()
      Specified by:
      getParameterNames in interface com.logicaldoc.core.store.Store
      Overrides:
      getParameterNames in class com.logicaldoc.core.store.FSStore
    • 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.FSStore
      Throws:
      IOException
    • store

      public void store(InputStream stream, long docId, String resource) throws IOException
      Specified by:
      store in interface com.logicaldoc.core.store.Store
      Overrides:
      store in class com.logicaldoc.core.store.FSStore
      Throws:
      IOException
    • delete

      public void delete(long docId, String resource)
      Specified by:
      delete in interface com.logicaldoc.core.store.Store
      Overrides:
      delete in class com.logicaldoc.core.store.FSStore
    • listResources

      public List<String> listResources(long docId, String fileVersion)
      Specified by:
      listResources in interface com.logicaldoc.core.store.Store
      Overrides:
      listResources in class com.logicaldoc.core.store.FSStore
    • size

      public long size(long docId, String resource)
      Specified by:
      size in interface com.logicaldoc.core.store.Store
      Overrides:
      size in class com.logicaldoc.core.store.FSStore
    • exists

      public boolean exists(long docId, String resource)
      Specified by:
      exists in interface com.logicaldoc.core.store.Store
      Overrides:
      exists in class com.logicaldoc.core.store.FSStore
    • getStream

      public InputStream getStream(long docId, String resource) throws IOException
      Specified by:
      getStream in interface com.logicaldoc.core.store.Store
      Overrides:
      getStream in class com.logicaldoc.core.store.FSStore
      Throws:
      IOException
    • writeToFile

      public void writeToFile(long docId, String resource, File out) throws IOException
      Specified by:
      writeToFile in interface com.logicaldoc.core.store.Store
      Overrides:
      writeToFile in class com.logicaldoc.core.store.FSStore
      Throws:
      IOException
    • getBytes

      public byte[] getBytes(long docId, String resource, long start, long length) throws IOException
      Specified by:
      getBytes in interface com.logicaldoc.core.store.Store
      Overrides:
      getBytes in class com.logicaldoc.core.store.FSStore
      Throws:
      IOException