Class EnterpriseFSStorer

java.lang.Object
com.logicaldoc.core.store.AbstractStorer
com.logicaldoc.core.store.FSStorer
com.logicaldoc.enterprise.storer.EnterpriseFSStorer
All Implemented Interfaces:
com.logicaldoc.core.store.Storer, Comparable<com.logicaldoc.core.store.Storer>

public class EnterpriseFSStorer extends com.logicaldoc.core.store.FSStorer
A storer 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.FSStorer

    delete, getContainer, getRoot, getTotalSize, moveResourcesToStore

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

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

    Methods inherited from class java.lang.Object

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

    • EnterpriseFSStorer

      public EnterpriseFSStorer()
  • Method Details

    • getParameterNames

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

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

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

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

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

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

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

      public void writeToFile(long docId, String resource, File out) throws IOException
      Specified by:
      writeToFile in interface com.logicaldoc.core.store.Storer
      Overrides:
      writeToFile in class com.logicaldoc.core.store.FSStorer
      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.Storer
      Overrides:
      getBytes in class com.logicaldoc.core.store.FSStorer
      Throws:
      IOException