Class BTTimesheetClosureForce
java.lang.Object
overit.geocall.bl.BusinessTask<TimesheetClosureForceEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet<TimesheetClosureForceEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheetClosureForce
- All Implemented Interfaces:
Serializable,Tool
@Event(TimesheetClosureForceEvent.class)
public class BTTimesheetClosureForce
extends BTTimesheet<TimesheetClosureForceEvent>
Business task in order to force the timesheet closure.
When the
When the
TimesheetClosureForceEvent is launched the BT notices the call,
checks the timesheet end date and eventually changes the Timesheet state to BOTimesheetState.Values.VALIDATED.- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(TimesheetClosureForceEvent event, PoolKit poolKit) protected Collection<Long> forceClosure(PoolKit poolKit) protected Collection<Long> forceClosureByProfile(BOProfile profile, PoolKit poolKit) protected voidforceTimesheetClosure(Timesheet timesheet, PoolKit poolKit) protected PageResponse<BOProfile> loadProfiles(PoolKit poolKit) protected PageResponse<Timesheet> loadTimesheets(BOProfile profile, PoolKit poolKit) protected booleanMethods inherited from class overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet
body, checkTimesheetActivationMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTimesheetClosureForce
public BTTimesheetClosureForce()
-
-
Method Details
-
throwInactiveTimesheetException
protected boolean throwInactiveTimesheetException()- Overrides:
throwInactiveTimesheetExceptionin classBTTimesheet<TimesheetClosureForceEvent>
-
execute
protected void execute(TimesheetClosureForceEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classBTTimesheet<TimesheetClosureForceEvent>- Throws:
DAExceptionDAValidateException
-
forceClosure
- Throws:
DAValidateExceptionDAException
-
loadProfiles
protected PageResponse<BOProfile> loadProfiles(PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
forceClosureByProfile
protected Collection<Long> forceClosureByProfile(BOProfile profile, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadTimesheets
protected PageResponse<Timesheet> loadTimesheets(BOProfile profile, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
forceTimesheetClosure
protected void forceTimesheetClosure(Timesheet timesheet, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-