Package de.pisa.psa.rst.hdl
Klasse PsaRstApiEvtHdlDat
java.lang.Object
de.pisa.psa.rst.hdl.PsaRstApiEvtHdlDat
REST API: event handler data
- Seit:
- 10.07.2023
- Autor:
- weiland
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPsaRstApiEvtHdlDat
(de.pisa.psa.ifc.PsaDtoDat config, de.pisa.psa.ifc.PsaDtoDat event) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungde.pisa.psa.ifc.PsaDtoDat
get the configurationget the PSC_GID of the config recordgetDto()
get the data object that is configured for this requestde.pisa.psa.ifc.PsaDtoDat
getEvent()
get the eventget the PSC_GID of the event recordboolean
getIAM()
get if IAM should be used for authenticationget the email address of the IAM userde.pisa.psa.com.dxhub.iam.UserInfo
get the IAM user informationget the class that implements the event handlerreturn the PSC_GID of the access keyget the language to use for this requestget the request method from the configurationgetPath()
get the URL path from the configurationget the data of the recordget the PSC_GID of the record that was provided by the requestget the modified fields of the recordget the body of the requestget the header of the requestget the header of the request a mapget the query parameter of the requestget the path of the requestsplit the request path into tokensboolean
should the request be handled synchronouslygetUrl()
get the URL from the configurationgetUser()
get the user name to use for this requestvoid
setLanguage
(String language) Override the event languagetoString()
-
Konstruktordetails
-
PsaRstApiEvtHdlDat
public PsaRstApiEvtHdlDat(de.pisa.psa.ifc.PsaDtoDat config, de.pisa.psa.ifc.PsaDtoDat event) Constructor- Parameter:
config
- configurationevent
- event
-
-
Methodendetails
-
toString
-
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
get the PSC_GID of the config record- Gibt zurück:
- GID
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getDto
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.PscExcshould the request be handled synchronously- Gibt zurück:
- true if synchronously
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getImplementation
get the class that implements the event handler- Gibt zurück:
- class
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getKeyGid
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.PscExcget 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
get the URL from the configuration- Gibt zurück:
- URL
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getPath
get the URL path from the configuration- Gibt zurück:
- path
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getMethod
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
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.PscExcget the IAM user information- Gibt zurück:
- information
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getEventGid
get the PSC_GID of the event record- Gibt zurück:
- GID
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getRecordGid
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
get the data of the record- Gibt zurück:
- data (JSON of PsaDtoDat)
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getRecordModifiedFields
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
get the path of the request- Gibt zurück:
- path
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getRequestPathTokens
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.PscExcget the query parameter of the request- Gibt zurück:
- multi valued string map
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getRequestBody
get the body of the request- Gibt zurück:
- path
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getRequestHeader
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.JsonProcessingExceptionget 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
get the user name to use for this request- Gibt zurück:
- name
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
getLanguage
get the language to use for this request- Gibt zurück:
- language
- Löst aus:
de.pisa.psc.srv.glb.PscExc
-
setLanguage
Override the event language- Parameter:
language
- new language
-