Class ChPpq1AuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<ChPpqAuditDataset>
org.openehealth.ipf.commons.ihe.xacml20.chppq1.ChPpq1AuditStrategy
- All Implemented Interfaces:
AuditStrategy<ChPpqAuditDataset>
- Direct Known Subclasses:
ChPpq1ClientAuditStrategy
,ChPpq1ServerAuditStrategy
- Author:
- Dmytro Rud
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new audit dataset instance.enrichAuditDatasetFromRequest
(ChPpqAuditDataset auditDataset, Object request, Map<String, Object> parameters) Enriches the given audit dataset with transaction-specific contents of the request message and Camel exchange.boolean
enrichAuditDatasetFromResponse
(ChPpqAuditDataset auditDataset, Object response, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.getEventOutcomeIndicator
(ChPpqAuditDataset auditDataset, Object responseObject) Determines which event outcome corresponds with the provided response POJOMethods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, 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
enrichAuditDatasetFromResponse, getEventOutcomeDescription
-
Constructor Details
-
ChPpq1AuditStrategy
public ChPpq1AuditStrategy(boolean serverSide)
-
-
Method Details
-
createAuditDataset
Description copied from interface:AuditStrategy
Creates a new audit dataset instance. -
enrichAuditDatasetFromRequest
public ChPpqAuditDataset enrichAuditDatasetFromRequest(ChPpqAuditDataset auditDataset, Object request, Map<String, Object> parameters) Description copied from interface:AuditStrategy
Enriches the given audit dataset with transaction-specific contents of the request message and Camel exchange.- Specified by:
enrichAuditDatasetFromRequest
in interfaceAuditStrategy<ChPpqAuditDataset>
- Overrides:
enrichAuditDatasetFromRequest
in classAuditStrategySupport<ChPpqAuditDataset>
- Parameters:
auditDataset
- audit dataset to be enriched.request
-Object
representing the request.parameters
- additional parameters
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(ChPpqAuditDataset 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<ChPpqAuditDataset>
- Overrides:
enrichAuditDatasetFromResponse
in classAuditStrategySupport<ChPpqAuditDataset>
- 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
-
getEventOutcomeIndicator
public EventOutcomeIndicator getEventOutcomeIndicator(ChPpqAuditDataset auditDataset, Object responseObject) Description copied from interface:AuditStrategy
Determines which event outcome corresponds with the provided response POJO- Parameters:
auditDataset
- Audit datasetresponseObject
- POJO- Returns:
- event outcome code
-