Package de.pisa.psa.rst.dto
Klasse FindConfiguration
java.lang.Object
de.pisa.psa.rst.dto.FindConfiguration
Helper class for finding a REST API configuration for creating events
- Seit:
- 14.11.2024
- Autor:
- weiland
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected de.pisa.psc.srv.svc.LamUti.ConsumerE
<de.pisa.psc.srv.dto.PscDto> handler if more than one configuration was foundprotected de.pisa.psc.srv.svc.LamUti.RunnableE
handler if not configuration was foundprotected final de.pisa.psc.srv.glb.PscSsn
session -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
checkRecords
(de.pisa.psc.srv.dto.PscDto dto) check the found configuration recordsfind the configuration for CreateEvents based on a given filterList
<de.pisa.psa.ifc.PsaDtoDat> find the configuration data based on a given filterprotected de.pisa.psc.srv.dto.PscDto
find the configuration recordsprotected List
<CreateEvents.Config> mapRecordsToConfig
(de.pisa.psc.srv.dto.PscDto dto) map the configuration records to event configurationsprotected List
<de.pisa.psa.ifc.PsaDtoDat> mapRecordsToData
(de.pisa.psc.srv.dto.PscDto dto) map the configuration records to record datavoid
setAmbiguousConfigurationHandler
(de.pisa.psc.srv.svc.LamUti.ConsumerE<de.pisa.psc.srv.dto.PscDto> handler) Set the handler if more than one configuration was foundvoid
setNoConfigurationHandler
(de.pisa.psc.srv.svc.LamUti.RunnableE handler) Set the handler of no configuration was found
-
Felddetails
-
Ssn
protected final de.pisa.psc.srv.glb.PscSsn Ssnsession -
No_Configuration_Handler
protected de.pisa.psc.srv.svc.LamUti.RunnableE No_Configuration_Handlerhandler if not configuration was found -
Ambiguous_Configuration_Handler
protected de.pisa.psc.srv.svc.LamUti.ConsumerE<de.pisa.psc.srv.dto.PscDto> Ambiguous_Configuration_Handlerhandler if more than one configuration was found
-
-
Konstruktordetails
-
FindConfiguration
public FindConfiguration(de.pisa.psc.srv.glb.PscSsn ssn) Constructor- Parameter:
ssn
- session
-
-
Methodendetails
-
setNoConfigurationHandler
public void setNoConfigurationHandler(de.pisa.psc.srv.svc.LamUti.RunnableE handler) Set the handler of no configuration was found- Parameter:
handler
- handler
-
setAmbiguousConfigurationHandler
public void setAmbiguousConfigurationHandler(de.pisa.psc.srv.svc.LamUti.ConsumerE<de.pisa.psc.srv.dto.PscDto> handler) Set the handler if more than one configuration was found- Parameter:
handler
- handler which receives the configuration data object (PSA_RST_API_CNF)
-
findConfig
public List<CreateEvents.Config> findConfig(PsaRstApiCnfApp.ConfigurationFilter filter) throws Exception find the configuration for CreateEvents based on a given filter- Parameter:
filter
- filter to apply- Gibt zurück:
- list of configurations
- Löst aus:
Exception
-
findData
public List<de.pisa.psa.ifc.PsaDtoDat> findData(PsaRstApiCnfApp.ConfigurationFilter filter) throws Exception find the configuration data based on a given filter- Parameter:
filter
- filter to apply- Gibt zurück:
- list of records
- Löst aus:
Exception
-
findRecords
protected de.pisa.psc.srv.dto.PscDto findRecords(PsaRstApiCnfApp.ConfigurationFilter filter) throws Exception find the configuration records- Parameter:
filter
- filter to apply- Gibt zurück:
- configuration data object (PSA_RST_API_CNF)
- Löst aus:
Exception
-
checkRecords
check the found configuration records- Parameter:
dto
- configuration data object (PSA_RST_API_CNF)- Löst aus:
Exception
-
mapRecordsToData
protected List<de.pisa.psa.ifc.PsaDtoDat> mapRecordsToData(de.pisa.psc.srv.dto.PscDto dto) throws Exception map the configuration records to record data- Parameter:
dto
- configuration data object (PSA_RST_API_CNF)- Gibt zurück:
- list of record data
- Löst aus:
Exception
-
mapRecordsToConfig
protected List<CreateEvents.Config> mapRecordsToConfig(de.pisa.psc.srv.dto.PscDto dto) throws Exception map the configuration records to event configurations- Parameter:
dto
- configuration data object (PSA_RST_API_CNF)- Gibt zurück:
- list of event configurations
- Löst aus:
Exception
-