Class SoapEnterpriseDocumentService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.enterprise.webservice.soap.endpoint.SoapEnterpriseDocumentService
- All Implemented Interfaces:
EnterpriseDocumentService
- Direct Known Subclasses:
RestEnterpriseDocumentService
public class SoapEnterpriseDocumentService
extends com.logicaldoc.webservice.AbstractService
implements EnterpriseDocumentService
Enterprise Document Web Service Implementation (SOAP)
- Since:
- 8.1.2
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckin(String sid, long docId, String comment, String filename, boolean release, com.logicaldoc.webservice.model.WSDocument documentVO) Checks in an existing document with the given identifier to create a new version, it uses the uploaded chunkscom.logicaldoc.webservice.model.WSDocumentCreates a new document using the uploaded chunks.voiddeleteChunks(String sid) javax.activation.DataHandlerdownloadChunk(String sid, long docId, String version, long start, long length) com.logicaldoc.webservice.model.WSDocumentMerges a set of documents into a single PDFvoiduploadChunk(String sid, javax.activation.DataHandler content) Methods inherited from class com.logicaldoc.webservice.AbstractService
convertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
-
Field Details
-
CHUNK_NUMBER_FORMAT
-
-
Constructor Details
-
SoapEnterpriseDocumentService
public SoapEnterpriseDocumentService()
-
-
Method Details
-
uploadChunk
public void uploadChunk(String sid, javax.activation.DataHandler content) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException - Specified by:
uploadChunkin interfaceEnterpriseDocumentService- Throws:
com.logicaldoc.core.security.authentication.AuthenticationExceptioncom.logicaldoc.webservice.WebserviceExceptioncom.logicaldoc.core.PersistenceExceptionIOException
-
deleteChunks
public void deleteChunks(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException - Specified by:
deleteChunksin interfaceEnterpriseDocumentService- Throws:
com.logicaldoc.core.security.authentication.AuthenticationExceptioncom.logicaldoc.webservice.WebserviceExceptioncom.logicaldoc.core.PersistenceExceptionIOException
-
create
public com.logicaldoc.webservice.model.WSDocument create(String sid, com.logicaldoc.webservice.model.WSDocument document) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException Description copied from interface:EnterpriseDocumentServiceCreates 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:
createin 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:
com.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.PersistenceException- Error in the database layerIOException- I/O error
-
checkin
public void checkin(String sid, long docId, String comment, String filename, boolean release, com.logicaldoc.webservice.model.WSDocument documentVO) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException Description copied from interface:EnterpriseDocumentServiceChecks in an existing document with the given identifier to create a new version, it uses the uploaded chunks- Specified by:
checkinin 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)documentVO- new metadata for the document- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.PersistenceException- Error in the database layerIOException- I/O error
-
downloadChunk
public javax.activation.DataHandler downloadChunk(String sid, long docId, String version, long start, long length) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException, com.logicaldoc.core.security.authorization.PermissionException - Specified by:
downloadChunkin interfaceEnterpriseDocumentService- Throws:
com.logicaldoc.core.security.authentication.AuthenticationExceptioncom.logicaldoc.webservice.WebserviceExceptioncom.logicaldoc.core.PersistenceExceptionIOExceptioncom.logicaldoc.core.security.authorization.PermissionException
-
merge
public com.logicaldoc.webservice.model.WSDocument merge(String sid, List<Long> docIds, long targetFolderId, String filename) throws com.logicaldoc.core.PersistenceException, com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, IOException, com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.core.security.authorization.UnexistingResourceException Description copied from interface:EnterpriseDocumentServiceMerges a set of documents into a single PDF- Specified by:
mergein interfaceEnterpriseDocumentService- Parameters:
sid- Session identifierdocIds- identifiers of the documents to mergetargetFolderId- identifier of the folder that will receive the merged PDFfilename- file name of the merged PDF- Returns:
- the newly created merged document
- Throws:
com.logicaldoc.core.PersistenceException- Error in the database layercom.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice logicIOException- I/O errorcom.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissionscom.logicaldoc.core.security.authorization.UnexistingResourceException- Ome of the referenced documents do not exist
-