Package de.pisa.psa.rst.uti
Class PsaRstApiSem
java.lang.Object
de.pisa.psa.rst.uti.PsaRstApiSem
REST API: semaphores for controlling the behavior
- Since:
- 11.08.2023
- Author:
- weiland
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isSemExecuteAsync
(de.pisa.psc.srv.dto.PscDto dto, int row) check if the semaphore for execute the event asynchronously is setstatic boolean
isSemIgnoreEvent
(de.pisa.psc.srv.dto.PscDto dto, int row) check if the semaphore for ignoring the current event is setstatic de.pisa.psa.dto.PsaSemHdl.Ctl
setSemExecuteAsync
(de.pisa.psc.srv.dto.PscDto dto) set the semaphore to execute the event asynchronously for the data objectstatic de.pisa.psa.dto.PsaSemHdl.Ctl
setSemExecuteAsync
(de.pisa.psc.srv.dto.PscDto dto, int row) set the semaphore to execute the event asynchronously for the recordstatic de.pisa.psa.dto.PsaSemHdl.Ctl
setSemExecuteAsync
(de.pisa.psc.srv.glb.PscSsn ssn) set the semaphore to execute the event asynchronously for the sessionstatic de.pisa.psa.dto.PsaSemHdl.Ctl
setSemIgnoreEvent
(de.pisa.psc.srv.dto.PscDto dto) set the semaphore to ignore event processing for the data objectstatic de.pisa.psa.dto.PsaSemHdl.Ctl
setSemIgnoreEvent
(de.pisa.psc.srv.dto.PscDto dto, int row) set the semaphore to ignore event processing for the recordstatic de.pisa.psa.dto.PsaSemHdl.Ctl
setSemIgnoreEvent
(de.pisa.psc.srv.glb.PscSsn ssn) set the semaphore to ignore event processing for the session
-
Method Details
-
setSemIgnoreEvent
public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemIgnoreEvent(de.pisa.psc.srv.glb.PscSsn ssn) set the semaphore to ignore event processing for the session- Parameters:
ssn
- session- Returns:
- semaphore handler
-
setSemIgnoreEvent
public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemIgnoreEvent(de.pisa.psc.srv.dto.PscDto dto) set the semaphore to ignore event processing for the data object- Parameters:
dto
- data object- Returns:
- semaphore handler
-
setSemIgnoreEvent
public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemIgnoreEvent(de.pisa.psc.srv.dto.PscDto dto, int row) throws de.pisa.psc.srv.glb.PscExc set the semaphore to ignore event processing for the record- Parameters:
dto
- data objectrow
- row of the record- Returns:
- semaphore handler
- Throws:
de.pisa.psc.srv.glb.PscExc
-
isSemIgnoreEvent
public static boolean isSemIgnoreEvent(de.pisa.psc.srv.dto.PscDto dto, int row) throws de.pisa.psc.srv.glb.PscExc check if the semaphore for ignoring the current event is set- Parameters:
dto
- data objectrow
- row- Returns:
- true if the semaphore is set
- Throws:
de.pisa.psc.srv.glb.PscExc
-
setSemExecuteAsync
public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemExecuteAsync(de.pisa.psc.srv.glb.PscSsn ssn) set the semaphore to execute the event asynchronously for the session- Parameters:
ssn
- session- Returns:
- semaphore handler
-
setSemExecuteAsync
public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemExecuteAsync(de.pisa.psc.srv.dto.PscDto dto) set the semaphore to execute the event asynchronously for the data object- Parameters:
dto
- data object- Returns:
- semaphore handler
-
setSemExecuteAsync
public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemExecuteAsync(de.pisa.psc.srv.dto.PscDto dto, int row) throws de.pisa.psc.srv.glb.PscExc set the semaphore to execute the event asynchronously for the record- Parameters:
dto
- data objectrow
- row of the record- Returns:
- semaphore handler
- Throws:
de.pisa.psc.srv.glb.PscExc
-
isSemExecuteAsync
public static boolean isSemExecuteAsync(de.pisa.psc.srv.dto.PscDto dto, int row) throws de.pisa.psc.srv.glb.PscExc check if the semaphore for execute the event asynchronously is set- Parameters:
dto
- data objectrow
- row- Returns:
- true if the semaphore is set
- Throws:
de.pisa.psc.srv.glb.PscExc
-