Class 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 Detail

      • EnterpriseFSStorer

        public EnterpriseFSStorer()
    • Method Detail

      • 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