50
50
import de .symeda .sormas .api .externalmessage .processing .ExternalMessageMapper ;
51
51
import de .symeda .sormas .api .externalmessage .processing .ExternalMessageProcessingFacade ;
52
52
import de .symeda .sormas .api .externalmessage .processing .PickOrCreateEventResult ;
53
- import de .symeda .sormas .api .externalmessage .processing .labmessage .AbstractDoctorDeclarationMessageProcessingFlow ;
53
+ import de .symeda .sormas .api .externalmessage .processing .doctordeclaration .AbstractDoctorDeclarationMessageProcessingFlow ;
54
54
import de .symeda .sormas .api .feature .FeatureType ;
55
55
import de .symeda .sormas .api .i18n .Captions ;
56
56
import de .symeda .sormas .api .i18n .I18nProperties ;
@@ -85,9 +85,12 @@ public class DoctorDeclarationMessageProcessingFlow extends AbstractDoctorDeclar
85
85
/**
86
86
* Constructor for initializing the processing flow with the required dependencies.
87
87
*
88
- * @param externalMessage The external message to be processed.
89
- * @param mapper The mapper for mapping external message data.
90
- * @param processingFacade The facade for handling external message processing operations.
88
+ * @param externalMessage
89
+ * The external message to be processed.
90
+ * @param mapper
91
+ * The mapper for mapping external message data.
92
+ * @param processingFacade
93
+ * The facade for handling external message processing operations.
91
94
*/
92
95
public DoctorDeclarationMessageProcessingFlow (
93
96
ExternalMessageDto externalMessage ,
@@ -111,7 +114,8 @@ protected CompletionStage<Boolean> handleMissingDisease() {
111
114
/**
112
115
* Handles related forwarded messages for the external message.
113
116
*
114
- * @return A {@link CompletionStage} that resolves to a boolean indicating whether the related forwarded messages were handled successfully.
117
+ * @return A {@link CompletionStage} that resolves to a boolean indicating whether the related forwarded messages were handled
118
+ * successfully.
115
119
*/
116
120
@ Override
117
121
protected CompletionStage <Boolean > handleRelatedForwardedMessages () {
@@ -122,8 +126,10 @@ protected CompletionStage<Boolean> handleRelatedForwardedMessages() {
122
126
/**
123
127
* Displays a window to pick or create a person associated with the external message.
124
128
*
125
- * @param person The person to be picked or created.
126
- * @param callback The callback to handle the result of the operation.
129
+ * @param person
130
+ * The person to be picked or created.
131
+ * @param callback
132
+ * The callback to handle the result of the operation.
127
133
*/
128
134
@ Override
129
135
protected void handlePickOrCreatePerson (PersonDto person , HandlerCallback <EntitySelection <PersonDto >> callback ) {
@@ -134,11 +140,16 @@ protected void handlePickOrCreatePerson(PersonDto person, HandlerCallback<Entity
134
140
/**
135
141
* Handles the selection or creation of an entry (case, contact, or event participant) based on the external message.
136
142
*
137
- * @param similarCases A list of similar cases.
138
- * @param similarContacts A list of similar contacts.
139
- * @param similarEventParticipants A list of similar event participants.
140
- * @param externalMessage The external message being processed.
141
- * @param callback The callback to handle the result of the operation.
143
+ * @param similarCases
144
+ * A list of similar cases.
145
+ * @param similarContacts
146
+ * A list of similar contacts.
147
+ * @param similarEventParticipants
148
+ * A list of similar event participants.
149
+ * @param externalMessage
150
+ * The external message being processed.
151
+ * @param callback
152
+ * The callback to handle the result of the operation.
142
153
*/
143
154
@ Override
144
155
protected void handlePickOrCreateEntry (
@@ -147,12 +158,15 @@ protected void handlePickOrCreateEntry(
147
158
List <SimilarEventParticipantDto > similarEventParticipants ,
148
159
ExternalMessageDto externalMessage ,
149
160
HandlerCallback <PickOrCreateEntryResult > callback ) {
150
- LOGGER .debug ("Handling pick or create entry for externalMessage: {}, similarCases: {}, similarContacts: {}, similarEventParticipants: {}" ,
151
- externalMessage , similarCases , similarContacts , similarEventParticipants );
161
+ LOGGER .debug (
162
+ "Handling pick or create entry for externalMessage: {}, similarCases: {}, similarContacts: {}, similarEventParticipants: {}" ,
163
+ externalMessage ,
164
+ similarCases ,
165
+ similarContacts ,
166
+ similarEventParticipants );
152
167
153
168
// Build options for selecting or creating an entry (case, contact, or event participant)
154
- EntrySelectionField .Options .Builder optionsBuilder = new EntrySelectionField .Options .Builder ()
155
- .addSelectCase (similarCases ) // Add similar cases to the options
169
+ EntrySelectionField .Options .Builder optionsBuilder = new EntrySelectionField .Options .Builder ().addSelectCase (similarCases ) // Add similar cases to the options
156
170
.addSelectContact (similarContacts ) // Add similar contacts to the options
157
171
.addSelectEventParticipant (similarEventParticipants ) // Add similar event participants to the options
158
172
.addCreateEntry (EntrySelectionField .OptionType .CREATE_CASE , FeatureType .CASE_SURVEILANCE , UserRight .CASE_CREATE , UserRight .CASE_EDIT ) // Option to create a new case
@@ -179,10 +193,14 @@ protected void handlePickOrCreateEntry(
179
193
/**
180
194
* Handles the creation of a case based on the external message.
181
195
*
182
- * @param caze The case data to be created.
183
- * @param person The person associated with the case.
184
- * @param externalMessage The external message being processed.
185
- * @param callback The callback to handle the result of the operation.
196
+ * @param caze
197
+ * The case data to be created.
198
+ * @param person
199
+ * The person associated with the case.
200
+ * @param externalMessage
201
+ * The external message being processed.
202
+ * @param callback
203
+ * The callback to handle the result of the operation.
186
204
*/
187
205
@ Override
188
206
protected void handleCreateCase (CaseDataDto caze , PersonDto person , ExternalMessageDto externalMessage , HandlerCallback <CaseDataDto > callback ) {
@@ -224,10 +242,14 @@ public void cancel() {
224
242
/**
225
243
* Handles the creation of a contact based on the external message.
226
244
*
227
- * @param contact The contact data to be created.
228
- * @param person The person associated with the contact.
229
- * @param externalMessage The external message being processed.
230
- * @param callback The callback to handle the result of the operation.
245
+ * @param contact
246
+ * The contact data to be created.
247
+ * @param person
248
+ * The person associated with the contact.
249
+ * @param externalMessage
250
+ * The external message being processed.
251
+ * @param callback
252
+ * The callback to handle the result of the operation.
231
253
*/
232
254
@ Override
233
255
protected void handleCreateContact (
@@ -260,8 +282,10 @@ protected void handleCreateContact(
260
282
/**
261
283
* Displays a window to pick or create an event associated with the external message.
262
284
*
263
- * @param externalMessage The external message being processed.
264
- * @param callback The callback to handle the result of the operation.
285
+ * @param externalMessage
286
+ * The external message being processed.
287
+ * @param callback
288
+ * The callback to handle the result of the operation.
265
289
*/
266
290
@ Override
267
291
protected void handlePickOrCreateEvent (ExternalMessageDto externalMessage , HandlerCallback <PickOrCreateEventResult > callback ) {
@@ -302,8 +326,10 @@ protected void handlePickOrCreateEvent(ExternalMessageDto externalMessage, Handl
302
326
/**
303
327
* Handles the creation of an event based on the external message.
304
328
*
305
- * @param event The event data to be created.
306
- * @param callback The callback to handle the result of the operation.
329
+ * @param event
330
+ * The event data to be created.
331
+ * @param callback
332
+ * The callback to handle the result of the operation.
307
333
*/
308
334
@ Override
309
335
protected void handleCreateEvent (EventDto event , HandlerCallback <EventDto > callback ) {
@@ -341,18 +367,26 @@ protected void handleCreateEvent(EventDto event, HandlerCallback<EventDto> callb
341
367
/**
342
368
* Handles the creation of an event participant based on the external message.
343
369
*
344
- * @param eventParticipant The event participant data to be created.
345
- * @param event The event associated with the participant.
346
- * @param externalMessage The external message being processed.
347
- * @param callback The callback to handle the result of the operation.
370
+ * @param eventParticipant
371
+ * The event participant data to be created.
372
+ * @param event
373
+ * The event associated with the participant.
374
+ * @param externalMessage
375
+ * The external message being processed.
376
+ * @param callback
377
+ * The callback to handle the result of the operation.
348
378
*/
349
379
@ Override
350
380
protected void handleCreateEventParticipant (
351
381
EventParticipantDto eventParticipant ,
352
382
EventDto event ,
353
383
ExternalMessageDto externalMessage ,
354
384
HandlerCallback <EventParticipantDto > callback ) {
355
- LOGGER .debug ("Handling create event participant for eventParticipant: {}, event: {}, externalMessage: {}" , eventParticipant , event , externalMessage );
385
+ LOGGER .debug (
386
+ "Handling create event participant for eventParticipant: {}, event: {}, externalMessage: {}" ,
387
+ eventParticipant ,
388
+ event ,
389
+ externalMessage );
356
390
357
391
Window window = VaadinUiUtil .createPopupWindow ();
358
392
@@ -382,7 +416,8 @@ protected void handleCreateEventParticipant(
382
416
/**
383
417
* Confirms whether to pick an existing event participant.
384
418
*
385
- * @return A {@link CompletionStage} that resolves to a boolean indicating whether the user chose to continue with the existing participant.
419
+ * @return A {@link CompletionStage} that resolves to a boolean indicating whether the user chose to continue with the existing
420
+ * participant.
386
421
*/
387
422
@ Override
388
423
protected CompletionStage <Boolean > confirmPickExistingEventParticipant () {
0 commit comments