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
public abstract class XdsAuditStrategy<T extends XdsAuditDataset> extends AuditStrategySupport<T>
Basis for Strategy pattern implementation for ATNA Auditing in XDS transactions.- Author:
- Dmytro Rud
-
-
Constructor Summary
Constructors Constructor Description XdsAuditStrategy(boolean serverSide)
Constructs an XDS audit strategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
enrichAuditDatasetFromResponse(T auditDataset, Object response, AuditContext auditContext)
Enriches the given audit dataset with transaction-specific contents of the response message.String
getEventOutcomeDescription(Object pojo)
Determines which event outcome description corresponds with the provided response POJOEventOutcomeIndicator
getEventOutcomeIndicator(Object pojo)
Determines which event outcome corresponds with the provided response POJO-
Methods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, enrichAuditDatasetFromRequest, 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
-
-
-
-
Method Detail
-
getEventOutcomeIndicator
public EventOutcomeIndicator getEventOutcomeIndicator(Object pojo)
Description copied from interface:AuditStrategy
Determines which event outcome corresponds with the provided response POJO- Specified by:
getEventOutcomeIndicator
in interfaceAuditStrategy<T extends XdsAuditDataset>
- Overrides:
getEventOutcomeIndicator
in classAuditStrategySupport<T extends XdsAuditDataset>
- Parameters:
pojo
- POJO- Returns:
- event outcome code
-
getEventOutcomeDescription
public String getEventOutcomeDescription(Object pojo)
Description copied from interface:AuditStrategy
Determines which event outcome description corresponds with the provided response POJO- Specified by:
getEventOutcomeDescription
in interfaceAuditStrategy<T extends XdsAuditDataset>
- Overrides:
getEventOutcomeDescription
in classAuditStrategySupport<T extends XdsAuditDataset>
- Parameters:
pojo
- 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
-
-