Package pro.taskana.monitor.api.reports
Interface WorkbasketPriorityReport.Builder
-
- All Superinterfaces:
Report.Builder<PriorityQueryItem,PriorityColumnHeader>
- All Known Implementing Classes:
WorkbasketPriorityReportBuilderImpl
- Enclosing class:
- WorkbasketPriorityReport
public static interface WorkbasketPriorityReport.Builder extends Report.Builder<PriorityQueryItem,PriorityColumnHeader>
Builder for WorkbasketPriorityReport.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WorkbasketPriorityReportbuildReport()WorkbasketPriorityReport.BuilderclassificationCategoryIn(List<String> classificationCategory)Adds a list of classificationCategories to the builder.WorkbasketPriorityReport.BuilderclassificationIdIn(List<String> classificationIds)Adds a list of classificationIds to the builder.WorkbasketPriorityReport.BuildercustomAttributeIn(TaskCustomField customField, String... strings)Adds the values of a certain TaskCustomField for exact matching to the builder.WorkbasketPriorityReport.BuildercustomAttributeLike(TaskCustomField customField, String... strings)Adds the values of a certain TaskCustomField for pattern matching to the builder.WorkbasketPriorityReport.BuildercustomAttributeNotIn(TaskCustomField customField, String... strings)Excludes the values of a certain TaskCustomField to the builder.WorkbasketPriorityReport.BuilderdomainIn(List<String> domains)Adds a list of domains to the builder.WorkbasketPriorityReport.BuilderexcludedClassificationIdIn(List<String> excludedClassificationIds)Adds a list of excludedClassificationIds to the builder.WorkbasketPriorityReport.BuilderinWorkingDays()If this filter is used, the days of the report are counted in working days.WorkbasketPriorityReport.BuilderstateIn(List<TaskState> states)Adds a list of states to the builder.WorkbasketPriorityReport.BuilderwithColumnHeaders(List<PriorityColumnHeader> columnHeaders)Adds a list of PriorityColumnHeaders to the builder to subdivide the report into clusters.WorkbasketPriorityReport.BuilderworkbasketIdIn(List<String> workbasketIds)Adds a list of workbasket ids to the builder.WorkbasketPriorityReport.BuilderworkbasketTypeIn(WorkbasketType... workbasketTypes)Adds WorkbasketTypes to the builder.
-
-
-
Method Detail
-
buildReport
WorkbasketPriorityReport buildReport() throws NotAuthorizedException
- Specified by:
buildReportin interfaceReport.Builder<PriorityQueryItem,PriorityColumnHeader>- Throws:
NotAuthorizedException
-
workbasketTypeIn
WorkbasketPriorityReport.Builder workbasketTypeIn(WorkbasketType... workbasketTypes)
Adds WorkbasketTypes to the builder. The created report will only contain Tasks from Workbaskets with one of the provided types.- Parameters:
workbasketTypes- the workbasketTypes to include in the report- Returns:
- the builder
-
workbasketIdIn
WorkbasketPriorityReport.Builder workbasketIdIn(List<String> workbasketIds)
Adds a list of workbasket ids to the builder. The created report contains only tasks with a workbasket id in this list.- Parameters:
workbasketIds- a list of workbasket ids- Returns:
- the TimeIntervalReportBuilder
-
stateIn
WorkbasketPriorityReport.Builder stateIn(List<TaskState> states)
Adds a list of states to the builder. The created report contains only tasks with a state in this list.- Parameters:
states- a list of states- Returns:
- the TimeIntervalReportBuilder
-
classificationCategoryIn
WorkbasketPriorityReport.Builder classificationCategoryIn(List<String> classificationCategory)
Adds a list of classificationCategories to the builder. The created report contains only tasks with a category in this list.- Parameters:
classificationCategory- a list of classificationCategories- Returns:
- the TimeIntervalReportBuilder
-
classificationIdIn
WorkbasketPriorityReport.Builder classificationIdIn(List<String> classificationIds)
Adds a list of classificationIds to the builder. The created report contains only tasks with a classificationId in this list.- Parameters:
classificationIds- a list of classificationIds- Returns:
- the TimeIntervalReportBuilder
-
excludedClassificationIdIn
WorkbasketPriorityReport.Builder excludedClassificationIdIn(List<String> excludedClassificationIds)
Adds a list of excludedClassificationIds to the builder. The created report contains only tasks with a classificationId NOT in this list.- Parameters:
excludedClassificationIds- a list of excludedClassificationIds- Returns:
- the TimeIntervalReportBuilder
-
domainIn
WorkbasketPriorityReport.Builder domainIn(List<String> domains)
Adds a list of domains to the builder. The created report contains only tasks with a domain in this list.- Parameters:
domains- a list of domains- Returns:
- the TimeIntervalReportBuilder
-
customAttributeIn
WorkbasketPriorityReport.Builder customAttributeIn(TaskCustomField customField, String... strings) throws InvalidArgumentException
Adds the values of a certain TaskCustomField for exact matching to the builder.The created report contains only tasks with a custom attribute value exactly matching one of the items in the list.
- Parameters:
customField- the specified TaskCustomFieldstrings- the values the specified custom attribute should match- Returns:
- the modified TimeIntervalReportBuilder
- Throws:
InvalidArgumentException- if filter values are not given
-
customAttributeNotIn
WorkbasketPriorityReport.Builder customAttributeNotIn(TaskCustomField customField, String... strings) throws InvalidArgumentException
Excludes the values of a certain TaskCustomField to the builder.The created report contains only tasks with a custom attribute value not matching one of the items in the list.
- Parameters:
customField- the specified TaskCustomFieldstrings- the values the specified custom attribute should not match- Returns:
- the modified TimeIntervalReportBuilder
- Throws:
InvalidArgumentException- if filter values are not given
-
customAttributeLike
WorkbasketPriorityReport.Builder customAttributeLike(TaskCustomField customField, String... strings) throws InvalidArgumentException
Adds the values of a certain TaskCustomField for pattern matching to the builder.The created report contains only tasks with a custom attribute value pattern-matching one of the items in the list. They will be compared in SQL with the LIKE operator. You may use a wildcard like % to specify the pattern. If you specify multiple arguments they are combined with the OR keyword.
- Parameters:
customField- the specified TaskCustomFieldstrings- the values the specified custom attribute should match- Returns:
- the modified TimeIntervalReportBuilder
- Throws:
InvalidArgumentException- if filter values are not given
-
withColumnHeaders
WorkbasketPriorityReport.Builder withColumnHeaders(List<PriorityColumnHeader> columnHeaders)
Adds a list of PriorityColumnHeaders to the builder to subdivide the report into clusters.- Parameters:
columnHeaders- the column headers the report should consist of.- Returns:
- the builder
-
inWorkingDays
WorkbasketPriorityReport.Builder inWorkingDays()
If this filter is used, the days of the report are counted in working days.- Returns:
- the TimeIntervalReportBuilder
-
-