Class SoapSignService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.sign.webservice.soap.endpoint.SoapSignService
- All Implemented Interfaces:
SignService
public class SoapSignService
extends com.logicaldoc.webservice.AbstractService
implements SignService
Implementation of the Sign webservice
- Since:
- 7.1.2
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
* Generates a new certificate for the uservoid
markDocumentSigned
(String sid, long docId, String reason, String certificate) Marks a document as signed(it does not apply any signature, just marks the document as signed)Long[]
Signs a set of documentsMethods inherited from class com.logicaldoc.webservice.AbstractService
convertDateToString, convertStringToDate, getContext, getMessageContext, isValidateSession, setContext, setMessageContext, setValidateSession
-
Constructor Details
-
SoapSignService
public SoapSignService()
-
-
Method Details
-
sign
public Long[] sign(String sid, Long[] docIds, String reason) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:SignService
Signs a set of documents- Specified by:
sign
in interfaceSignService
- Parameters:
sid
- The session identifierdocIds
- Identifiers of the documents you wants to signreason
- Reason for the signature- Returns:
- The list of the documents that were signed
- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
- The user has not been authenticatedcom.logicaldoc.webservice.WebserviceException
- Error in the webservicecom.logicaldoc.core.PersistenceException
- Error in the data layer
-
generateCertificate
public void generateCertificate(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:SignService
* Generates a new certificate for the user- Specified by:
generateCertificate
in interfaceSignService
- Parameters:
sid
- The session identifier- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
- The user has not been authenticatedcom.logicaldoc.webservice.WebserviceException
- Error in the webservicecom.logicaldoc.core.PersistenceException
- Error in the data layer
-
markDocumentSigned
public void markDocumentSigned(String sid, long docId, String reason, String certificate) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:SignService
Marks a document as signed(it does not apply any signature, just marks the document as signed)- Specified by:
markDocumentSigned
in interfaceSignService
- Parameters:
sid
- The session identifierdocId
- Identifier of the documentreason
- Reason for the signaturecertificate
- Description of the certificate to save in the even- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
- The user has not been authenticatedcom.logicaldoc.webservice.WebserviceException
- Error in the webservicecom.logicaldoc.core.PersistenceException
- Error in the data layer
-