Klasse PsaRstApiEvtIfcApp

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

public class PsaRstApiEvtIfcApp extends Object
Handler class for the event interface
Seit:
07.08.2023
Autor:
weiland
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    protected final de.pisa.psc.srv.dto.PscDto
    the data object
    protected final de.pisa.psc.srv.glb.PscSsn
    session
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    PsaRstApiEvtIfcApp(de.pisa.psc.srv.dto.PscDto dto)
    PsaRstApiEvtIfcApp constructor
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    protected boolean
    checkConfigIgnore(de.pisa.psc.srv.dto.PscDto config_dto, int config_row)
    check if a configuration should be ignored because of an ignore flag
    protected List<de.pisa.psa.ifc.PsaDtoDat>
    createEvents(List<de.pisa.psa.ifc.PsaDtoDat> cnf_dto_lis, String gid, String data, String mod_fld, Boolean syn_overwrite)
    create the events
    void
    delRecEvt(int row)
    trigger an event on a deletion of a record (delRec)
    de.pisa.psc.srv.dto.PscDto
    get the data object
    protected boolean
    ignoreRecord(int row)
    ignore a record for the event generation?
    protected List<de.pisa.psa.ifc.PsaDtoDat>
    load the configurations
    void
    processEvent(int row, Predicate<String> method_filter)
    create and process the event
    void
    putRecEvt(int row)
    trigger an event on a modification of a record (putRec)

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • Dto

      protected final de.pisa.psc.srv.dto.PscDto Dto
      the data object
    • Ssn

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

    • PsaRstApiEvtIfcApp

      public PsaRstApiEvtIfcApp(de.pisa.psc.srv.dto.PscDto dto)
      PsaRstApiEvtIfcApp constructor
      Parameter:
      dto - data object
  • Methodendetails

    • putRecEvt

      public void putRecEvt(int row) throws Exception
      trigger an event on a modification of a record (putRec)
      Parameter:
      row - the modified row
      Löst aus:
      Exception
    • delRecEvt

      public void delRecEvt(int row) throws Exception
      trigger an event on a deletion of a record (delRec)
      Parameter:
      row - the deleted row
      Löst aus:
      Exception
    • getDto

      public de.pisa.psc.srv.dto.PscDto getDto()
      get the data object
      Gibt zurück:
      data object
    • processEvent

      public void processEvent(int row, Predicate<String> method_filter) throws Exception
      create and process the event
      Parameter:
      row - record to process
      method_filter - filter for the methods in the configuration
      Löst aus:
      Exception
    • ignoreRecord

      protected boolean ignoreRecord(int row) throws Exception
      ignore a record for the event generation?
      Parameter:
      row - row to check
      Gibt zurück:
      true if the record should be ignored
      Löst aus:
      Exception
    • loadConfigurations

      protected List<de.pisa.psa.ifc.PsaDtoDat> loadConfigurations(Predicate<String> method_filter) throws Exception
      load the configurations
      Parameter:
      method_filter - filter for the methods in the configuration
      Gibt zurück:
      the associated configurations
      Löst aus:
      Exception
    • checkConfigIgnore

      protected boolean checkConfigIgnore(de.pisa.psc.srv.dto.PscDto config_dto, int config_row) throws Exception
      check if a configuration should be ignored because of an ignore flag
      Parameter:
      config_dto - config dto
      config_row - config row
      Gibt zurück:
      true if configuration should be ignored
      Löst aus:
      Exception
    • createEvents

      protected List<de.pisa.psa.ifc.PsaDtoDat> createEvents(List<de.pisa.psa.ifc.PsaDtoDat> cnf_dto_lis, String gid, String data, String mod_fld, Boolean syn_overwrite) throws Exception
      create the events
      Parameter:
      cnf_dto_lis - configurations
      gid - PSC_GID of the record
      data - JSON of the record
      mod_fld - JSON map of modified fields
      syn_overwrite - overwrite the SYN flag of the configuration
      Gibt zurück:
      created events
      Löst aus:
      Exception