Package com.logicaldoc.enterprise.storer
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 EnterpriseFSStorer()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
List<String>
getParameterNames()
InputStream
getStream(long docId, String resource)
List<String>
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
-
-
-
-
Method Detail
-
getParameterNames
public List<String> getParameterNames()
- Specified by:
getParameterNames
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
getParameterNames
in classcom.logicaldoc.core.store.FSStorer
-
store
public void store(File file, long docId, String resource) throws IOException
- Specified by:
store
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
store
in classcom.logicaldoc.core.store.FSStorer
- Throws:
IOException
-
store
public void store(InputStream stream, long docId, String resource) throws IOException
- Specified by:
store
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
store
in classcom.logicaldoc.core.store.FSStorer
- Throws:
IOException
-
delete
public void delete(long docId, String resource)
- Specified by:
delete
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
delete
in classcom.logicaldoc.core.store.FSStorer
-
listResources
public List<String> listResources(long docId, String fileVersion)
- Specified by:
listResources
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
listResources
in classcom.logicaldoc.core.store.FSStorer
-
size
public long size(long docId, String resource)
- Specified by:
size
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
size
in classcom.logicaldoc.core.store.FSStorer
-
exists
public boolean exists(long docId, String resource)
- Specified by:
exists
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
exists
in classcom.logicaldoc.core.store.FSStorer
-
getStream
public InputStream getStream(long docId, String resource) throws IOException
- Specified by:
getStream
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
getStream
in classcom.logicaldoc.core.store.FSStorer
- Throws:
IOException
-
writeToFile
public void writeToFile(long docId, String resource, File out) throws IOException
- Specified by:
writeToFile
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
writeToFile
in classcom.logicaldoc.core.store.FSStorer
- Throws:
IOException
-
getBytes
public byte[] getBytes(long docId, String resource, long start, long length) throws IOException
- Specified by:
getBytes
in interfacecom.logicaldoc.core.store.Storer
- Overrides:
getBytes
in classcom.logicaldoc.core.store.FSStorer
- Throws:
IOException
-
-