Class BTWarningsDelete
java.lang.Object
overit.geocall.bl.BusinessTask<WarningsDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarningsDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarningsDeleteEvent>
overit.geocallapp.wfm.core.bl.timesheet.warning.task.BTWarningsDelete
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarningsDeleteEvent.class)
public class BTWarningsDelete
extends ValidPermissionBusinessTask<WarningsDeleteEvent>
Business task in order to delete a set of
When the
BOWarning linked to the given timesheet id. When the
WarningsDeleteEvent is launched
the BT notices the call and delete a set of BOWarning basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerforms the delete query.protected voidexecute(WarningsDeleteEvent event, PoolKit pk) Deletes all the warnings linked to the given timesheet id.booleanDetermines whether the current state is valid for execution.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWarningsDelete
public BTWarningsDelete()
-
-
Method Details
-
execute
protected void execute(WarningsDeleteEvent event, PoolKit pk) throws DAException, DAValidateException Deletes all the warnings linked to the given timesheet id.- Specified by:
executein classValidExecutionBusinessTask<WarningsDeleteEvent>- Parameters:
event- the eventpk- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
delete
Performs the delete query.- Parameters:
timesheetId- the timesheet idpk- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-