Class BTDuplicateCalendar<I extends DuplicateCalendarInput>
java.lang.Object
overit.geocall.bl.BusinessTask<SimpleBusinessEvent<I,Void>>
overit.geocallapp.wfm.core.bl.calendar.task.BTDuplicateCalendar<I>
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTDuplicatePeriodCalendar,BTDuplicateResourceCalendar
public abstract class BTDuplicateCalendar<I extends DuplicateCalendarInput>
extends BusinessTask<SimpleBusinessEvent<I,Void>>
Base Business task responsible for handling the duplication of calendar events.
This class processes a specific event and executes the duplication logic using
This class processes a specific event and executes the duplication logic using
DATDuplicaCalendario. It ensures that the duplication process is completed and
any messages related to the operation are processed.- Since:
- 20.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SimpleBusinessEvent<I, Void> event, PoolKit pk) Executes the duplication process for the given event.protected HashGettercreateHashGetterFromInput(I input) Converts aDuplicateCalendarInputinstance into aHashGetter.protected voidprepareMessages(String endMessage, DBView dbvMessages, String errorMessage) Prepares and sends messages related to the duplication task.protected voidsendNotification(String message) Sends a notification message using the messaging task.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDuplicateCalendar
public BTDuplicateCalendar()
-
-
Method Details
-
body
protected void body(SimpleBusinessEvent<I, Void> event, PoolKit pk) throws DAException, DAValidateExceptionExecutes the duplication process for the given event.- Specified by:
bodyin classBusinessTask<SimpleBusinessEvent<I extends DuplicateCalendarInput,Void>> - Parameters:
event- The calendar duplication event to process.pk- ThePoolKitinstance for database operations.- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
createHashGetterFromInput
Converts aDuplicateCalendarInputinstance into aHashGetter.- Parameters:
input- TheDuplicateCalendarInputcontaining the data to convert.- Returns:
- A
HashGettercontaining the same data.
-
prepareMessages
Prepares and sends messages related to the duplication task.- Parameters:
endMessage- The final completion message.dbvMessages- The database view containing additional messages.errorMessage- Any error message that occurred during execution.
-
sendNotification
Sends a notification message using the messaging task.- Parameters:
message- The message to send.
-