Class Iti48AuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<SvsAuditDataset>
org.openehealth.ipf.commons.ihe.svs.iti48.Iti48AuditStrategy
- All Implemented Interfaces:
AuditStrategy<SvsAuditDataset>
Audit strategy for ITI-48.
- Author:
- Quentin Ligier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new audit dataset instance.enrichAuditDatasetFromRequest
(SvsAuditDataset 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
(SvsAuditDataset auditDataset, Object response, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.makeAuditMessage
(AuditContext auditContext, SvsAuditDataset auditDataset) Constructs anAuditMessage
from a providedSvsAuditDataset
Methods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
doAudit, 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
-
Iti48AuditStrategy
public Iti48AuditStrategy(boolean serverSide) - Parameters:
serverSide
-true
when this strategy is a server-side one;false
otherwise.
-
-
Method Details
-
createAuditDataset
Creates a new audit dataset instance. -
enrichAuditDatasetFromRequest
public SvsAuditDataset enrichAuditDatasetFromRequest(SvsAuditDataset auditDataset, Object request, Map<String, Object> parameters) Enriches the given audit dataset with transaction-specific contents of the request message and Camel exchange.- Specified by:
enrichAuditDatasetFromRequest
in interfaceAuditStrategy<SvsAuditDataset>
- Overrides:
enrichAuditDatasetFromRequest
in classAuditStrategySupport<SvsAuditDataset>
- Parameters:
auditDataset
- audit dataset to be enriched.request
-Object
representing the request.parameters
- additional parameters
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(SvsAuditDataset auditDataset, Object response, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.- Specified by:
enrichAuditDatasetFromResponse
in interfaceAuditStrategy<SvsAuditDataset>
- Overrides:
enrichAuditDatasetFromResponse
in classAuditStrategySupport<SvsAuditDataset>
- 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
-
makeAuditMessage
Constructs anAuditMessage
from a providedSvsAuditDataset
- Specified by:
makeAuditMessage
in classAuditStrategySupport<SvsAuditDataset>
- Parameters:
auditContext
- audit contextauditDataset
- audit dataset- Returns:
- audit messages
-