Class SMBStorer
- java.lang.Object
-
- com.logicaldoc.core.store.AbstractStorer
-
- com.logicaldoc.enterprise.storer.smb.SMBStorer
-
- All Implemented Interfaces:
com.logicaldoc.core.store.Storer
,Comparable<com.logicaldoc.core.store.Storer>
public class SMBStorer extends com.logicaldoc.core.store.AbstractStorer
A storer that operates on a remote Smb share using JCIFS(SMB1 and SMB2)- Since:
- 7.6.4
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SMBStorer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(long docId)
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)
long
getTotalSize()
boolean
isEnabled()
List<String>
listResources(long docId, String fileVersion)
long
size(long docId, String resource)
void
store(InputStream stream, long docId, String resource)
-
-
-
Method Detail
-
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)
-
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 interfacecom.logicaldoc.core.store.Storer
- Overrides:
isEnabled
in classcom.logicaldoc.core.store.AbstractStorer
-
-