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
Constructors -
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.booleanenrichAuditDatasetFromResponse(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, 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
enrichAuditDatasetFromResponse, getEventOutcomeDescription
-
Constructor Details
-
ChPpq1AuditStrategy
public ChPpq1AuditStrategy(boolean serverSide)
-
-
Method Details
-
createAuditDataset
Description copied from interface:AuditStrategyCreates a new audit dataset instance. -
enrichAuditDatasetFromRequest
public ChPpqAuditDataset enrichAuditDatasetFromRequest(ChPpqAuditDataset auditDataset, Object request, 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<ChPpqAuditDataset>- Overrides:
enrichAuditDatasetFromRequestin classAuditStrategySupport<ChPpqAuditDataset>- Parameters:
auditDataset- audit dataset to be enriched.request-Objectrepresenting the request.parameters- additional parameters
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(ChPpqAuditDataset 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<ChPpqAuditDataset>- Overrides:
enrichAuditDatasetFromResponsein classAuditStrategySupport<ChPpqAuditDataset>- 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
-
getEventOutcomeIndicator
public EventOutcomeIndicator getEventOutcomeIndicator(ChPpqAuditDataset auditDataset, Object responseObject) Description copied from interface:AuditStrategyDetermines which event outcome corresponds with the provided response POJO- Parameters:
auditDataset- Audit datasetresponseObject- POJO- Returns:
- event outcome code
-