Class DataCollectionTemplateGanttDataBuilder
java.lang.Object
overit.geocallapp.wfm.core.ux.datacollection.template.gantt.DataCollectionTemplateGanttDataBuilder
- All Implemented Interfaces:
Serializable
The Class that defines the data collection template gantt data builder.
- Since:
- 12.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final LogChannelprotected DataCollectionTemplateGanttColorPaletteprotected TeacherDuty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(BODataCollectionTemplateHeader templateHeader) Build the gantt row basing on the data collection template.protected voidbuildBlocks(BODataCollectionTemplateHeader templateHeader, List<BODataCollectionTemplateStructureRelease> templateStructureReleases, List<DataCollectionTemplateGanttRow> rows) protected DataCollectionTemplateGanttRowbuildDataCollectionTemplateRow(BODataCollectionTemplateStructure templateStructure) buildGanttBlock(BODataCollectionTemplateHeader templateHeader, Date startDate, Date endDate, String color, BODataCollectionTemplateStructureRelease templateStructureRelease, DataCollectionTemplateGanttRow dataCollectionTemplateRow, boolean isCurrentRelease, Boolean lastBlock) protected voidbuildGenericBlock(BODataCollectionTemplateHeader templateHeader, BODataCollectionTemplateStructureRelease templateStructureRelease, Date endDate, boolean isCurrentRelease, List<DataCollectionTemplateGanttRow> rows, Boolean lastBlock) protected voidbuildRows(List<BODataCollectionTemplateStructure> dataTemplateStructures, List<BODataCollectionTemplateStructureRelease> templateStructureReleases, List<DataCollectionTemplateGanttRow> collector) buildTooltipBlock(BODataCollectionTemplateHeader templateHeader, DataCollectionTemplateGanttRow dataCollectionTemplateRow, BODataCollectionTemplateStructureRelease templateStructureRelease, boolean isCurrentRelease) protected voidbuildTree(List<DataCollectionTemplateGanttRow> rows, DataCollectionTemplateGanttRow fakeRow) Returns the teacher.protected List<BODataCollectionTemplateStructure> loadDataCollectionTemplateStructure(BODataCollectionTemplateHeader templateHeader) protected List<BODataCollectionTemplateStructureRelease> loadDataCollectionTemplateStructureReleases(BODataCollectionTemplateHeader templateHeader, List<BODataCollectionTemplateStructure> templateStructures) voidsetTeacher(Teacher teacher) Sets the teacher.
-
Field Details
-
palette
-
teacherDuty
-
LOG
-
-
Constructor Details
-
DataCollectionTemplateGanttDataBuilder
public DataCollectionTemplateGanttDataBuilder()
-
-
Method Details
-
setTeacher
Sets the teacher.- Parameters:
teacher- the teacher
-
getTeacher
Returns the teacher.- Returns:
- the teacher
-
build
public GanttRow<BODataCollectionTemplateStructure,BODataCollectionTemplateStructureRelease> build(BODataCollectionTemplateHeader templateHeader) Build the gantt row basing on the data collection template.- Parameters:
templateHeader- theBODataCollectionTemplateHeader- Returns:
- the gantt row
-
loadDataCollectionTemplateStructure
protected List<BODataCollectionTemplateStructure> loadDataCollectionTemplateStructure(BODataCollectionTemplateHeader templateHeader) -
loadDataCollectionTemplateStructureReleases
protected List<BODataCollectionTemplateStructureRelease> loadDataCollectionTemplateStructureReleases(BODataCollectionTemplateHeader templateHeader, List<BODataCollectionTemplateStructure> templateStructures) -
buildRows
protected void buildRows(List<BODataCollectionTemplateStructure> dataTemplateStructures, List<BODataCollectionTemplateStructureRelease> templateStructureReleases, List<DataCollectionTemplateGanttRow> collector) -
buildTree
protected void buildTree(List<DataCollectionTemplateGanttRow> rows, DataCollectionTemplateGanttRow fakeRow) -
buildBlocks
protected void buildBlocks(BODataCollectionTemplateHeader templateHeader, List<BODataCollectionTemplateStructureRelease> templateStructureReleases, List<DataCollectionTemplateGanttRow> rows) -
buildGenericBlock
protected void buildGenericBlock(BODataCollectionTemplateHeader templateHeader, BODataCollectionTemplateStructureRelease templateStructureRelease, Date endDate, boolean isCurrentRelease, List<DataCollectionTemplateGanttRow> rows, Boolean lastBlock) -
buildGanttBlock
protected GanttBlock<BODataCollectionTemplateStructureRelease> buildGanttBlock(BODataCollectionTemplateHeader templateHeader, Date startDate, Date endDate, String color, BODataCollectionTemplateStructureRelease templateStructureRelease, DataCollectionTemplateGanttRow dataCollectionTemplateRow, boolean isCurrentRelease, Boolean lastBlock) -
buildTooltipBlock
protected Map<String,String> buildTooltipBlock(BODataCollectionTemplateHeader templateHeader, DataCollectionTemplateGanttRow dataCollectionTemplateRow, BODataCollectionTemplateStructureRelease templateStructureRelease, boolean isCurrentRelease) -
buildDataCollectionTemplateRow
protected DataCollectionTemplateGanttRow buildDataCollectionTemplateRow(BODataCollectionTemplateStructure templateStructure)
-