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

public class WsAuditDataset extends AuditDataset
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:
  • 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

      public void setRequestPayload(String requestPayload)
      Sets the request SOAP Body (XML) payload.
      Parameters:
      requestPayload - SOAP Body (XML) payload.
    • setRequestPayload

      public void setRequestPayload(StringPayloadHolder payloadHolder)
      Sets the request SOAP Body (XML) payload.
      Parameters:
      payloadHolder - POJO containing SOAP Body (XML) payload.
    • getLocalAddress

      public String getLocalAddress()
      Description copied from class: AuditDataset
      Returns the local address. May fall back to AuditUtils.getLocalIPAddress() if not explicitly set
      Specified by:
      getLocalAddress in class AuditDataset
      Returns:
      The machine name or IP address
    • isSourceUserIsRequestor

      public boolean isSourceUserIsRequestor()
      Overrides:
      isSourceUserIsRequestor in class AuditDataset
      Returns:
      true if the source user is the requestor of the event
    • getSourceUserId

      public String getSourceUserId()
      Client user ID (WS-Addressing <Reply-To> header).
      Specified by:
      getSourceUserId in class AuditDataset
      Returns:
      the user ID of the transaction source
    • setSourceUserId

      public void setSourceUserId(String sourceUserId)
      Client user ID (WS-Addressing <Reply-To> header).
    • getDestinationUserId

      public String getDestinationUserId()
      Server user ID (SOAP endpoint)
      Specified by:
      getDestinationUserId in class AuditDataset
      Returns:
      the user ID of the transaction destination
    • setDestinationUserId

      public void setDestinationUserId(String destinationUserId)
      Server user ID (SOAP endpoint)
    • getRequestPayload

      public String getRequestPayload()
      Request SOAP Body (XML) payload.
    • getHumanUsers

      public List<AuditDataset.HumanUser> getHumanUsers()
      IDs and real-world names of human users.
      Specified by:
      getHumanUsers in class AuditDataset
      Returns:
      information about human user(s) participating in the transaction
    • getClientIpAddress

      public String getClientIpAddress()
      Client IP address.
    • setClientIpAddress

      public void setClientIpAddress(String clientIpAddress)
      Client IP address.
    • getPurposesOfUse

      public PurposeOfUse[] 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

      public void 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.
    • getXuaPatientId

      public String getXuaPatientId()
      Patient ID from XUA token, see ITI TF-2b Section 3.40.4.1.2.2.1.
    • setXuaPatientId

      public void setXuaPatientId(String xuaPatientId)
      Patient ID from XUA token, see ITI TF-2b Section 3.40.4.1.2.2.1.
    • setLocalAddress

      public void setLocalAddress(String localAddress)
      Local address
    • setRemoteAddress

      public void setRemoteAddress(String remoteAddress)
      Remote address
    • getRemoteAddress

      public String getRemoteAddress()
      Remote address
      Specified by:
      getRemoteAddress in class AuditDataset
      Returns:
      the remote address of the transaction
    • setSourceUserIsRequestor

      public void setSourceUserIsRequestor(boolean sourceUserIsRequestor)