Class AuditDataset
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditDataset
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FhirAuditDataset,MllpAuditDataset,WsAuditDataset
A generic data structure used to store information pieces needed for auditing.
- Author:
- Dmytro Rud
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringDescription of the overall outcome of the transaction that causes this audit eventOverall outcome of the transaction that causes this audit eventabstract List<AuditDataset.HumanUser> abstract StringReturns the local address.abstract Stringabstract StringSource User Name, e.g. extracted from a client certificateContents of the HTTP header "traceparent:" as defined in the W3C Trace Context specification.booleanbooleanwhether we audit on server (true) or on client (false)booleanvoidsetEventOutcomeDescription(String eventOutcomeDescription) Description of the overall outcome of the transaction that causes this audit eventvoidsetEventOutcomeIndicator(EventOutcomeIndicator eventOutcomeIndicator) Overall outcome of the transaction that causes this audit eventvoidsetSourceUserName(String sourceUserName) Source User Name, e.g. extracted from a client certificatevoidsetW3cTraceContextId(String w3cTraceContextId) Contents of the HTTP header "traceparent:" as defined in the W3C Trace Context specification.toString()
-
Constructor Details
-
AuditDataset
public AuditDataset(boolean serverSide) - Parameters:
serverSide- specifies whether this audit dataset will be used on the server side (true) or on the client side (false)
-
-
Method Details
-
toString
-
getSourceUserId
- Returns:
- the user ID of the transaction source
-
getDestinationUserId
- Returns:
- the user ID of the transaction destination
-
getLocalAddress
Returns the local address. May fall back toAuditUtils.getLocalIPAddress()if not explicitly set- Returns:
- the local address
-
getRemoteAddress
- Returns:
- the remote address of the transaction
-
getHumanUsers
- Returns:
- information about human user(s) participating in the transaction
-
isSourceUserIsRequestor
public boolean isSourceUserIsRequestor()- Returns:
- true if the source user is the requestor of the event
-
isDestinationUserIsRequestor
public boolean isDestinationUserIsRequestor()- Returns:
- true if the destination user is the requestor of the event
-
isServerSide
public boolean isServerSide()whether we audit on server (true) or on client (false) -
getEventOutcomeIndicator
Overall outcome of the transaction that causes this audit event -
setEventOutcomeIndicator
Overall outcome of the transaction that causes this audit event -
getEventOutcomeDescription
Description of the overall outcome of the transaction that causes this audit event -
setEventOutcomeDescription
Description of the overall outcome of the transaction that causes this audit event -
getSourceUserName
Source User Name, e.g. extracted from a client certificate -
setSourceUserName
Source User Name, e.g. extracted from a client certificate -
getW3cTraceContextId
Contents of the HTTP header "traceparent:" as defined in the W3C Trace Context specification. -
setW3cTraceContextId
Contents of the HTTP header "traceparent:" as defined in the W3C Trace Context specification.
-