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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanenrichAuditDatasetFromResponse(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, isAuditableResponse, isServerSide, makeAuditMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:AuditStrategyDetermines which event outcome corresponds with the provided response POJO- Parameters:
auditDataset- Audit datasetpojo- POJO- Returns:
- event outcome code
-
getEventOutcomeDescription
Description copied from interface:AuditStrategyDetermines 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:AuditStrategyEnriches the given audit dataset with transaction-specific contents of the response message.- Specified by:
enrichAuditDatasetFromResponsein interfaceAuditStrategy<T extends XdsAuditDataset>- Overrides:
enrichAuditDatasetFromResponsein classAuditStrategySupport<T extends XdsAuditDataset>- Parameters:
auditDataset- audit dataset to be enriched.response-Objectrepresenting the responded resource.auditContext- audit context, if relevant- Returns:
- true if response indicates success, false otherwise
-