Package de.pisa.psa.rst.hdl.in
Class PsaRstApiEvtHdlIn
java.lang.Object
de.pisa.psa.rst.hdl.PsaRstApiEvtHdl
de.pisa.psa.rst.hdl.in.PsaRstApiEvtHdlIn
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
PsaRstApiEvtHdlInDelete
,PsaRstApiEvtHdlInGet
,PsaRstApiEvtHdlInPatch
,PsaRstApiEvtHdlInPost
,PsaRstApiEvtHdlInPut
REST API: incoming event handler
- Since:
- 22.06.2023
- Author:
- weiland
-
Nested Class Summary
Nested classes/interfaces inherited from class de.pisa.psa.rst.hdl.PsaRstApiEvtHdl
PsaRstApiEvtHdl.EurekaHighlighting
-
Field Summary
Fields inherited from class de.pisa.psa.rst.hdl.PsaRstApiEvtHdl
Default_External_Language, Default_User, Force_IAM_User, Max_Records
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUsedFields
(Class<?> object_class) Get all data object fields that are mapped declared by the PsaRstApiMapFld or annotationprotected de.pisa.psc.srv.dto.PscDto
create a new data object and insert one recordprotected de.pisa.psc.srv.dto.PscDto
insertRecord
(Class<? extends PsaRstApiObjBas> object_class) insert a record in a data objectprotected <T extends PsaRstApiObjBas>
Tjson2object
(String json, Class<T> object_class) convert a JSON to an REST API objectprotected de.pisa.psc.srv.dto.PscDto
updateRecord
(Class<? extends PsaRstApiObjBas> object_class) update a record in a data objectMethods inherited from class de.pisa.psa.rst.hdl.PsaRstApiEvtHdl
addJsonMixin, buildResponse, cloneRecords, close, fetchContact, fetchEureka, fetchEurekaRecords, fetchIAMContact, fetchRecord, fetchRecord, fetchRecords, findEmail, getActiveEventHandler, getContinuation, getData, getEurekaDtoQuery, getEurekaHighlighting, getEurekaQueryField, getExternalCommunicationLanguage, getFetchRecordKeyField, getField, getIAMUser, getJsonIncludeEmpty, getQuery, getSsn, getSsnUsr, getSysSsn, handleEvent, isIAMUser, loadRecord, mapQuery, newDto, newObject, newPsaRstApiObjLis, noEventLogging, queryEureka, queryEurekaRecords, queryRecord, queryRecords, queryRecordsAddSort, queryRecordsSetQuery, setActiveEventHandler, setExternalLanguage, setJsonIncludeEmpty, toJson
-
Constructor Details
-
PsaRstApiEvtHdlIn
Constructor- Parameters:
data
- event data
-
-
Method Details
-
insertRecord
create a new data object and insert one record- Returns:
- the new data object with one row
- Throws:
Exception
-
insertRecord
protected de.pisa.psc.srv.dto.PscDto insertRecord(Class<? extends PsaRstApiObjBas> object_class) throws Exception insert a record in a data object- Parameters:
object_class
- class of the JSON object- Returns:
- data object with the new row
- Throws:
Exception
-
updateRecord
protected de.pisa.psc.srv.dto.PscDto updateRecord(Class<? extends PsaRstApiObjBas> object_class) throws Exception update a record in a data object- Parameters:
object_class
- class of the JSON object- Returns:
- data object with the new data
- Throws:
Exception
-
json2object
convert a JSON to an REST API object- Type Parameters:
T
- type of the object- Parameters:
json
- JSONobject_class
- class of the object- Returns:
- object
-
getUsedFields
Get all data object fields that are mapped declared by the PsaRstApiMapFld or annotation- Parameters:
object_class
- object class- Returns:
- list of field names
-