Class ChPpq2AuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<ChPpqAuditDataset>
org.openehealth.ipf.commons.ihe.xacml20.chppq2.ChPpq2AuditStrategy
- All Implemented Interfaces:
AuditStrategy<ChPpqAuditDataset>
- Since:
- 3.5.1
- Author:
- Dmytro Rud
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new audit dataset instance.enrichAuditDatasetFromRequest
(ChPpqAuditDataset auditDataset, Object requestObject, 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 POJOmakeAuditMessage
(AuditContext auditContext, ChPpqAuditDataset auditDataset) Constructs anAuditMessage
from a providedAuditDataset
Methods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, getEventOutcomeDescription, getEventOutcomeIndicator, isAuditableResponse, isServerSide
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
-
ChPpq2AuditStrategy
public ChPpq2AuditStrategy(boolean serverSide)
-
-
Method Details
-
createAuditDataset
Description copied from interface:AuditStrategy
Creates a new audit dataset instance. -
makeAuditMessage
Description copied from class:AuditStrategySupport
Constructs anAuditMessage
from a providedAuditDataset
- Specified by:
makeAuditMessage
in classAuditStrategySupport<ChPpqAuditDataset>
- Parameters:
auditContext
- audit contextauditDataset
- audit dataset- Returns:
- audit message
-
enrichAuditDatasetFromRequest
public ChPpqAuditDataset enrichAuditDatasetFromRequest(ChPpqAuditDataset auditDataset, Object requestObject, 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.requestObject
-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
-