Class ChAdrAuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<ChAdrAuditDataset>
org.openehealth.ipf.commons.ihe.xacml20.chadr.ChAdrAuditStrategy
- All Implemented Interfaces:
AuditStrategy<ChAdrAuditDataset>
- Since:
- 4.8.0
- Author:
- Dmytro Rud
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new audit dataset instance.enrichAuditDatasetFromRequest(ChAdrAuditDataset auditDataset, Object requestObject, Map<String, Object> parameters) Enriches the given audit dataset with transaction-specific contents of the request message and Camel exchange.booleanenrichAuditDatasetFromResponse(ChAdrAuditDataset auditDataset, Object responseObject, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.makeAuditMessage(AuditContext auditContext, ChAdrAuditDataset auditDataset) Constructs anAuditMessagefrom a providedAuditDatasetMethods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, isAuditableResponse, isServerSideMethods 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
enrichAuditDatasetFromResponse, getEventOutcomeDescription, getEventOutcomeIndicator
-
Constructor Details
-
ChAdrAuditStrategy
public ChAdrAuditStrategy(boolean serverSide)
-
-
Method Details
-
createAuditDataset
Description copied from interface:AuditStrategyCreates a new audit dataset instance. -
makeAuditMessage
Description copied from class:AuditStrategySupportConstructs anAuditMessagefrom a providedAuditDataset- Specified by:
makeAuditMessagein classAuditStrategySupport<ChAdrAuditDataset>- Parameters:
auditContext- audit contextauditDataset- audit dataset- Returns:
- audit message
-
enrichAuditDatasetFromRequest
public ChAdrAuditDataset enrichAuditDatasetFromRequest(ChAdrAuditDataset auditDataset, Object requestObject, Map<String, Object> parameters) Description copied from interface:AuditStrategyEnriches the given audit dataset with transaction-specific contents of the request message and Camel exchange.- Specified by:
enrichAuditDatasetFromRequestin interfaceAuditStrategy<ChAdrAuditDataset>- Overrides:
enrichAuditDatasetFromRequestin classAuditStrategySupport<ChAdrAuditDataset>- Parameters:
auditDataset- audit dataset to be enriched.requestObject-Objectrepresenting the request.parameters- additional parameters
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(ChAdrAuditDataset auditDataset, Object responseObject, AuditContext auditContext) Description copied from interface:AuditStrategyEnriches the given audit dataset with transaction-specific contents of the response message.- Specified by:
enrichAuditDatasetFromResponsein interfaceAuditStrategy<ChAdrAuditDataset>- Overrides:
enrichAuditDatasetFromResponsein classAuditStrategySupport<ChAdrAuditDataset>- Parameters:
auditDataset- audit dataset to be enriched.responseObject-Objectrepresenting the responded resource.auditContext- audit context, if relevant- Returns:
- true if response indicates success, false otherwise
-