public class TaskCustomFieldValueReportBuilderImpl extends Object implements TaskCustomFieldValueReport.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 |
|---|
TaskCustomFieldValueReportBuilderImpl(InternalTaskanaEngine taskanaEngine,
MonitorMapper monitorMapper,
TaskCustomField taskCustomField) |
| Modifier and Type | Method and Description |
|---|---|
protected TaskCustomFieldValueReport.Builder |
_this() |
TaskCustomFieldValueReport |
buildReport() |
TaskCustomFieldValueReport |
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 TaskCustomFieldValueReportBuilderImpl(InternalTaskanaEngine taskanaEngine, MonitorMapper monitorMapper, TaskCustomField taskCustomField)
public TaskCustomFieldValueReport buildReport() throws NotAuthorizedException, InvalidArgumentException
buildReport in interface Report.Builder<MonitorQueryItem,TimeIntervalColumnHeader>buildReport in interface TaskCustomFieldValueReport.BuilderNotAuthorizedExceptionInvalidArgumentExceptionpublic TaskCustomFieldValueReport buildReport(TaskTimestamp timestamp) throws InvalidArgumentException, NotAuthorizedException
TimeIntervalReportBuilderbuildReport in interface TaskCustomFieldValueReport.BuilderbuildReport in interface TimeIntervalReportBuilder<TaskCustomFieldValueReport.Builder,MonitorQueryItem,TimeIntervalColumnHeader>timestamp - The task timestamp of interestInvalidArgumentException - when an error occursNotAuthorizedException - if the user has no rights to access the monitorprotected TaskCustomFieldValueReport.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.