Package pro.taskana.monitor.api.reports
Class Report<I extends QueryItem,H extends ColumnHeader<? super I>>
- java.lang.Object
-
- pro.taskana.monitor.api.reports.Report<I,H>
-
- Type Parameters:
I-QueryItemwhose value is relevant for this report.H-ColumnHeaderwhich can determine if an <Item> belongs into that column or not.
- Direct Known Subclasses:
ClassificationCategoryReport,ClassificationReport,ClassificationReport.DetailedClassificationReport,TaskCustomFieldValueReport,TaskStatusReport,TimestampReport,WorkbasketPriorityReport,WorkbasketReport
public abstract class Report<I extends QueryItem,H extends ColumnHeader<? super I>> extends Object
A Report represents an abstract table that consists ofRows and a list of <ColumnHeader>s. Since a report does not specify <Item> and <ColumnHeader> it does not contain functional logic. Due to readability implicit definition of functional logic is prevented and thus prevent initialization of an abstract Report. In order to create a specific Report a subclass has to be created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReport.Builder<I extends QueryItem,H extends ColumnHeader<? super I>>Builder forReport.
-
Field Summary
Fields Modifier and Type Field Description protected List<H>columnHeaders
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(I item)voidaddItem(I item, QueryItemPreprocessor<I> preprocessor)voidaddItems(List<? extends I> items, QueryItemPreprocessor<I> preprocessor)voidaddItems(List<I> items)voidaugmentDisplayNames(Map<String,String> displayMap)Row<I>createRow(String key)protected Row<I>createRow(String key, int columnSize)List<H>getColumnHeaders()Row<I>getRow(String key)String[]getRowDesc()Map<String,Row<I>>getRows()Row<I>getSumRow()introwSize()Set<String>rowTitles()StringtoString()
-
-
-
Field Detail
-
columnHeaders
protected List<H extends ColumnHeader<? super I>> columnHeaders
-
-
Method Detail
-
getRowDesc
public final String[] getRowDesc()
-
rowSize
public final int rowSize()
-
addItem
public final void addItem(I item)
-
addItem
public final void addItem(I item, QueryItemPreprocessor<I> preprocessor)
-
addItems
public final void addItems(List<? extends I> items, QueryItemPreprocessor<I> preprocessor)
-
-