Class BTSheetInstanceUnlockPushNotification
java.lang.Object
overit.geocall.bl.BusinessTask<SheetInstanceUnlockPushNotificationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<SheetInstanceUnlockPushNotificationEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<SheetInstanceUnlockPushNotificationEvent>
overit.geocallapp.wfm.core.bl.datacollection.pushnotification.BTSheetInstanceUnlockPushNotification
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(SheetInstanceUnlockPushNotificationEvent.class)
public class BTSheetInstanceUnlockPushNotification
extends BTDataCollection<SheetInstanceUnlockPushNotificationEvent>
Business task for sending push notifications when data collection sheets are unlocked.
- Since:
- 22.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(SheetInstanceUnlockPushNotificationEvent event, PoolKit poolKit) Executes the push notification sending process.protected overit.geocallapp.replicator.basic.base.pushnotifications.PushNotificationgetPushNotification(SheetInstanceUnlockPushNotification input, BONotifiableUser notifiableUser, PoolKit poolKit) Sends the push notification to the target user.protected BONotifiableUserloadNotifiableUser(Long user, PoolKit poolKit) Loads theBONotifiableUserrelated to the given id.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTSheetInstanceUnlockPushNotification
public BTSheetInstanceUnlockPushNotification()
-
-
Method Details
-
execute
protected void execute(SheetInstanceUnlockPushNotificationEvent event, PoolKit poolKit) throws DAException, DAValidateException Executes the push notification sending process.- Specified by:
executein classValidExecutionBusinessTask<SheetInstanceUnlockPushNotificationEvent>- Parameters:
event- the notification event containing the sheet ID and user IDpoolKit- the database connection pool kit for database operations- Throws:
DAException- if a database error occurs during notification insertionDAValidateException- if the input or user ID is null
-
loadNotifiableUser
protected BONotifiableUser loadNotifiableUser(Long user, PoolKit poolKit) throws DAValidateException, DAException Loads theBONotifiableUserrelated to the given id.- Parameters:
user- theBOUseridpoolKit- thePoolKit- Returns:
- the loaded
BONotifiableUser - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getPushNotification
protected overit.geocallapp.replicator.basic.base.pushnotifications.PushNotification getPushNotification(SheetInstanceUnlockPushNotification input, BONotifiableUser notifiableUser, PoolKit poolKit) throws DAValidateException, DAException Sends the push notification to the target user.- Parameters:
input- the notification input containing sheet ID and user IDpoolKit- the database connection pool kit for database operations- Throws:
DAValidateException- if the notification data fails validationDAException- if a database error occurs during insertion
-