Class Iti81AuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<T>
org.openehealth.ipf.commons.ihe.fhir.audit.AbstractFhirAuditStrategy<T,IBaseOperationOutcome>
org.openehealth.ipf.commons.ihe.fhir.audit.FhirAuditStrategy<FhirAuditEventQueryAuditDataset>
org.openehealth.ipf.commons.ihe.fhir.iti81.Iti81AuditStrategy
- All Implemented Interfaces:
AuditStrategy<FhirAuditEventQueryAuditDataset>
- Direct Known Subclasses:
Iti81ClientAuditStrategy
,Iti81ServerAuditStrategy
ITI-81 audit strategy
- Since:
- 3.6
- Author:
- Christian Ohr
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new audit dataset instance.boolean
enrichAuditDatasetFromResponse
(FhirAuditEventQueryAuditDataset auditDataset, Object response, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.makeAuditMessage
(AuditContext auditContext, FhirAuditEventQueryAuditDataset auditDataset) Constructs anAuditMessage
from a providedAuditDataset
Methods inherited from class org.openehealth.ipf.commons.ihe.fhir.audit.FhirAuditStrategy
getEventOutcomeCodeFromOperationOutcome, getEventOutcomeDescriptionFromOperationOutcome
Methods inherited from class org.openehealth.ipf.commons.ihe.fhir.audit.AbstractFhirAuditStrategy
enrichAuditDatasetFromRequest, getEventOutcomeCodeFromResource, getEventOutcomeDescription, getEventOutcomeIndicator
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
-
Constructor Details
-
Iti81AuditStrategy
public Iti81AuditStrategy(boolean serverSide)
-
-
Method Details
-
createAuditDataset
Description copied from interface:AuditStrategy
Creates a new audit dataset instance. -
makeAuditMessage
public AuditMessage[] makeAuditMessage(AuditContext auditContext, FhirAuditEventQueryAuditDataset auditDataset) Description copied from class:AuditStrategySupport
Constructs anAuditMessage
from a providedAuditDataset
- Specified by:
makeAuditMessage
in classAuditStrategySupport<FhirAuditEventQueryAuditDataset>
- Parameters:
auditContext
- audit contextauditDataset
- audit dataset- Returns:
- audit message
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(FhirAuditEventQueryAuditDataset 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<FhirAuditEventQueryAuditDataset>
- Overrides:
enrichAuditDatasetFromResponse
in classAbstractFhirAuditStrategy<FhirAuditEventQueryAuditDataset,
IBaseOperationOutcome> - 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
-