public interface DhxImplementationSpecificService
Modifier and Type | Method and Description |
---|---|
java.util.List<ee.ria.dhx.types.InternalXroadMember> |
getAdresseeList()
Method returns adressees list from local storage(DB for example).
|
java.util.List<ee.ria.dhx.types.DhxRepresentee> |
getRepresentationList()
Method returns list of representees.
|
boolean |
isDuplicatePackage(ee.ria.dhx.types.InternalXroadMember from,
java.lang.String consignmentId)
Method searches through saved documents and checks if document with same sender and consignment
id exists.
|
java.lang.String |
receiveDocument(ee.ria.dhx.types.IncomingDhxPackage document,
org.springframework.ws.context.MessageContext context)
Method should receive document(save in database for example) and return unique id of it.
|
void |
saveAddresseeList(java.util.List<ee.ria.dhx.types.InternalXroadMember> members)
Methods saves adressees list to local storage(DB for example).
|
void |
saveSendResult(ee.ria.dhx.types.DhxSendDocumentResult finalResult,
java.util.List<ee.ria.dhx.types.AsyncDhxSendDocumentResult> retryResults)
If using asynchronous document sending.
|
boolean isDuplicatePackage(ee.ria.dhx.types.InternalXroadMember from, java.lang.String consignmentId) throws ee.ria.dhx.exception.DhxException
from
- - document sender to checkconsignmentId
- - consignment id to checkee.ria.dhx.exception.DhxException
- - thrown if error occursjava.lang.String receiveDocument(ee.ria.dhx.types.IncomingDhxPackage document, org.springframework.ws.context.MessageContext context) throws ee.ria.dhx.exception.DhxException
document
- - document to receivecontext
- - if something is missing in document, then there is opportunity to take it from
contextee.ria.dhx.exception.DhxException
- - thrown if error occurs while receiving documentjava.util.List<ee.ria.dhx.types.DhxRepresentee> getRepresentationList() throws ee.ria.dhx.exception.DhxException
ee.ria.dhx.exception.DhxException
- - thrown if error occursjava.util.List<ee.ria.dhx.types.InternalXroadMember> getAdresseeList() throws ee.ria.dhx.exception.DhxException
ee.ria.dhx.exception.DhxException
- - thrown if error occursvoid saveAddresseeList(java.util.List<ee.ria.dhx.types.InternalXroadMember> members) throws ee.ria.dhx.exception.DhxException
members
- - list of the adressees to saveee.ria.dhx.exception.DhxException
- - thrown if error occursvoid saveSendResult(ee.ria.dhx.types.DhxSendDocumentResult finalResult, java.util.List<ee.ria.dhx.types.AsyncDhxSendDocumentResult> retryResults)
finalResult
- - last result of the package sending. Contains both package that was
sent(including recipient and other information) and sending result, either success or
fail. If sending was unsucessfull then final results response parameter will contain
fault.retryResults
- - contains information about all retries that were done. Meant for
debugging or history saving or something like that.