Class BTTimesheetSearch
java.lang.Object
overit.geocall.bl.BusinessTask<TimesheetSearchEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet<TimesheetSearchEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheetSearch
- All Implemented Interfaces:
Serializable,Tool
@Event(TimesheetSearchEvent.class)
public class BTTimesheetSearch
extends BTTimesheet<TimesheetSearchEvent>
Business task in order to search a
When the
Timesheet. When the
TimesheetSearchEvent is launched
the BT notices the call and searches the Timesheet basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(TimesheetSearchEvent event, PoolKit poolKit) Writes the resultsPageResponseof the searched time sheets into the event journal.protected List<BOEventEntity> loadEventEntities(Long timesheetId, PoolKit poolKit) Loads all the event entities associated to the timesheet's tasks.Searches for the list ofBOTaskrelated to the given time sheet idloadWarnings(Long id, PoolKit poolKit) Loads all the warning associated to the timesheet's tasks and shifts.protected PageResponse<BOTimesheetHeader> searchTimesheets(Page page, TimesheetSearchFilter searchFilter, PoolKit pk) Searches for the needed time sheets using the informations contained into thePageand theTimesheetSearchFilter, i.e. the information about the results pagination and the filters needed for the specified query.Methods inherited from class overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet
body, checkTimesheetActivation, throwInactiveTimesheetExceptionMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTimesheetSearch
public BTTimesheetSearch()
-
-
Method Details
-
execute
protected void execute(TimesheetSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the resultsPageResponseof the searched time sheets into the event journal.- Specified by:
executein classBTTimesheet<TimesheetSearchEvent>- Parameters:
event- theTimesheetSearchEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadTasks
protected List<BOTask> loadTasks(Long timesheetId, PoolKit poolKit) throws DAException, DAValidateException Searches for the list ofBOTaskrelated to the given time sheet id- Parameters:
timesheetId- the given time sheet idpoolKit- thePoolKit- Returns:
- a list of time sheet task elements of type BOTask
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-
searchTimesheets
protected PageResponse<BOTimesheetHeader> searchTimesheets(Page page, TimesheetSearchFilter searchFilter, PoolKit pk) throws DAException, DAValidateException Searches for the needed time sheets using the informations contained into thePageand theTimesheetSearchFilter, i.e. the information about the results pagination and the filters needed for the specified query.- Parameters:
page- the pagesearchFilter- the search filterpk- thePoolKit- Returns:
- the page response
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadWarnings
protected List<BOWarning> loadWarnings(Long id, PoolKit poolKit) throws DAValidateException, DAException Loads all the warning associated to the timesheet's tasks and shifts.- Parameters:
id- the id of the time sheetpoolKit- thePoolKit- Returns:
- a list of
BOWarning - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadEventEntities
protected List<BOEventEntity> loadEventEntities(Long timesheetId, PoolKit poolKit) throws DAException, DAValidateException Loads all the event entities associated to the timesheet's tasks.- Parameters:
timesheetId- the id of the time sheetpoolKit- thePoolKit- Returns:
- a list of
BOEventEntity - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-