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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Description 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 String
Returns the local address.abstract String
abstract String
Source User Name, e.g.boolean
boolean
whether we audit on server (true) or on client (false)boolean
void
setEventOutcomeDescription
(String eventOutcomeDescription) Description of the overall outcome of the transaction that causes this audit eventvoid
setEventOutcomeIndicator
(EventOutcomeIndicator eventOutcomeIndicator) Overall outcome of the transaction that causes this audit eventvoid
setSourceUserName
(String sourceUserName) Source User Name, e.g.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
-