Class SoapEnterpriseDocumentClient
- java.lang.Object
-
- com.logicaldoc.webservice.soap.client.SoapClient<EnterpriseDocumentService>
-
- com.logicaldoc.enterprise.webservice.soap.client.SoapEnterpriseDocumentClient
-
- All Implemented Interfaces:
EnterpriseDocumentService
public class SoapEnterpriseDocumentClient extends com.logicaldoc.webservice.soap.client.SoapClient<EnterpriseDocumentService> implements EnterpriseDocumentService
Enterprise Document Web Service client.- Since:
- 8.1.2
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SoapEnterpriseDocumentClient(String endpoint)
SoapEnterpriseDocumentClient(String endpoint, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkin(String sid, long docId, String comment, String filename, boolean release, com.logicaldoc.webservice.model.WSDocument docVO)
Checks in an existing document with the given identifier to create a new version, it uses the uploaded chunkscom.logicaldoc.webservice.model.WSDocument
create(String sid, com.logicaldoc.webservice.model.WSDocument document)
Creates a new document using the uploaded chunks.void
deleteChunks(String sid)
javax.activation.DataHandler
downloadChunk(String sid, long docId, String version, long start, long length)
void
uploadChunk(String sid, File chunk)
void
uploadChunk(String sid, javax.activation.DataHandler content)
void
uploadChunks(String sid, File file, long chunkSize)
Uploads big file in chunks
-
-
-
Constructor Detail
-
SoapEnterpriseDocumentClient
public SoapEnterpriseDocumentClient(String endpoint) throws IOException
- Throws:
IOException
-
SoapEnterpriseDocumentClient
public SoapEnterpriseDocumentClient(String endpoint, int timeout) throws IOException
- Throws:
IOException
-
-
Method Detail
-
uploadChunk
public void uploadChunk(String sid, javax.activation.DataHandler content) throws Exception
- Specified by:
uploadChunk
in interfaceEnterpriseDocumentService
- Throws:
Exception
-
uploadChunks
public void uploadChunks(String sid, File file, long chunkSize) throws Exception
Uploads big file in chunks- Parameters:
sid
- identifier of the sessionfile
- The original filechunkSize
- Max size of a chunk in bytes- Throws:
Exception
- error uploading the chunk
-
deleteChunks
public void deleteChunks(String sid) throws Exception
- Specified by:
deleteChunks
in interfaceEnterpriseDocumentService
- Throws:
Exception
-
create
public com.logicaldoc.webservice.model.WSDocument create(String sid, com.logicaldoc.webservice.model.WSDocument document) throws Exception
Description copied from interface:EnterpriseDocumentService
Creates a new document using the uploaded chunks. The user can completely customize the document through a value object containing the document's metadata- Specified by:
create
in interfaceEnterpriseDocumentService
- Parameters:
sid
- identifier of the sessiondocument
- Web service value object containing the document's metadata- Returns:
- The value object containing the document's metadata
- Throws:
Exception
- error in the server or in the database
-
checkin
public void checkin(String sid, long docId, String comment, String filename, boolean release, com.logicaldoc.webservice.model.WSDocument docVO) throws Exception
Description copied from interface:EnterpriseDocumentService
Checks in an existing document with the given identifier to create a new version, it uses the uploaded chunks- Specified by:
checkin
in interfaceEnterpriseDocumentService
- Parameters:
sid
- Session identifierdocId
- The document idcomment
- The check in operation commentfilename
- The document file namerelease
- True if this is a new release(e.g.: 2.0) rather than a subversion(e.g.: 1.1)docVO
- new metadata for the document- Throws:
Exception
- error in the server or in the database
-
downloadChunk
public javax.activation.DataHandler downloadChunk(String sid, long docId, String version, long start, long length) throws Exception
- Specified by:
downloadChunk
in interfaceEnterpriseDocumentService
- Throws:
Exception
-
-