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,SvsAuditDataset,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
Constructors -
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.booleanvoidsetClientIpAddress(String clientIpAddress) Client IP address.voidsetDestinationUserId(String destinationUserId) Server user ID (SOAP endpoint)voidsetLocalAddress(String localAddress) Local addressvoidsetPurposesOfUse(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.voidsetRemoteAddress(String remoteAddress) Remote addressvoidsetRequestPayload(String requestPayload) Sets the request SOAP Body (XML) payload.voidsetRequestPayload(StringPayloadHolder payloadHolder) Sets the request SOAP Body (XML) payload.voidsetSourceUserId(String sourceUserId) Client user ID (WS-Addressing <Reply-To> header).voidsetSourceUserIsRequestor(boolean sourceUserIsRequestor) voidsetXuaPatientId(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, getW3cTraceContextId, isDestinationUserIsRequestor, isServerSide, setEventOutcomeDescription, setEventOutcomeIndicator, setSourceUserName, setW3cTraceContextId, 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:AuditDatasetReturns the local address. May fall back toAuditUtils.getLocalIPAddress()if not explicitly set- Specified by:
getLocalAddressin classAuditDataset- Returns:
- The machine name or IP address
-
isSourceUserIsRequestor
public boolean isSourceUserIsRequestor()- Overrides:
isSourceUserIsRequestorin classAuditDataset- Returns:
- true if the source user is the requestor of the event
-
getSourceUserId
Client user ID (WS-Addressing <Reply-To> header).- Specified by:
getSourceUserIdin 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:
getDestinationUserIdin 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:
getHumanUsersin 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:
getRemoteAddressin classAuditDataset- Returns:
- the remote address of the transaction
-
setSourceUserIsRequestor
public void setSourceUserIsRequestor(boolean sourceUserIsRequestor)
-