Class BTInterventionResourceValidate
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionResourceValidateEvent>
overit.geocallapp.wfm.core.bl.schedule.intervention.resource.BTInterventionResourceValidate
- All Implemented Interfaces:
Serializable,Tool
@Event(InterventionResourceValidateEvent.class)
public class BTInterventionResourceValidate
extends BusinessTask<InterventionResourceValidateEvent>
Business task in order to validate an intervention resource.
- Since:
- 18.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(InterventionResourceValidateEvent event, PoolKit poolKit) Validate an intervention resource.protected voidthrowValidationError(DBView errors) Throws a validation error with the specified errors.protected voidvalidateData(BOInterventionResource interventionResource) Check the consistency of data related to an intervention resource.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTInterventionResourceValidate
public BTInterventionResourceValidate()
-
-
Method Details
-
body
protected void body(InterventionResourceValidateEvent event, PoolKit poolKit) throws DAException, DAValidateException Validate an intervention resource.- Specified by:
bodyin classBusinessTask<InterventionResourceValidateEvent>- Parameters:
event- theInterventionResourceValidateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateData
Check the consistency of data related to an intervention resource.- Parameters:
interventionResource- theBOInterventionResource- Throws:
DAValidateException- If there is a validation error.
-
throwValidationError
Throws a validation error with the specified errors.- Parameters:
errors- the database view containing the validation errors- Throws:
DAValidateException- the exception to throw with the validation errors
-