public class ClassificationReportBuilderImpl extends Object implements ClassificationReport.Builder
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
categories |
protected List<String> |
classificationIds |
protected List<H> |
columnHeaders |
protected Map<CustomField,String> |
customAttributeFilter |
protected List<String> |
domains |
protected List<String> |
excludedClassificationIds |
protected boolean |
inWorkingDays |
protected List<TaskState> |
states |
protected TaskanaEngineImpl |
taskanaEngine |
protected TaskMonitorMapper |
taskMonitorMapper |
protected List<String> |
workbasketIds |
| 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 |
buildReport() |
B |
categoryIn(List<String> categories)
Adds a list of categories to the builder.
|
B |
classificationIdIn(List<String> classificationIds)
Adds a list of classificationIds to the builder.
|
B |
customAttributeFilterIn(Map<CustomField,String> customAttributeFilter)
Adds a map of custom attributes and custom attribute values to the builder.
|
protected String |
determineDimension() |
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(CustomField customField)
Returns a list of all values of an entered custom field that are in the report.
|
List<String> |
listTaskIdsForSelectedItems(List<SelectedItem> selectedItems)
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, waitcategoryIn, classificationIdIn, customAttributeFilterIn, domainIn, excludedClassificationIdIn, inWorkingDays, listCustomAttributeValuesForCustomAttributeName, listTaskIdsForSelectedItems, stateIn, withColumnHeaders, workbasketIdInprotected TaskanaEngineImpl taskanaEngine
protected TaskMonitorMapper taskMonitorMapper
protected List<H extends TimeIntervalColumnHeader> columnHeaders
protected boolean inWorkingDays
protected Map<CustomField,String> customAttributeFilter
protected ClassificationReport.Builder _this()
protected String determineDimension()
public ClassificationReport buildReport() throws InvalidArgumentException, NotAuthorizedException
buildReport in interface ClassificationReport.BuilderbuildReport in interface Report.Builder<MonitorQueryItem,TimeIntervalColumnHeader>InvalidArgumentExceptionNotAuthorizedExceptionpublic 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
DetailedReportRows contain an additional list of
ReportRows 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 B withColumnHeaders(List<H> columnHeaders)
TimeIntervalReportBuilderTimeIntervalColumnHeaders to the builder to subdivide the report into clusters.withColumnHeaders in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>columnHeaders - the column headers the report should consist of.public B inWorkingDays()
TimeIntervalReportBuilderinWorkingDays in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>public B workbasketIdIn(List<String> workbasketIds)
TimeIntervalReportBuilderworkbasketIdIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>workbasketIds - a list of workbasket idspublic B stateIn(List<TaskState> states)
TimeIntervalReportBuilderstateIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>states - a list of statespublic B categoryIn(List<String> categories)
TimeIntervalReportBuildercategoryIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>categories - a list of categoriespublic B classificationIdIn(List<String> classificationIds)
TimeIntervalReportBuilderclassificationIdIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>classificationIds - a list of classificationIdspublic B excludedClassificationIdIn(List<String> excludedClassificationIds)
TimeIntervalReportBuilderexcludedClassificationIdIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>excludedClassificationIds - a list of excludedClassificationIdspublic B domainIn(List<String> domains)
TimeIntervalReportBuilderdomainIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>domains - a list of domainspublic B customAttributeFilterIn(Map<CustomField,String> customAttributeFilter)
TimeIntervalReportBuildercustomAttributeFilterIn in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>customAttributeFilter - a map of custom attributes and custom attribute valuepublic List<String> listCustomAttributeValuesForCustomAttributeName(CustomField customField) throws NotAuthorizedException
TimeIntervalReportBuilderlistCustomAttributeValuesForCustomAttributeName in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>customField - the customField whose values should appear in the listNotAuthorizedException - if the user has no rights to access the monitorpublic List<String> listTaskIdsForSelectedItems(List<SelectedItem> selectedItems) throws NotAuthorizedException, InvalidArgumentException
TimeIntervalReportBuilderlistTaskIdsForSelectedItems in interface TimeIntervalReportBuilder<B extends TimeIntervalReportBuilder,H extends TimeIntervalColumnHeader>selectedItems - a list of selectedItemsNotAuthorizedException - if the user has no rights to access the monitorInvalidArgumentException - if the column headers are not initializedCopyright © 2018. All rights reserved.