Class ResourceForecastAvailabilityBuilder
java.lang.Object
overit.geocallapp.wfm.planning.ux.forecastcapacity.forecast.resource.detail.ResourceForecastAvailabilityBuilder
- Direct Known Subclasses:
ResourceForecastComparatorBuilder
Builds and organizes the resource forecast data visualization
according to the desired view configuration (monthly, weekly, daily).
- Since:
- 15.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BOCache<BOForecastGroupingConstraint> protected List<BOForecastResourceDetail> protected List<BOForecastResource> protected ResourceForecastViewConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()protected CalendarViewColumnCell<Long> buildCell(Long workDuration, Long unavailability, Long unusableTime, Long maxOvertime, CalendarViewConfiguration.CalendarViewMode viewMode, Long resourceForecastHeaderId) Build the elements that will be put in the cells of the main tableprotected DBViewcreateEmptyDBV(int numberOfTimeRanges) Create an empty dbv with all the columns needed on the main result tablefindResourceConstraints(Long resourceId) findResourceSkills(Long resourceId, List<BOSkill> skills) Returns a list of skills assigned to resource identified by resourceId value taken in inputprotected StringgetTooltip(Long workDuration, Long unavailability, Long unusableTime, Long maxOvertime) protected voidinsertTotalRow(DBView dbvResult, int numberOfTimeRanges, Long[] totalWorkDurationInRange, Long[] totalUnavailabilityInRange, Long[] totalUnusableTimeInRange, Long[] totalMaxOvertimeInRange, Long resourceForecastHeaderId) voidsetForecastResourceDetails(List<BOForecastResourceDetail> forecastResourceDetails) voidsetForecastResources(List<BOForecastResource> forecastResources) voidsetResourceForecastViewConfiguration(ResourceForecastViewConfiguration viewConfiguration) void
-
Field Details
-
forecastResources
-
forecastResourceDetails
-
skills
-
viewConfiguration
-
constraintCache
-
-
Constructor Details
-
ResourceForecastAvailabilityBuilder
public ResourceForecastAvailabilityBuilder()
-
-
Method Details
-
setForecastResources
-
setForecastResourceDetails
-
setSkills
-
setResourceForecastViewConfiguration
public void setResourceForecastViewConfiguration(ResourceForecastViewConfiguration viewConfiguration) -
build
- Throws:
DAExceptionDAValidateException
-
insertTotalRow
-
createEmptyDBV
Create an empty dbv with all the columns needed on the main result table -
buildCell
protected CalendarViewColumnCell<Long> buildCell(Long workDuration, Long unavailability, Long unusableTime, Long maxOvertime, CalendarViewConfiguration.CalendarViewMode viewMode, Long resourceForecastHeaderId) Build the elements that will be put in the cells of the main table -
getTooltip
-
findResourceSkills
protected List<String> findResourceSkills(Long resourceId, List<BOSkill> skills) throws DAException, DAValidateException Returns a list of skills assigned to resource identified by resourceId value taken in input- Parameters:
resourceId-skills-- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
findResourceConstraints
protected List<String> findResourceConstraints(Long resourceId) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-