Class WsAuditDataset
java.lang.Object
org.openehealth.ipf.commons.ihe.core.atna.AuditDataset
org.openehealth.ipf.commons.ihe.ws.cxf.audit.WsAuditDataset
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ChAdrAuditDataset
,ChPpqAuditDataset
,Hl7v3AuditDataset
,Iti59AuditDataset
,Iti79AuditDataset
,XdsAuditDataset
A data structure that contains various ATNA audit information pieces
common for all Web Service-based IHE transactions.
These pieces are stored and used by corresponding CXF interceptors and transaction-specific audit strategies.
- Author:
- Dmytro Rud
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditDataset
AuditDataset.HumanUser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClient IP address.Server user ID (SOAP endpoint)IDs and real-world names of human users.Returns the local address.Purposes of use, see ITI TF-2a section 3.20.7.8 and ITI TF-2b section 3.40.4.1.2.3.Remote addressRequest SOAP Body (XML) payload.Client user ID (WS-Addressing <Reply-To> header).Patient ID from XUA token, see ITI TF-2b Section 3.40.4.1.2.2.1.boolean
void
setClientIpAddress
(String clientIpAddress) Client IP address.void
setDestinationUserId
(String destinationUserId) Server user ID (SOAP endpoint)void
setLocalAddress
(String localAddress) Local addressvoid
setPurposesOfUse
(PurposeOfUse[] purposesOfUse) Purposes of use, see ITI TF-2a section 3.20.7.8 and ITI TF-2b section 3.40.4.1.2.3.void
setRemoteAddress
(String remoteAddress) Remote addressvoid
setRequestPayload
(String requestPayload) Sets the request SOAP Body (XML) payload.void
setRequestPayload
(StringPayloadHolder payloadHolder) Sets the request SOAP Body (XML) payload.void
setSourceUserId
(String sourceUserId) Client user ID (WS-Addressing <Reply-To> header).void
setSourceUserIsRequestor
(boolean sourceUserIsRequestor) void
setXuaPatientId
(String xuaPatientId) Patient ID from XUA token, see ITI TF-2b Section 3.40.4.1.2.2.1.Methods inherited from class org.openehealth.ipf.commons.ihe.core.atna.AuditDataset
getEventOutcomeDescription, getEventOutcomeIndicator, getSourceUserName, isDestinationUserIsRequestor, isServerSide, setEventOutcomeDescription, setEventOutcomeIndicator, setSourceUserName, toString
-
Constructor Details
-
WsAuditDataset
public WsAuditDataset(boolean serverSide) Constructor.- Parameters:
serverSide
- specifies whether this audit dataset will be used on the server side (true
) or on the client side (false
)
-
-
Method Details
-
setRequestPayload
Sets the request SOAP Body (XML) payload.- Parameters:
requestPayload
- SOAP Body (XML) payload.
-
setRequestPayload
Sets the request SOAP Body (XML) payload.- Parameters:
payloadHolder
- POJO containing SOAP Body (XML) payload.
-
getLocalAddress
Description copied from class:AuditDataset
Returns the local address. May fall back toAuditUtils.getLocalIPAddress()
if not explicitly set- Specified by:
getLocalAddress
in classAuditDataset
- Returns:
- The machine name or IP address
-
isSourceUserIsRequestor
public boolean isSourceUserIsRequestor()- Overrides:
isSourceUserIsRequestor
in classAuditDataset
- Returns:
- true if the source user is the requestor of the event
-
getSourceUserId
Client user ID (WS-Addressing <Reply-To> header).- Specified by:
getSourceUserId
in classAuditDataset
- Returns:
- the user ID of the transaction source
-
setSourceUserId
Client user ID (WS-Addressing <Reply-To> header). -
getDestinationUserId
Server user ID (SOAP endpoint)- Specified by:
getDestinationUserId
in classAuditDataset
- Returns:
- the user ID of the transaction destination
-
setDestinationUserId
Server user ID (SOAP endpoint) -
getRequestPayload
Request SOAP Body (XML) payload. -
getHumanUsers
IDs and real-world names of human users.- Specified by:
getHumanUsers
in classAuditDataset
- Returns:
- information about human user(s) participating in the transaction
-
getClientIpAddress
Client IP address. -
setClientIpAddress
Client IP address. -
getPurposesOfUse
Purposes of use, see ITI TF-2a section 3.20.7.8 and ITI TF-2b section 3.40.4.1.2.3. -
setPurposesOfUse
Purposes of use, see ITI TF-2a section 3.20.7.8 and ITI TF-2b section 3.40.4.1.2.3. -
getXuaPatientId
Patient ID from XUA token, see ITI TF-2b Section 3.40.4.1.2.2.1. -
setXuaPatientId
Patient ID from XUA token, see ITI TF-2b Section 3.40.4.1.2.2.1. -
setLocalAddress
Local address -
setRemoteAddress
Remote address -
getRemoteAddress
Remote address- Specified by:
getRemoteAddress
in classAuditDataset
- Returns:
- the remote address of the transaction
-
setSourceUserIsRequestor
public void setSourceUserIsRequestor(boolean sourceUserIsRequestor)
-