public interface AuditStrategy<T extends AuditDataset>
AuditDataset
containing the data for the audit record.Modifier and Type | Method and Description |
---|---|
T |
createAuditDataset()
Creates a new audit dataset instance.
|
void |
doAudit(AuditContext auditContext,
T auditDataset)
Performs the actual ATNA audit.
|
T |
enrichAuditDatasetFromRequest(T auditDataset,
Object request,
Map<String,Object> parameters)
Enriches the given audit dataset with transaction-specific
contents of the request message and Camel exchange.
|
default boolean |
enrichAuditDatasetFromResponse(T auditDataset,
Object response)
Enriches the given audit dataset with transaction-specific
contents of the response message.
|
boolean |
enrichAuditDatasetFromResponse(T auditDataset,
Object response,
AuditContext auditContext)
Enriches the given audit dataset with transaction-specific
contents of the response message.
|
String |
getEventOutcomeDescription(Object response)
Determines which event outcome description corresponds with the provided response POJO
|
EventOutcomeIndicator |
getEventOutcomeIndicator(Object response)
Determines which event outcome corresponds with the provided response POJO
|
boolean |
isAuditableResponse(Object response)
Determines whether the given response finalizes the interaction
and thus the ATNA auditing should be finalized as well.
|
T createAuditDataset()
T enrichAuditDatasetFromRequest(T auditDataset, Object request, Map<String,Object> parameters)
auditDataset
- audit dataset to be enriched.request
- Object
representing the request.parameters
- additional parametersdefault boolean enrichAuditDatasetFromResponse(T auditDataset, Object response)
auditDataset
- audit dataset to be enriched.response
- Object
representing the responded resource.boolean enrichAuditDatasetFromResponse(T auditDataset, Object response, AuditContext auditContext)
auditDataset
- audit dataset to be enriched.response
- Object
representing the responded resource.auditContext
- audit context, if relevantvoid doAudit(AuditContext auditContext, T auditDataset)
auditContext
- audit context used for auditingauditDataset
- Collected audit dataset.boolean isAuditableResponse(Object response)
Per default always returns true
.
response
- response in transaction-specific format (POJO, XML string, etc.).true
when this response finalizes the interaction.EventOutcomeIndicator getEventOutcomeIndicator(Object response)
response
- POJOCopyright © 2018 Open eHealth Foundation. All rights reserved.