Class SoapConversionService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.conversion.webservice.soap.endpoint.SoapConversionService
- All Implemented Interfaces:
ConversionService
- Direct Known Subclasses:
RestConversionService
public class SoapConversionService
extends com.logicaldoc.webservice.AbstractService
implements ConversionService
Conversion Web Service Implementation (SOAP)
- Since:
- 7.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.activation.DataHandlerconvertDocument(String sid, long docId, String fileVersion, String format) Converts an existing document and saves the generated conversion in LogicalDOC.longconvertDocumentAndSave(String sid, long docId, String fileVersion, String format) Converts an existing document and saves the generated conversion in LogicalDOC.voidconvertDocumentToPdf(String sid, long docId, String fileVersion) Creates the PDF conversion of the given document.jakarta.activation.DataHandlerconvertFile(String sid, String fileName, String format, jakarta.activation.DataHandler fileContent) Converts a given file and returns the conversion.Methods inherited from class com.logicaldoc.webservice.AbstractService
convertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
-
Constructor Details
-
SoapConversionService
public SoapConversionService()
-
-
Method Details
-
convertDocument
public jakarta.activation.DataHandler convertDocument(String sid, long docId, String fileVersion, String format) throws FeatureNotEnabledException, com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, com.logicaldoc.core.security.authorization.PermissionException, IOException Description copied from interface:ConversionServiceConverts an existing document and saves the generated conversion in LogicalDOC.- Specified by:
convertDocumentin interfaceConversionService- Parameters:
sid- Session identifierdocId- The document idfileVersion- The file versionformat- The output conversion format- Returns:
- The conversion's binary
- Throws:
FeatureNotEnabledException- The required feature is not enabledcom.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice layercom.logicaldoc.core.PersistenceException- Error in the data layercom.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissionsIOException- I/O error
-
convertDocumentAndSave
public long convertDocumentAndSave(String sid, long docId, String fileVersion, String format) throws FeatureNotEnabledException, com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, com.logicaldoc.core.security.authorization.PermissionException, IOException Description copied from interface:ConversionServiceConverts an existing document and saves the generated conversion in LogicalDOC.- Specified by:
convertDocumentAndSavein interfaceConversionService- Parameters:
sid- Session identifierdocId- The document idfileVersion- The file versionformat- The output conversion format- Returns:
- the ID of the generated conversion file
- Throws:
FeatureNotEnabledException- The required feature is not enabledcom.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice layercom.logicaldoc.core.PersistenceException- Error in the data layercom.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissionsIOException- I/O error
-
convertDocumentToPdf
public void convertDocumentToPdf(String sid, long docId, String fileVersion) throws FeatureNotEnabledException, com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, com.logicaldoc.core.security.authorization.PermissionException, IOException Description copied from interface:ConversionServiceCreates the PDF conversion of the given document. If the conversion was already created, nothing will happen.- Specified by:
convertDocumentToPdfin interfaceConversionService- Parameters:
sid- Session identifierdocId- The document idfileVersion- The specific file version(it can be empty)- Throws:
FeatureNotEnabledException- The required feature is not enabledcom.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice layercom.logicaldoc.core.PersistenceException- Error in the data layercom.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissionsIOException- I/O error
-
convertFile
public jakarta.activation.DataHandler convertFile(String sid, String fileName, String format, jakarta.activation.DataHandler fileContent) throws FeatureNotEnabledException, com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException Description copied from interface:ConversionServiceConverts a given file and returns the conversion.- Specified by:
convertFilein interfaceConversionService- Parameters:
sid- Session identifierfileName- Name of the source fileformat- The output conversion formatfileContent- The content of the input file- Returns:
- the raw content of the converted file
- Throws:
FeatureNotEnabledException- The required feature is not enabledcom.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice layercom.logicaldoc.core.PersistenceException- Error in the data layerIOException- I/O error
-