@BindingType(value="http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true") public class ModifyServiceImpl extends Object implements ModifyService
Constructor and Description |
---|
ModifyServiceImpl() |
Modifier and Type | Method and Description |
---|---|
String |
createRequest(es.juntadeandalucia.cice.pfirma.ws.bean.Request request)
Creates a new request from data received in object
Request . |
String |
createRequestByReference(es.juntadeandalucia.cice.pfirma.ws.bean.RequestByReference request)
Creates a new request from data received in object
RequestByReference . |
void |
deleteRequest(Holder<String> requestId)
Delete a request.
|
void |
deleteSigners(String requestId,
SignerList signerList)
Delete signers from a specific request.
|
String |
insertDocument(String requestId,
es.juntadeandalucia.cice.pfirma.ws.bean.Document document)
Inserts a document into a request.
|
void |
insertSigners(String requestId,
int signLine,
SignerList signerList)
Insert signers into a specific sign line of a request.
|
void |
sendRequest(Holder<String> requestId)
Sends the request with received id.
|
String |
updateRequest(es.juntadeandalucia.cice.pfirma.ws.bean.Request request)
Update request data.
|
public void sendRequest(Holder<String> requestId) throws PfirmaException
ModifyService
sendRequest
in interface ModifyService
requestId
- Identifier of the request created previously.PfirmaException
- If an error occurs during process. Possible errors are that
request is not found or that request is already sent. If
request does not contain at least a sign line with a signer
or a document exception is thrown.public String insertDocument(String requestId, es.juntadeandalucia.cice.pfirma.ws.bean.Document document) throws PfirmaException
ModifyService
insertDocument
in interface ModifyService
requestId
- Identifier of the request created previously.document
- Document
object with document data. It must have a
valid uri (if document will be uploaded by reference) or
binary content.PfirmaException
- If an error occurs during process. Possible errors are that
request is not found or that request is sent. Another error
can be caused by any problem with custody system.public String updateRequest(es.juntadeandalucia.cice.pfirma.ws.bean.Request request) throws PfirmaException
ModifyService
updateRequest
in interface ModifyService
request
- Request
object with request data.PfirmaException
- If an error occurs during process. Possible errors are that
request is not found or that request is sent. Another error
can be that remitters or signers received are not found.public String createRequest(es.juntadeandalucia.cice.pfirma.ws.bean.Request request) throws PfirmaException
ModifyService
Request
.
Request hash is not necessary to be included in Request
because
it is returned by method.createRequest
in interface ModifyService
request
- Request
object with request data. It must contain a
valid application that exists in the system.PfirmaException
- If an error occurs during process. Possible errors are that
remitters or signers received are not found. Another error
can be caused by validation of request fields.public String createRequestByReference(es.juntadeandalucia.cice.pfirma.ws.bean.RequestByReference request) throws PfirmaException, org.apache.axis.AxisFault
ModifyService
RequestByReference
.
Request hash is not necessary to be included in RequestByReference
because
it is returned by method.createRequestByReference
in interface ModifyService
request
- RequestByReference
object with request data. It must contain a
valid application that exists in the system.PfirmaException
- If an error occurs during process. Possible errors are that
remitters or signers received are not found. Another error
can be caused by validation of request fields.org.apache.axis.AxisFault
public void deleteRequest(Holder<String> requestId) throws PfirmaException
ModifyService
deleteRequest
in interface ModifyService
requestId
- Request hash.PfirmaException
- If an error occurs during process. Possible errors are that
request is not found or that request has any sign line signed
or passed or request is rejected or refunded.public void insertSigners(String requestId, int signLine, SignerList signerList) throws PfirmaException
ModifyService
insertSigners
in interface ModifyService
requestId
- Request hash.signLine
- Sign line number where signer(s) will be inserted. If its
greater than request sign line count, a new sign line is
created.signerList
- SignerList
list containing signer(s) which will be
inserted. Signers cannot be inserted if it already exists into
the sign line specified.PfirmaException
- If an error occurs during process. Possible errors are that
request is not found, sign line number is not correct or that
signer received already exists in sign line selected.public void deleteSigners(String requestId, SignerList signerList) throws PfirmaException
ModifyService
deleteSigners
in interface ModifyService
requestId
- Request hash.signerList
- SignerList
list containing signer(s) which will be
deleted.PfirmaException
- If an error occurs during process. Possible errors are that
request is not found, signers received signed any sign line
or that request is rejected or refund.Copyright © 2017. All rights reserved.