Klasse FindConfiguration

java.lang.Object
de.pisa.psa.rst.dto.FindConfiguration

public class FindConfiguration extends Object
Helper class for finding a REST API configuration for creating events
Seit:
14.11.2024
Autor:
weiland
  • Felddetails

    • Ssn

      protected final de.pisa.psc.srv.glb.PscSsn Ssn
      session
    • No_Configuration_Handler

      protected de.pisa.psc.srv.svc.LamUti.RunnableE No_Configuration_Handler
      handler if not configuration was found
    • Ambiguous_Configuration_Handler

      protected de.pisa.psc.srv.svc.LamUti.ConsumerE<de.pisa.psc.srv.dto.PscDto> Ambiguous_Configuration_Handler
      handler 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

      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

      protected void checkRecords(de.pisa.psc.srv.dto.PscDto dto) throws Exception
      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