@Service public class SubmitProvisionResponseBuilderImpl extends java.lang.Object implements SubmitProvisionResponseBuilder
Constructor and Description |
---|
SubmitProvisionResponseBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
org.apache.xmlbeans.XmlObject |
buildErrorResponse(java.lang.Throwable th,
StructureReferenceBean sRef,
SDMX_SCHEMA schemaVersion) |
org.apache.xmlbeans.XmlObject |
buildSuccessResponse(java.util.Collection<ProvisionAgreementBean> response,
SDMX_SCHEMA schemaVersion)
Returns an response based on the submitted provision, if there is a Throwable against the provision
then the error will be documented, and a status of failure will be put against it.
|
public org.apache.xmlbeans.XmlObject buildSuccessResponse(java.util.Collection<ProvisionAgreementBean> response, SDMX_SCHEMA schemaVersion)
SubmitProvisionResponseBuilder
buildSuccessResponse
in interface SubmitProvisionResponseBuilder
response
- - a map of provision, and a error message (if there is one)schemaVersion
- - the version of the schema to output the response inpublic org.apache.xmlbeans.XmlObject buildErrorResponse(java.lang.Throwable th, StructureReferenceBean sRef, SDMX_SCHEMA schemaVersion)
buildErrorResponse
in interface SubmitProvisionResponseBuilder