Class ForecastResourceDetailPreviewBuilder
java.lang.Object
overit.geocallapp.wfm.planning.ux.forecastcapacity.forecast.resource.detail.edit.ForecastResourceDetailPreviewBuilder
Builds and organizes the preview of the forecast resource workshifts
according to the desired view configuration (monthly, weekly, daily).
- Since:
- 15.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildPreview(HashGetter hgFormValues) Build the preview based on the entered form values without aggregation (DAILY view mode)voidbuildPreviewByEdit(HashGetter hgFormValues) Build the preview based on the edit form values without aggregation (DAILY view mode)voidbuildPreviewByTemplate(HashGetter hgFormValues) Build the preview based on the input template without aggregation (DAILY view mode)changeViewMode(Long viewMode) Returns a list ofForecastResourceDetailBuildPreviewdepending on the input view modebooleancheckPeriodConsistencyValid(ForecastResourceDetailBuildPreview aggregatedPeriod) Return a list ofForecastResourceDetailBuildPreviewpreviously createdprotected StringgetLabelPeriod(Date startDate, Date endDate) Returns the teacher.voidsetForecastResourceDetailBuildPreview(List<ForecastResourceDetailBuildPreview> forecastResourceDetailBuildPreview) Set a list ofForecastResourceDetailBuildPreviewvoidsetTeacher(Teacher teacher) Sets the teacher.
-
Field Details
-
VIEW_MODE_WEEK
-
VIEW_MODE_MONTH
-
-
Constructor Details
-
ForecastResourceDetailPreviewBuilder
public ForecastResourceDetailPreviewBuilder()
-
-
Method Details
-
getForecastResourceDetailBuildPreview
Return a list ofForecastResourceDetailBuildPreviewpreviously created- Returns:
- a list of
ForecastResourceDetailBuildPreview
-
setForecastResourceDetailBuildPreview
public void setForecastResourceDetailBuildPreview(List<ForecastResourceDetailBuildPreview> forecastResourceDetailBuildPreview) Set a list ofForecastResourceDetailBuildPreview- Parameters:
forecastResourceDetailBuildPreview- the list ofForecastResourceDetailBuildPreview
-
getTeacher
Returns the teacher.- Returns:
- the teacher
-
setTeacher
Sets the teacher.- Parameters:
teacher- the teacher
-
buildPreview
Build the preview based on the entered form values without aggregation (DAILY view mode)- Parameters:
hgFormValues- the input values- Throws:
DAExceptionDAValidateException
-
buildPreviewByTemplate
Build the preview based on the input template without aggregation (DAILY view mode)- Parameters:
hgFormValues- the input values- Throws:
DAExceptionDAValidateException
-
buildPreviewByEdit
Build the preview based on the edit form values without aggregation (DAILY view mode)- Parameters:
hgFormValues- the input values- Throws:
DAExceptionDAValidateException
-
changeViewMode
Returns a list ofForecastResourceDetailBuildPreviewdepending on the input view mode- Parameters:
viewMode- the view mode (WEEKLY, MONTHLY)- Returns:
- the list of
ForecastResourceDetailBuildPreview
-
getLabelPeriod
-
checkPeriodConsistencyValid
-