public class ClassificationReportBuilderImpl extends Object implements ClassificationReport.Builder
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
classificationCategory |
protected List<String> |
classificationIds |
protected List<H> |
columnHeaders |
protected WorkingDaysToDaysConverter |
converter |
protected Map<TaskCustomField,String> |
customAttributeFilter |
protected List<String> |
domains |
protected List<String> |
excludedClassificationIds |
protected boolean |
inWorkingDays |
protected MonitorMapper |
monitorMapper |
protected List<TaskState> |
states |
protected InternalTaskanaEngine |
taskanaEngine |
protected List<String> |
workbasketIds |
| Constructor and Description |
|---|
ClassificationReportBuilderImpl(InternalTaskanaEngine taskanaEngine,
MonitorMapper monitorMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected ClassificationReport.Builder |
_this() |
ClassificationReport.DetailedClassificationReport |
buildDetailedReport()
Returns a
ClassificationReport.DetailedClassificationReport containing all tasks after applying the
filters. |
ClassificationReport.DetailedClassificationReport |
buildDetailedReport(TaskTimestamp timestamp) |
ClassificationReport |
buildReport() |
ClassificationReport |
buildReport(TaskTimestamp timestamp)
Builds the given report.
|
B |
classificationCategoryIn(List<String> classificationCategory)
Adds a list of classificationCategories to the builder.
|
B |
classificationIdIn(List<String> classificationIds)
Adds a list of classificationIds to the builder.
|
B |
customAttributeFilterIn(Map<TaskCustomField,String> customAttributeFilter)
Adds a map of custom attributes and custom attribute values to the builder.
|
protected String |
determineGroupedBy() |
B |
domainIn(List<String> domains)
Adds a list of domains to the builder.
|
B |
excludedClassificationIdIn(List<String> excludedClassificationIds)
Adds a list of excludedClassificationIds to the builder.
|
B |
inWorkingDays()
If this filter is used, the days of the report are counted in working days.
|
List<String> |
listCustomAttributeValuesForCustomAttributeName(TaskCustomField taskCustomField)
Returns a list of all values of an entered custom field that are in the report.
|
List<String> |
listTaskIdsForSelectedItems(List<SelectedItem> selectedItems,
TaskTimestamp timestamp)
Returns a list of all taskIds of the report that are in the list of selected items.
|
B |
stateIn(List<TaskState> states)
Adds a list of states to the builder.
|
B |
withColumnHeaders(List<H> columnHeaders)
Adds a list
TimeIntervalColumnHeaders to the builder to subdivide the report into
clusters. |
B |
workbasketIdIn(List<String> workbasketIds)
Adds a list of workbasket ids to the builder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclassificationCategoryIn, classificationIdIn, customAttributeFilterIn, domainIn, excludedClassificationIdIn, inWorkingDays, listCustomAttributeValuesForCustomAttributeName, listTaskIdsForSelectedItems, stateIn, withColumnHeaders, workbasketIdInprotected InternalTaskanaEngine taskanaEngine
protected MonitorMapper monitorMapper
protected List<H extends TimeIntervalColumnHeader> columnHeaders
protected boolean inWorkingDays
protected Map<TaskCustomField,String> customAttributeFilter
protected WorkingDaysToDaysConverter converter
public ClassificationReportBuilderImpl(InternalTaskanaEngine taskanaEngine, MonitorMapper monitorMapper)
public ClassificationReport buildReport() throws NotAuthorizedException, InvalidArgumentException
buildReport in interface ClassificationReport.BuilderbuildReport in interface Report.Builder<MonitorQueryItem,TimeIntervalColumnHeader>NotAuthorizedExceptionInvalidArgumentExceptionpublic ClassificationReport buildReport(TaskTimestamp timestamp) throws InvalidArgumentException, NotAuthorizedException
TimeIntervalReportBuilderbuildReport in interface ClassificationReport.BuilderbuildReport in interface TimeIntervalReportBuilder<ClassificationReport.Builder,MonitorQueryItem,TimeIntervalColumnHeader>timestamp - The task timestamp of interestInvalidArgumentException - when an error occursNotAuthorizedException - if the user has no rights to access the monitorpublic ClassificationReport.DetailedClassificationReport buildDetailedReport() throws InvalidArgumentException, NotAuthorizedException
ClassificationReport.BuilderClassificationReport.DetailedClassificationReport containing all tasks after applying the
filters. If the column headers are set the report is subdivided into clusters. Its FoldableRows contain an additional list of Rows for the classifications of the
attachments of the tasks.buildDetailedReport in interface ClassificationReport.BuilderInvalidArgumentException - if the column headers are not initializedNotAuthorizedException - if the user has no rights to access the monitorpublic ClassificationReport.DetailedClassificationReport buildDetailedReport(TaskTimestamp timestamp) throws InvalidArgumentException, NotAuthorizedException
buildDetailedReport in interface ClassificationReport.BuilderInvalidArgumentExceptionNotAuthorizedExceptionprotected ClassificationReport.Builder _this()
protected String determineGroupedBy()
public B withColumnHeaders(List<H> columnHeaders)
TimeIntervalReportBuilderTimeIntervalColumnHeaders to the builder to subdivide the report into
clusters.withColumnHeaders in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>columnHeaders - the column headers the report should consist of.public B inWorkingDays()
TimeIntervalReportBuilderinWorkingDays in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>public B workbasketIdIn(List<String> workbasketIds)
TimeIntervalReportBuilderworkbasketIdIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>workbasketIds - a list of workbasket idspublic B stateIn(List<TaskState> states)
TimeIntervalReportBuilderstateIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>states - a list of statespublic B classificationCategoryIn(List<String> classificationCategory)
TimeIntervalReportBuilderclassificationCategoryIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>classificationCategory - a list of classificationCategoriespublic B classificationIdIn(List<String> classificationIds)
TimeIntervalReportBuilderclassificationIdIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>classificationIds - a list of classificationIdspublic B excludedClassificationIdIn(List<String> excludedClassificationIds)
TimeIntervalReportBuilderexcludedClassificationIdIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>excludedClassificationIds - a list of excludedClassificationIdspublic B domainIn(List<String> domains)
TimeIntervalReportBuilderdomainIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>domains - a list of domainspublic B customAttributeFilterIn(Map<TaskCustomField,String> customAttributeFilter)
TimeIntervalReportBuildercustomAttributeFilterIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>customAttributeFilter - a map of custom attributes and custom attribute valuepublic List<String> listTaskIdsForSelectedItems(List<SelectedItem> selectedItems, TaskTimestamp timestamp) throws NotAuthorizedException, InvalidArgumentException
TimeIntervalReportBuilderlistTaskIdsForSelectedItems in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>selectedItems - a list of selectedItemstimestamp - the task timestamp of interestNotAuthorizedException - if the user has no rights to access the monitorInvalidArgumentException - if the column headers are not initializedpublic List<String> listCustomAttributeValuesForCustomAttributeName(TaskCustomField taskCustomField) throws NotAuthorizedException
TimeIntervalReportBuilderlistCustomAttributeValuesForCustomAttributeName in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder<B,I,H>,I extends AgeQueryItem,H extends TimeIntervalColumnHeader>taskCustomField - the customField whose values should appear in the listNotAuthorizedException - if the user has no rights to access the monitorCopyright © 2020. All rights reserved.