Package de.pisa.psa.rst.dto
Class CreateEvents
java.lang.Object
de.pisa.psa.rst.dto.CreateEvents
A class for creating events
- Since:
- 15.11.2023
- Author:
- weiland
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
the REST configurationstatic class
the record datastatic class
the request data -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<CreateEvents.Config>
list with REST API configuration recordsprotected String
IAM email addressprotected String
languageprotected CreateEvents.Record
record dataprotected CreateEvents.Request
request dataprotected final de.pisa.psc.srv.glb.PscSsn
sessionprotected boolean
store the created event in the database?protected Boolean
overwrite the SYN flag?protected String
user -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfig
(CreateEvents.Config config) add a configuration to create the event forList<de.pisa.psa.ifc.PsaDtoDat>
create the eventsvoid
setIAMEmail
(String email) set the IAM email addressvoid
setLanguage
(String language) set the languagevoid
set the record datavoid
setRequest
(CreateEvents.Request request) set the request datavoid
setStore
(boolean store) store the create event in the database?void
setSynOverwrite
(Boolean syn) overwrite the SYN flag of the configuration?void
set the user
-
Field Details
-
Ssn
protected final de.pisa.psc.srv.glb.PscSsn Ssnsession -
User
user -
Language
language -
Syn_Overwrite
overwrite the SYN flag? -
Config_List
list with REST API configuration records -
Record
record data -
Request
request data -
Store
protected boolean Storestore the created event in the database? -
IAM_Email
IAM email address
-
-
Constructor Details
-
CreateEvents
public CreateEvents(de.pisa.psc.srv.glb.PscSsn ssn) Constructor- Parameters:
ssn
- session
-
-
Method Details
-
addConfig
add a configuration to create the event for- Parameters:
config
- configuration
-
setUser
set the user- Parameters:
user
- name
-
setLanguage
set the language- Parameters:
language
- identifier
-
setSynOverwrite
overwrite the SYN flag of the configuration?- Parameters:
syn
- state of the SYN flag
-
setStore
public void setStore(boolean store) store the create event in the database?- Parameters:
store
- true to store the event (default=true)
-
setRequest
set the request data- Parameters:
request
- data
-
setRecord
set the record data- Parameters:
rec
- data
-
setIAMEmail
set the IAM email address- Parameters:
email
- email address
-
createEvents
create the events- Returns:
- created events
- Throws:
Exception
-