Class XdsAuditStrategy<T extends XdsAuditDataset>
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<T>
org.openehealth.ipf.commons.ihe.xds.core.audit.XdsAuditStrategy<T>
- All Implemented Interfaces:
AuditStrategy<T>
- Direct Known Subclasses:
XdsNonconstructiveDocumentSetRequestAuditStrategy30
,XdsQueryAuditStrategy30
,XdsRemoveMetadataAuditStrategy30
,XdsSubmitAuditStrategy30
Basis for Strategy pattern implementation for ATNA Auditing in XDS transactions.
- Author:
- Dmytro Rud
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
enrichAuditDatasetFromResponse
(T auditDataset, Object response, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.getEventOutcomeDescription
(T auditDataset, Object pojo) Determines which event outcome description corresponds with the provided response POJOgetEventOutcomeIndicator
(T auditDataset, Object pojo) Determines which event outcome corresponds with the provided response POJOMethods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, enrichAuditDatasetFromRequest, getEventOutcomeDescription, getEventOutcomeIndicator, isAuditableResponse, isServerSide, makeAuditMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy
createAuditDataset, enrichAuditDatasetFromResponse
-
Constructor Details
-
XdsAuditStrategy
public XdsAuditStrategy(boolean serverSide) Constructs an XDS audit strategy.- Parameters:
serverSide
- whether this is a server-side or a client-side strategy.
-
-
Method Details
-
getEventOutcomeIndicator
Description copied from interface:AuditStrategy
Determines which event outcome corresponds with the provided response POJO- Parameters:
auditDataset
- Audit datasetpojo
- POJO- Returns:
- event outcome code
-
getEventOutcomeDescription
Description copied from interface:AuditStrategy
Determines which event outcome description corresponds with the provided response POJO- Parameters:
auditDataset
- Audit datasetpojo
- POJO- Returns:
- event outcome description
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(T auditDataset, Object response, AuditContext auditContext) Description copied from interface:AuditStrategy
Enriches the given audit dataset with transaction-specific contents of the response message.- Specified by:
enrichAuditDatasetFromResponse
in interfaceAuditStrategy<T extends XdsAuditDataset>
- Overrides:
enrichAuditDatasetFromResponse
in classAuditStrategySupport<T extends XdsAuditDataset>
- Parameters:
auditDataset
- audit dataset to be enriched.response
-Object
representing the responded resource.auditContext
- audit context, if relevant- Returns:
- true if response indicates success, false otherwise
-