Class Iti59ServerAuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<Iti59AuditDataset>
org.openehealth.ipf.commons.ihe.hpd.iti59.Iti59ServerAuditStrategy
- All Implemented Interfaces:
AuditStrategy<Iti59AuditDataset>
- Author:
- Christian Ohr
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new audit dataset instance.enrichAuditDatasetFromRequest
(Iti59AuditDataset 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
(Iti59AuditDataset auditDataset, Object responseObject, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.makeAuditMessage
(AuditContext auditContext, Iti59AuditDataset auditDataset) Constructs anAuditMessage
from a providedAuditDataset
protected AuditMessage
makeAuditMessage
(AuditContext auditContext, Iti59AuditDataset auditDataset, Iti59AuditDataset.RequestItem requestItem) 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, getEventOutcomeIndicator
-
Constructor Details
-
Iti59ServerAuditStrategy
public Iti59ServerAuditStrategy()
-
-
Method Details
-
makeAuditMessage
protected AuditMessage makeAuditMessage(AuditContext auditContext, Iti59AuditDataset auditDataset, Iti59AuditDataset.RequestItem requestItem) -
createAuditDataset
Description copied from interface:AuditStrategy
Creates a new audit dataset instance. -
enrichAuditDatasetFromRequest
public Iti59AuditDataset enrichAuditDatasetFromRequest(Iti59AuditDataset 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<Iti59AuditDataset>
- Overrides:
enrichAuditDatasetFromRequest
in classAuditStrategySupport<Iti59AuditDataset>
- Parameters:
auditDataset
- audit dataset to be enriched.requestObject
-Object
representing the request.parameters
- additional parameters
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(Iti59AuditDataset auditDataset, Object responseObject, 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<Iti59AuditDataset>
- Overrides:
enrichAuditDatasetFromResponse
in classAuditStrategySupport<Iti59AuditDataset>
- Parameters:
auditDataset
- audit dataset to be enriched.responseObject
-Object
representing the responded resource.auditContext
- audit context, if relevant- Returns:
- true if response indicates success, false otherwise
-
makeAuditMessage
Description copied from class:AuditStrategySupport
Constructs anAuditMessage
from a providedAuditDataset
- Specified by:
makeAuditMessage
in classAuditStrategySupport<Iti59AuditDataset>
- Parameters:
auditContext
- audit contextauditDataset
- audit dataset- Returns:
- audit message
-