Class PsaRstApiEvtHdlDat

java.lang.Object
de.pisa.psa.rst.hdl.PsaRstApiEvtHdlDat

public class PsaRstApiEvtHdlDat extends Object
REST API: event handler data
Since:
10.07.2023
Author:
weiland
  • Constructor Details

    • PsaRstApiEvtHdlDat

      public PsaRstApiEvtHdlDat(de.pisa.psa.ifc.PsaDtoDat config, de.pisa.psa.ifc.PsaDtoDat event)
      Constructor
      Parameters:
      config - configuration
      event - event
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • getConfig

      public de.pisa.psa.ifc.PsaDtoDat getConfig()
      get the configuration
      Returns:
      configuration object
    • getEvent

      public de.pisa.psa.ifc.PsaDtoDat getEvent()
      get the event
      Returns:
      event object
    • getConfigGid

      public String getConfigGid() throws de.pisa.psc.srv.glb.PscExc
      get the PSC_GID of the config record
      Returns:
      GID
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getDto

      public String getDto() throws de.pisa.psc.srv.glb.PscExc
      get the data object that is configured for this request
      Returns:
      data object
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getSynchronous

      public boolean getSynchronous() throws de.pisa.psc.srv.glb.PscExc
      should the request be handled synchronously
      Returns:
      true if synchronously
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getImplementation

      public String getImplementation() throws de.pisa.psc.srv.glb.PscExc
      get the class that implements the event handler
      Returns:
      class
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getKeyGid

      public String getKeyGid() throws de.pisa.psc.srv.glb.PscExc
      return the PSC_GID of the access key
      Returns:
      GID
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getIAM

      public boolean getIAM() throws de.pisa.psc.srv.glb.PscExc
      get if IAM should be used for authentication
      Returns:
      true if IAM is used
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getUrl

      public String getUrl() throws de.pisa.psc.srv.glb.PscExc
      get the URL from the configuration
      Returns:
      URL
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getPath

      public String getPath() throws de.pisa.psc.srv.glb.PscExc
      get the URL path from the configuration
      Returns:
      path
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getMethod

      public String getMethod() throws de.pisa.psc.srv.glb.PscExc
      get the request method from the configuration
      Returns:
      method (POST / PUT / GET / DELETE / PATCH)
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getIAMEmail

      public String getIAMEmail() throws de.pisa.psc.srv.glb.PscExc
      get the email address of the IAM user
      Returns:
      email address
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getIAMUserInfo

      public de.pisa.psa.com.dxhub.iam.UserInfo getIAMUserInfo() throws de.pisa.psc.srv.glb.PscExc
      get the IAM user information
      Returns:
      always null because the data 8.2 model has not the necessary fields
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getEventGid

      public String getEventGid() throws de.pisa.psc.srv.glb.PscExc
      get the PSC_GID of the event record
      Returns:
      GID
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getRecordGid

      public String getRecordGid() throws de.pisa.psc.srv.glb.PscExc
      get the PSC_GID of the record that was provided by the request
      Returns:
      GID
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getRecordData

      public String getRecordData() throws de.pisa.psc.srv.glb.PscExc
      get the data of the record
      Returns:
      data (JSON of PsaDtoDat)
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getRecordModifiedFields

      public String getRecordModifiedFields() throws de.pisa.psc.srv.glb.PscExc
      get the modified fields of the record
      Returns:
      old data (JSON of a map)
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getRequestPath

      public String getRequestPath() throws de.pisa.psc.srv.glb.PscExc
      get the path of the request
      Returns:
      path
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getRequestPathTokens

      public List<String> getRequestPathTokens() throws de.pisa.psc.srv.glb.PscExc
      split the request path into tokens
      Returns:
      a list with the path tokens
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getRequestParameter

      public de.pisa.psc.srv.svc.MapToList<String,String> getRequestParameter() throws de.pisa.psc.srv.glb.PscExc
      get the query parameter of the request
      Returns:
      multi valued string map
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getRequestBody

      public String getRequestBody() throws de.pisa.psc.srv.glb.PscExc
      get the body of the request
      Returns:
      path
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getRequestHeader

      public String getRequestHeader() throws de.pisa.psc.srv.glb.PscExc
      get the header of the request
      Returns:
      json of a multi valued map
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getRequestHeaderMap

      public HeaderMap getRequestHeaderMap() throws de.pisa.psc.srv.glb.PscExc, com.fasterxml.jackson.core.JsonProcessingException
      get the header of the request a map
      Returns:
      multi valued map with strings to a list of strings
      Throws:
      de.pisa.psc.srv.glb.PscExc
      com.fasterxml.jackson.core.JsonProcessingException
    • getUser

      public String getUser() throws de.pisa.psc.srv.glb.PscExc
      get the user name to use for this request
      Returns:
      name
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • getLanguage

      public String getLanguage() throws de.pisa.psc.srv.glb.PscExc
      get the language to use for this request
      Returns:
      language
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • setLanguage

      public void setLanguage(String language)
      Override the event language
      Parameters:
      language - new language