@Service
@Transactional
public class SoapService
extends java.lang.Object
Constructor and Description |
---|
SoapService() |
Modifier and Type | Method and Description |
---|---|
void |
deleteOldDocuments(java.lang.Boolean deleteWholeDocument)
Method deletes documents or content of the documents older than configured lifetime of the
received and failed documents.
|
GetSendingOptionsResponse |
getSendingOptions(GetSendingOptions request,
ee.ria.dhx.types.InternalXroadMember senderMember,
ee.ria.dhx.types.InternalXroadMember recipientMember,
org.springframework.ws.context.MessageContext context)
Method returns list of organisations that are able to receive the documents using DHX protocol.
|
GetSendStatusResponse |
getSendStatus(GetSendStatus request,
ee.ria.dhx.types.InternalXroadMember senderMember,
ee.ria.dhx.types.InternalXroadMember recipientMember,
org.springframework.ws.context.MessageContext context)
Method returns statuses of the documents.
|
MarkDocumentsReceivedResponse |
markDocumentReceived(MarkDocumentsReceived requestWrapper,
ee.ria.dhx.types.InternalXroadMember senderMember,
ee.ria.dhx.types.InternalXroadMember recipientMember,
org.springframework.ws.context.MessageContext context)
Method marks documents with status provided in request.
|
ReceiveDocumentsResponse |
receiveDocuments(ReceiveDocuments request,
ee.ria.dhx.types.InternalXroadMember sender,
ee.ria.dhx.types.InternalXroadMember recipient)
Method returns documents that are sent to sender's organisation.
|
void |
saveRecipient(Recipient recipient) |
SendDocumentsResponse |
sendDocuments(SendDocuments documents,
ee.ria.dhx.types.InternalXroadMember sender,
ee.ria.dhx.types.InternalXroadMember recipient)
Method processes sendDocuments request and saves the document into the database for further
sending to DHX service of the recipient.
|
void |
sendDocumentsToDhx()
Method finds not sent documents that are meant to be sent to DHX(outgoing documents) and sends
them using asynchronous DHX sender.
|
@Loggable public SendDocumentsResponse sendDocuments(SendDocuments documents, ee.ria.dhx.types.InternalXroadMember sender, ee.ria.dhx.types.InternalXroadMember recipient) throws ee.ria.dhx.exception.DhxException
documents
- - SOAP request objectsender
- - sender of the request(from SOAP header)recipient
- - recipient of the request(from SOAP header)ee.ria.dhx.exception.DhxException
- thrown if error occurs@Loggable public void sendDocumentsToDhx()
@Loggable @Transactional(propagation=REQUIRES_NEW) public void saveRecipient(Recipient recipient)
@Loggable public ReceiveDocumentsResponse receiveDocuments(ReceiveDocuments request, ee.ria.dhx.types.InternalXroadMember sender, ee.ria.dhx.types.InternalXroadMember recipient) throws ee.ria.dhx.exception.DhxException
request
- - SOAP request objectsender
- - sender of the request(from SOAP header)recipient
- - recipient of the request(from SOAP header)ee.ria.dhx.exception.DhxException
- thrown if error occurs@Loggable public MarkDocumentsReceivedResponse markDocumentReceived(MarkDocumentsReceived requestWrapper, ee.ria.dhx.types.InternalXroadMember senderMember, ee.ria.dhx.types.InternalXroadMember recipientMember, org.springframework.ws.context.MessageContext context) throws ee.ria.dhx.exception.DhxException
requestWrapper
- SOAP request objectsenderMember
- sender of the request(from SOAP header)recipientMember
- recipient of the request(from SOAP header)context
- SOAP context, used for attachment parsingee.ria.dhx.exception.DhxException
- thrown if error occurs@Loggable public GetSendStatusResponse getSendStatus(GetSendStatus request, ee.ria.dhx.types.InternalXroadMember senderMember, ee.ria.dhx.types.InternalXroadMember recipientMember, org.springframework.ws.context.MessageContext context) throws ee.ria.dhx.exception.DhxException
request
- - SOAP request objectsenderMember
- - sender of the request(from SOAP header)recipientMember
- - recipient of the request(from SOAP header)context
- Soap message contextee.ria.dhx.exception.DhxException
- thrown if error occurs@Loggable public GetSendingOptionsResponse getSendingOptions(GetSendingOptions request, ee.ria.dhx.types.InternalXroadMember senderMember, ee.ria.dhx.types.InternalXroadMember recipientMember, org.springframework.ws.context.MessageContext context) throws ee.ria.dhx.exception.DhxException
request
- SOAP request objectsenderMember
- sender of the request(from SOAP header)recipientMember
- recipient of the request(from SOAP header)context
- Soap message contextee.ria.dhx.exception.DhxException
- thrown if error occurs@Loggable public void deleteOldDocuments(java.lang.Boolean deleteWholeDocument) throws ee.ria.dhx.exception.DhxException
deleteWholeDocument
- delete whole document from database or only content.ee.ria.dhx.exception.DhxException
- thrown when error occurs