Class Iti65AuditStrategy
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport<Iti65AuditDataset>
org.openehealth.ipf.commons.ihe.fhir.audit.AbstractFhirAuditStrategy<Iti65AuditDataset,IBaseOperationOutcome>
org.openehealth.ipf.commons.ihe.fhir.audit.FhirAuditStrategy<Iti65AuditDataset>
org.openehealth.ipf.commons.ihe.fhir.iti65.Iti65AuditStrategy
- All Implemented Interfaces:
AuditStrategy<Iti65AuditDataset>
- Direct Known Subclasses:
Iti65ClientAuditStrategy,Iti65ServerAuditStrategy
- Since:
- 3.6
- Author:
- Christian Ohr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new audit dataset instance.enrichAuditDatasetFromRequest(Iti65AuditDataset auditDataset, Object request, Map<String, Object> parameters) Enriches the given audit dataset with transaction-specific contents of the request message and Camel exchange.booleanenrichAuditDatasetFromResponse(Iti65AuditDataset auditDataset, Object response, AuditContext auditContext) Enriches the given audit dataset with transaction-specific contents of the response message.protected EventOutcomeIndicatorgetEventOutcomeCodeFromResource(Iti65AuditDataset auditDataset, IBaseResource resource) Look at the response codes in the bundle entries and derive the ATNA event outcomeMethods inherited from class org.openehealth.ipf.commons.ihe.fhir.audit.FhirAuditStrategy
getEventOutcomeCodeFromOperationOutcome, getEventOutcomeDescriptionFromOperationOutcomeMethods inherited from class org.openehealth.ipf.commons.ihe.fhir.audit.AbstractFhirAuditStrategy
doAudit, getEventOutcomeDescription, getEventOutcomeIndicatorMethods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditStrategySupport
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
-
Constructor Details
-
Iti65AuditStrategy
public Iti65AuditStrategy(boolean serverSide)
-
-
Method Details
-
createAuditDataset
Description copied from interface:AuditStrategyCreates a new audit dataset instance. -
enrichAuditDatasetFromRequest
public Iti65AuditDataset enrichAuditDatasetFromRequest(Iti65AuditDataset 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<Iti65AuditDataset>- Overrides:
enrichAuditDatasetFromRequestin classAbstractFhirAuditStrategy<Iti65AuditDataset,IBaseOperationOutcome> - Parameters:
auditDataset- audit dataset to be enriched.request-Objectrepresenting the request.parameters- additional parameters
-
enrichAuditDatasetFromResponse
public boolean enrichAuditDatasetFromResponse(Iti65AuditDataset 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<Iti65AuditDataset>- Overrides:
enrichAuditDatasetFromResponsein classAbstractFhirAuditStrategy<Iti65AuditDataset,IBaseOperationOutcome> - 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
-
getEventOutcomeCodeFromResource
protected EventOutcomeIndicator getEventOutcomeCodeFromResource(Iti65AuditDataset auditDataset, IBaseResource resource) Look at the response codes in the bundle entries and derive the ATNA event outcome- Overrides:
getEventOutcomeCodeFromResourcein classAbstractFhirAuditStrategy<Iti65AuditDataset,IBaseOperationOutcome> - Parameters:
resource- FHIR resource- Returns:
- RFC3881EventOutcomeCode
-