Class WorkbasketPriorityReportBuilderImpl
- java.lang.Object
-
- pro.taskana.monitor.internal.reports.WorkbasketPriorityReportBuilderImpl
-
- All Implemented Interfaces:
Report.Builder<PriorityQueryItem,PriorityColumnHeader>,WorkbasketPriorityReport.Builder
public class WorkbasketPriorityReportBuilderImpl extends Object implements WorkbasketPriorityReport.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]classificationCategoriesprotected String[]classificationIdsprotected List<PriorityColumnHeader>columnHeadersprotected String[]domainsprotected String[]excludedClassificationIdsprotected booleaninWorkingDaysprotected TaskState[]statesprotected String[]workbasketIds
-
Constructor Summary
Constructors Constructor Description WorkbasketPriorityReportBuilderImpl(InternalTaskanaEngine taskanaEngine, MonitorMapper monitorMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkbasketPriorityReportbuildReport()WorkbasketPriorityReport.BuilderclassificationCategoryIn(List<String> classificationCategories)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.BuildercustomIntAttributeIn(TaskCustomIntField customIntField, Integer... values)Adds the values of a certain TaskCustomIntField for exact matching to the builder.WorkbasketPriorityReport.BuildercustomIntAttributeNotIn(TaskCustomIntField customIntField, Integer... values)Excludes the values of a certain TaskCustomIntField to the builder.WorkbasketPriorityReport.BuildercustomIntAttributeNotWithin(TaskCustomIntField customIntField, IntInterval... values)Exclude ranges of TaskCustomIntField for matching to the builder.WorkbasketPriorityReport.BuildercustomIntAttributeWithin(TaskCustomIntField customIntField, IntInterval... values)Adds ranges of TaskCustomIntField for matching 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.
-
-
-
Field Detail
-
columnHeaders
protected List<PriorityColumnHeader> columnHeaders
-
inWorkingDays
protected boolean inWorkingDays
-
workbasketIds
protected String[] workbasketIds
-
states
protected TaskState[] states
-
classificationCategories
protected String[] classificationCategories
-
domains
protected String[] domains
-
classificationIds
protected String[] classificationIds
-
excludedClassificationIds
protected String[] excludedClassificationIds
-
-
Constructor Detail
-
WorkbasketPriorityReportBuilderImpl
public WorkbasketPriorityReportBuilderImpl(InternalTaskanaEngine taskanaEngine, MonitorMapper monitorMapper)
-
-
Method Detail
-
buildReport
public WorkbasketPriorityReport buildReport() throws NotAuthorizedException
- Specified by:
buildReportin interfaceReport.Builder<PriorityQueryItem,PriorityColumnHeader>- Specified by:
buildReportin interfaceWorkbasketPriorityReport.Builder- Throws:
NotAuthorizedException
-
workbasketTypeIn
public WorkbasketPriorityReport.Builder workbasketTypeIn(WorkbasketType... workbasketTypes)
Description copied from interface:WorkbasketPriorityReport.BuilderAdds WorkbasketTypes to the builder. The created report will only contain Tasks from Workbaskets with one of the provided types.- Specified by:
workbasketTypeInin interfaceWorkbasketPriorityReport.Builder- Parameters:
workbasketTypes- the workbasketTypes to include in the report- Returns:
- the WorkbasketPriorityReport.Builder
-
withColumnHeaders
public WorkbasketPriorityReport.Builder withColumnHeaders(List<PriorityColumnHeader> columnHeaders)
Description copied from interface:WorkbasketPriorityReport.BuilderAdds a list of PriorityColumnHeaders to the builder to subdivide the report into clusters.- Specified by:
withColumnHeadersin interfaceWorkbasketPriorityReport.Builder- Parameters:
columnHeaders- the column headers the report should consist of.- Returns:
- the WorkbasketPriorityReport.Builder
-
inWorkingDays
public WorkbasketPriorityReport.Builder inWorkingDays()
Description copied from interface:WorkbasketPriorityReport.BuilderIf this filter is used, the days of the report are counted in working days.- Specified by:
inWorkingDaysin interfaceWorkbasketPriorityReport.Builder- Returns:
- the WorkbasketPriorityReport.Builder
-
workbasketIdIn
public WorkbasketPriorityReport.Builder workbasketIdIn(List<String> workbasketIds)
Description copied from interface:WorkbasketPriorityReport.BuilderAdds a list of workbasket ids to the builder. The created report contains only tasks with a workbasket id in this list.- Specified by:
workbasketIdInin interfaceWorkbasketPriorityReport.Builder- Parameters:
workbasketIds- a list of workbasket ids- Returns:
- the WorkbasketPriorityReport.Builder
-
stateIn
public WorkbasketPriorityReport.Builder stateIn(List<TaskState> states)
Description copied from interface:WorkbasketPriorityReport.BuilderAdds a list of states to the builder. The created report contains only tasks with a state in this list.- Specified by:
stateInin interfaceWorkbasketPriorityReport.Builder- Parameters:
states- a list of states- Returns:
- the WorkbasketPriorityReport.Builder
-
classificationCategoryIn
public WorkbasketPriorityReport.Builder classificationCategoryIn(List<String> classificationCategories)
Description copied from interface:WorkbasketPriorityReport.BuilderAdds a list of classificationCategories to the builder. The created report contains only tasks with a category in this list.- Specified by:
classificationCategoryInin interfaceWorkbasketPriorityReport.Builder- Parameters:
classificationCategories- a list of classificationCategories- Returns:
- the WorkbasketPriorityReport.Builder
-
classificationIdIn
public WorkbasketPriorityReport.Builder classificationIdIn(List<String> classificationIds)
Description copied from interface:WorkbasketPriorityReport.BuilderAdds a list of classificationIds to the builder. The created report contains only tasks with a classificationId in this list.- Specified by:
classificationIdInin interfaceWorkbasketPriorityReport.Builder- Parameters:
classificationIds- a list of classificationIds- Returns:
- the WorkbasketPriorityReport.Builder
-
excludedClassificationIdIn
public WorkbasketPriorityReport.Builder excludedClassificationIdIn(List<String> excludedClassificationIds)
Description copied from interface:WorkbasketPriorityReport.BuilderAdds a list of excludedClassificationIds to the builder. The created report contains only tasks with a classificationId NOT in this list.- Specified by:
excludedClassificationIdInin interfaceWorkbasketPriorityReport.Builder- Parameters:
excludedClassificationIds- a list of excludedClassificationIds- Returns:
- the WorkbasketPriorityReport.Builder
-
domainIn
public WorkbasketPriorityReport.Builder domainIn(List<String> domains)
Description copied from interface:WorkbasketPriorityReport.BuilderAdds a list of domains to the builder. The created report contains only tasks with a domain in this list.- Specified by:
domainInin interfaceWorkbasketPriorityReport.Builder- Parameters:
domains- a list of domains- Returns:
- the WorkbasketPriorityReport.Builder
-
customAttributeIn
public WorkbasketPriorityReport.Builder customAttributeIn(TaskCustomField customField, String... strings) throws InvalidArgumentException
Description copied from interface:WorkbasketPriorityReport.BuilderAdds 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.
- Specified by:
customAttributeInin interfaceWorkbasketPriorityReport.Builder- Parameters:
customField- the specified TaskCustomFieldstrings- the values the specified custom attribute should match- Returns:
- the modified the WorkbasketPriorityReport.Builder
- Throws:
InvalidArgumentException- if filter values are not given
-
customAttributeNotIn
public WorkbasketPriorityReport.Builder customAttributeNotIn(TaskCustomField customField, String... strings) throws InvalidArgumentException
Description copied from interface:WorkbasketPriorityReport.BuilderExcludes 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.
- Specified by:
customAttributeNotInin interfaceWorkbasketPriorityReport.Builder- Parameters:
customField- the specified TaskCustomFieldstrings- the values the specified custom attribute should not match- Returns:
- the modified WorkbasketPriorityReport.Builder
- Throws:
InvalidArgumentException- if filter values are not given
-
customIntAttributeIn
public WorkbasketPriorityReport.Builder customIntAttributeIn(TaskCustomIntField customIntField, Integer... values) throws InvalidArgumentException
Description copied from interface:WorkbasketPriorityReport.BuilderAdds the values of a certain TaskCustomIntField for exact matching to the builder.The created Report contains only Tasks with a customIntField value exactly matching one of the items in the list.
- Specified by:
customIntAttributeInin interfaceWorkbasketPriorityReport.Builder- Parameters:
customIntField- the specified TaskCustomIntFieldvalues- the values the specified customIntField should match- Returns:
- the modified WorkbasketPriorityReport.Builder
- Throws:
InvalidArgumentException- if filter values are not given
-
customIntAttributeNotIn
public WorkbasketPriorityReport.Builder customIntAttributeNotIn(TaskCustomIntField customIntField, Integer... values) throws InvalidArgumentException
Description copied from interface:WorkbasketPriorityReport.BuilderExcludes the values of a certain TaskCustomIntField to the builder.The created Report contains only Tasks with a customIntField value not matching one of the items in the list.
- Specified by:
customIntAttributeNotInin interfaceWorkbasketPriorityReport.Builder- Parameters:
customIntField- the specified TaskCustomIntFieldvalues- the values the specified customIntField should not match- Returns:
- the modified WorkbasketPriorityReport.Builder
- Throws:
InvalidArgumentException- if filter values are not given
-
customIntAttributeWithin
public WorkbasketPriorityReport.Builder customIntAttributeWithin(TaskCustomIntField customIntField, IntInterval... values)
Description copied from interface:WorkbasketPriorityReport.BuilderAdds ranges of TaskCustomIntField for matching to the builder.The created report contains only Tasks with a customIntField value being inside the range of one of the items in the list.
- Specified by:
customIntAttributeWithinin interfaceWorkbasketPriorityReport.Builder- Parameters:
customIntField- the specified TaskCustomIntFieldvalues- the values the specified customIntField should match- Returns:
- the modified WorkbasketPriorityReport.Builder
-
customIntAttributeNotWithin
public WorkbasketPriorityReport.Builder customIntAttributeNotWithin(TaskCustomIntField customIntField, IntInterval... values)
Description copied from interface:WorkbasketPriorityReport.BuilderExclude ranges of TaskCustomIntField for matching to the builder.The created report contains only Tasks with a customIntField value being not inside the range of one of the items in the list.
- Specified by:
customIntAttributeNotWithinin interfaceWorkbasketPriorityReport.Builder- Parameters:
customIntField- the specified TaskCustomIntFieldvalues- the values the specified customIntField should match- Returns:
- the modified WorkbasketPriorityReport.Builder
-
customAttributeLike
public WorkbasketPriorityReport.Builder customAttributeLike(TaskCustomField customField, String... strings) throws InvalidArgumentException
Description copied from interface:WorkbasketPriorityReport.BuilderAdds 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.
- Specified by:
customAttributeLikein interfaceWorkbasketPriorityReport.Builder- Parameters:
customField- the specified TaskCustomFieldstrings- the values the specified custom attribute should match- Returns:
- the modified the WorkbasketPriorityReport.Builder
- Throws:
InvalidArgumentException- if filter values are not given
-
-