Class BTInterventionResourceReset
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionResourceResetEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<InterventionResourceResetEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<InterventionResourceResetEvent>
overit.geocallapp.wfm.execution.bl.intervention.resource.task.BTInterventionResourceReset
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(InterventionResourceResetEvent.class)
public class BTInterventionResourceReset
extends ValidPermissionBusinessTask<InterventionResourceResetEvent>
Business task in order to reset dates for
It is separated from the update because during that update are performed some checks that are not compatible with the rest of the dates of an intervention to a resource.
BOInterventionResources. It is separated from the update because during that update are performed some checks that are not compatible with the rest of the dates of an intervention to a resource.
- Since:
- 18.0
- See Also:
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(InterventionResourceResetEvent event, PoolKit poolKit) Executes the business task for resetting the dates of anBOInterventionResource.booleanDetermines whether the current state is valid for execution.protected voidnotifyInterventionResource(BOInterventionResource agendaResource, PoolKit poolKit) Sends an intervention resource notification.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
-
BTInterventionResourceReset
public BTInterventionResourceReset()
-
-
Method Details
-
execute
protected void execute(InterventionResourceResetEvent event, PoolKit poolKit) throws DAException, DAValidateException Executes the business task for resetting the dates of anBOInterventionResource.- Specified by:
executein classValidExecutionBusinessTask<InterventionResourceResetEvent>- Parameters:
event- theInterventionResourceResetEventcontaining the list of interventions to resetpoolKit- thePoolKitused to access the data- Throws:
DAException- if an unexpected error occurred during the data accessDAValidateException- if there is a validation error
-
notifyInterventionResource
protected void notifyInterventionResource(BOInterventionResource agendaResource, PoolKit poolKit) throws DAValidateException, DAException Sends an intervention resource notification.- Parameters:
agendaResource- TheBOInterventionResourceobject representing the agenda resource.poolKit- ThePoolKit- Throws:
DAValidateException- If there is a validation error.DAException- If an error occurs during the data access.
-
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
-