Class BTCapacityPlanningScenarioCoverageReport<I>
java.lang.Object
overit.geocall.bl.BusinessTask<I>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<I>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<I>
overit.geocallapp.wfm.forecastcapacity.bl.capacityplanning.scenario.task.BTCapacityPlanningScenarioCoverageReport<I>
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTCapacityPlanningScenarioCoverageActivityReport,BTCapacityPlanningScenarioCoverageResourceReport,BTCapacityPlanningScenarioCoverageTimeReport
public abstract class BTCapacityPlanningScenarioCoverageReport<I>
extends ValidPermissionBusinessTask<I>
Generic business task for coverage report.
- Since:
- 19.0
- See Also:
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<BOForecastActivity> filterActivitiesBySkills(BOCapacityPlanningScenario scenario, List<BOForecastActivity> activities, Collection<Long> skills, PoolKit poolKit) Filter the activities by skills.protected List<BOForecastResource> filterResourcesBySkills(BOCapacityPlanningScenario scenario, List<BOForecastResource> resources, Collection<Long> skills, PoolKit poolKit) Filter the resources by skills.getDistributedWorkload(List<BOForecastActivityDetail> forecastActivitiesDetails, DateTimeRange interval, TimeGroupingType groupingType, PoolKit poolKit) protected List<BOForecastActivityDetail> getForecastActivitiesDetails(Long activityForecastHeader, Collection<Long> activityIds, DateTimeRange interval, PoolKit poolKit) protected List<overit.geocall.wfm.planning.bl.workloaddistribution.Timeframe> getSourceTimeframes(List<BOForecastActivityDetail> details) booleanDetermines whether the current state is valid for execution.protected List<BOForecastActivity> loadActivities(BOCapacityPlanningScenario scenario, Collection<Long> activityIds, Collection<Long> skills, PoolKit poolKit) Loads the activities of a capacity planning scenario.protected BOCapacityPlanningScenarioloadCapacityPlanningScenario(Long capacityPlanningScenario, PoolKit poolKit) Load the capacity planning scenario.protected List<BOForecastResource> loadResources(BOCapacityPlanningScenario scenario, Collection<Long> resourceIds, Collection<Long> skills, PoolKit poolKit) Loads the resources of the given capacity planning scenario.protected voidpopulateAvailableCapacityOutput(CapacityPlanningScenarioCoverageReportOutput output, List<Map<String, Object>> availableCapacityFiltered) Populate the output with the data from the available capacity.protected voidpopulateCommittedCapacityOutput(CapacityPlanningScenarioCoverageReportOutput output, List<Map<String, Object>> committedCapacityFiltered) Populate the output with the data from the committed capacity.protected voidpopulateDemandOutput(CapacityPlanningScenarioCoverageReportOutput output, List<Map<String, Object>> demandFiltered) Populate the output with the data from the demand.searchSkills(List<Long> skills, PoolKit poolKit) Searches for skills based on the provided skill ids.timeframeToMap(overit.geocall.wfm.planning.bl.workloaddistribution.Timeframe timeframe, DateTimeRange interval) 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, execute, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
MONTH
- See Also:
-
FROM
- See Also:
-
TO
- See Also:
-
-
Constructor Details
-
BTCapacityPlanningScenarioCoverageReport
public BTCapacityPlanningScenarioCoverageReport()
-
-
Method Details
-
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
-
filterResourcesBySkills
protected List<BOForecastResource> filterResourcesBySkills(BOCapacityPlanningScenario scenario, List<BOForecastResource> resources, Collection<Long> skills, PoolKit poolKit) throws DAException, DAValidateException Filter the resources by skills.- Parameters:
scenario- theBOCapacityPlanningScenarioresources- the list ofBOForecastResourceskills- the skillspoolKit- thePoolKit- Returns:
- the filtered
BOForecastResourcelist - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
filterActivitiesBySkills
protected List<BOForecastActivity> filterActivitiesBySkills(BOCapacityPlanningScenario scenario, List<BOForecastActivity> activities, Collection<Long> skills, PoolKit poolKit) throws DAException, DAValidateException Filter the activities by skills.- Parameters:
scenario- theBOCapacityPlanningScenarioactivities- the list ofBOForecastActivityskills- the skillspoolKit- thePoolKit- Returns:
- the filtered
BOForecastActivitylist - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadActivities
protected List<BOForecastActivity> loadActivities(BOCapacityPlanningScenario scenario, Collection<Long> activityIds, Collection<Long> skills, PoolKit poolKit) throws DAException, DAValidateException Loads the activities of a capacity planning scenario.- Parameters:
scenario- the loadedBOCapacityPlanningScenarioobjectactivityIds- the list of activity idsskills- the list of skillspoolKit- thePoolKit- Returns:
- the list of
BOForecastActivity - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadResources
protected List<BOForecastResource> loadResources(BOCapacityPlanningScenario scenario, Collection<Long> resourceIds, Collection<Long> skills, PoolKit poolKit) throws DAException, DAValidateException Loads the resources of the given capacity planning scenario.- Parameters:
scenario- theBOCapacityPlanningScenarioresourceIds- the resource idsskills- the skillspoolKit- thePoolKit- Returns:
- the list of
BOForecastResource - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadCapacityPlanningScenario
protected BOCapacityPlanningScenario loadCapacityPlanningScenario(Long capacityPlanningScenario, PoolKit poolKit) throws DAException, DAValidateException Load the capacity planning scenario.- Parameters:
capacityPlanningScenario- the id of theBOCapacityPlanningScenariopoolKit- thePoolKit- Returns:
- the
BOCapacityPlanningScenario - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
searchSkills
protected List<BOSkill> searchSkills(List<Long> skills, PoolKit poolKit) throws DAValidateException, DAException Searches for skills based on the provided skill ids.- Parameters:
skills- List of skill IDs to search forpoolKit- ThePoolKitinstance used for searching- Returns:
- list of
BOSkillobjects matching the provided skill IDs - Throws:
DAValidateException- If there is a validation errorDAException- If there is an error accessing the data
-
populateDemandOutput
protected void populateDemandOutput(CapacityPlanningScenarioCoverageReportOutput output, List<Map<String, Object>> demandFiltered) Populate the output with the data from the demand.- Parameters:
output- theCapacityPlanningScenarioCoverageReportOutputdemandFiltered- the demand filtered by the period
-
populateCommittedCapacityOutput
protected void populateCommittedCapacityOutput(CapacityPlanningScenarioCoverageReportOutput output, List<Map<String, Object>> committedCapacityFiltered) Populate the output with the data from the committed capacity.- Parameters:
output- theCapacityPlanningScenarioCoverageReportOutputcommittedCapacityFiltered- the committed capacity filtered by the period
-
populateAvailableCapacityOutput
protected void populateAvailableCapacityOutput(CapacityPlanningScenarioCoverageReportOutput output, List<Map<String, Object>> availableCapacityFiltered) Populate the output with the data from the available capacity.- Parameters:
output- theCapacityPlanningScenarioCoverageReportOutputavailableCapacityFiltered- the available capacity filtered by the period
-
getSourceTimeframes
protected List<overit.geocall.wfm.planning.bl.workloaddistribution.Timeframe> getSourceTimeframes(List<BOForecastActivityDetail> details) -
timeframeToMap
protected Map<String,Object> timeframeToMap(overit.geocall.wfm.planning.bl.workloaddistribution.Timeframe timeframe, DateTimeRange interval) -
getForecastActivitiesDetails
protected List<BOForecastActivityDetail> getForecastActivitiesDetails(Long activityForecastHeader, Collection<Long> activityIds, DateTimeRange interval, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getDistributedWorkload
protected List<Map<String,Object>> getDistributedWorkload(List<BOForecastActivityDetail> forecastActivitiesDetails, DateTimeRange interval, TimeGroupingType groupingType, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-