Klasse PsaRstApiEvtHdlDat

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

public class PsaRstApiEvtHdlDat extends Object
REST API: event handler data
Seit:
10.07.2023
Autor:
weiland
  • Konstruktordetails

    • PsaRstApiEvtHdlDat

      public PsaRstApiEvtHdlDat(de.pisa.psa.ifc.PsaDtoDat config, de.pisa.psa.ifc.PsaDtoDat event)
      Constructor
      Parameter:
      config - configuration
      event - event
  • Methodendetails

    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Siehe auch:
    • getConfig

      public de.pisa.psa.ifc.PsaDtoDat getConfig()
      get the configuration
      Gibt zurück:
      configuration object
    • getEvent

      public de.pisa.psa.ifc.PsaDtoDat getEvent()
      get the event
      Gibt zurück:
      event object
    • getConfigGid

      public String getConfigGid() throws de.pisa.psc.srv.glb.PscExc
      get the PSC_GID of the config record
      Gibt zurück:
      GID
      Löst aus:
      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
      Gibt zurück:
      data object
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getSynchronous

      public boolean getSynchronous() throws de.pisa.psc.srv.glb.PscExc
      should the request be handled synchronously
      Gibt zurück:
      true if synchronously
      Löst aus:
      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
      Gibt zurück:
      class
      Löst aus:
      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
      Gibt zurück:
      GID
      Löst aus:
      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
      Gibt zurück:
      true if IAM is used
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getUrl

      public String getUrl() throws de.pisa.psc.srv.glb.PscExc
      get the URL from the configuration
      Gibt zurück:
      URL
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getPath

      public String getPath() throws de.pisa.psc.srv.glb.PscExc
      get the URL path from the configuration
      Gibt zurück:
      path
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getMethod

      public String getMethod() throws de.pisa.psc.srv.glb.PscExc
      get the request method from the configuration
      Gibt zurück:
      method (POST / PUT / GET / DELETE / PATCH)
      Löst aus:
      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
      Gibt zurück:
      email address
      Löst aus:
      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
      Gibt zurück:
      information
      Löst aus:
      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
      Gibt zurück:
      GID
      Löst aus:
      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
      Gibt zurück:
      GID
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getRecordData

      public String getRecordData() throws de.pisa.psc.srv.glb.PscExc
      get the data of the record
      Gibt zurück:
      data (JSON of PsaDtoDat)
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getRecordModifiedFields

      public String getRecordModifiedFields() throws de.pisa.psc.srv.glb.PscExc
      get the modified fields of the record
      Gibt zurück:
      old data (JSON of a map)
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getRequestPath

      public String getRequestPath() throws de.pisa.psc.srv.glb.PscExc
      get the path of the request
      Gibt zurück:
      path
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getRequestPathTokens

      public List<String> getRequestPathTokens() throws de.pisa.psc.srv.glb.PscExc
      split the request path into tokens
      Gibt zurück:
      a list with the path tokens
      Löst aus:
      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
      Gibt zurück:
      multi valued string map
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getRequestBody

      public String getRequestBody() throws de.pisa.psc.srv.glb.PscExc
      get the body of the request
      Gibt zurück:
      path
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • getRequestHeader

      public String getRequestHeader() throws de.pisa.psc.srv.glb.PscExc
      get the header of the request
      Gibt zurück:
      json of a multi valued map
      Löst aus:
      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
      Gibt zurück:
      multi valued map with strings to a list of strings
      Löst aus:
      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
      Gibt zurück:
      name
      Löst aus:
      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
      Gibt zurück:
      language
      Löst aus:
      de.pisa.psc.srv.glb.PscExc
    • setLanguage

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