Package org.camunda.bpm.engine.impl
Class FilterServiceImpl
java.lang.Object
org.camunda.bpm.engine.impl.ServiceImpl
org.camunda.bpm.engine.impl.FilterServiceImpl
- All Implemented Interfaces:
FilterService
- Author:
- Sebastian Menski
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl
commandExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExecutes the query of the filter and returns the result count.Executes the extended query of the filter and returns the result count.Creates a new filter queryCreates a new task filter query.void
deleteFilter
(String filterId) Deletes a filter by its id.Returns the filter for the given filter id.<T> List<T>
Executes the query of the filter and returns the result as list.Executes the extended query of a filter and returns the result as list.<T> List<T>
Executes the query of the filter and returns the result in the given boundaries as list.Executes the extended query of a filter and returns the result in the given boundaries as list.Creates a new task filter.newTaskFilter
(String filterName) Creates a new task filter with a given name.saveFilter
(Filter filter) Saves the filter in the database.<T> T
singleResult
(String filterId) Executes the query of the filter and returns the a single result.<T,
Q extends Query<?, T>>
TsingleResult
(String filterId, Q extendingQuery) Executes the extended query of the filter and returns the a single result.Methods inherited from class org.camunda.bpm.engine.impl.ServiceImpl
getCommandExecutor, setCommandExecutor
-
Constructor Details
-
FilterServiceImpl
public FilterServiceImpl()
-
-
Method Details
-
newTaskFilter
Description copied from interface:FilterService
Creates a new task filter.- Specified by:
newTaskFilter
in interfaceFilterService
- Returns:
- a new task filter
-
newTaskFilter
Description copied from interface:FilterService
Creates a new task filter with a given name.- Specified by:
newTaskFilter
in interfaceFilterService
- Returns:
- a new task filter with a name
-
createFilterQuery
Description copied from interface:FilterService
Creates a new filter query- Specified by:
createFilterQuery
in interfaceFilterService
- Returns:
- a new query for filters
-
createTaskFilterQuery
Description copied from interface:FilterService
Creates a new task filter query.- Specified by:
createTaskFilterQuery
in interfaceFilterService
- Returns:
- a new query for task filters
-
saveFilter
Description copied from interface:FilterService
Saves the filter in the database.- Specified by:
saveFilter
in interfaceFilterService
- Parameters:
filter
- the filter to save- Returns:
- return the saved filter
-
getFilter
Description copied from interface:FilterService
Returns the filter for the given filter id.- Specified by:
getFilter
in interfaceFilterService
- Parameters:
filterId
- the id of the filter- Returns:
- the filter
-
deleteFilter
Description copied from interface:FilterService
Deletes a filter by its id.- Specified by:
deleteFilter
in interfaceFilterService
- Parameters:
filterId
- the id of the filter
-
list
Description copied from interface:FilterService
Executes the query of the filter and returns the result as list.- Specified by:
list
in interfaceFilterService
- Parameters:
filterId
- the id of the filter- Returns:
- the query result as list
-
list
Description copied from interface:FilterService
Executes the extended query of a filter and returns the result as list.- Specified by:
list
in interfaceFilterService
- Parameters:
filterId
- the id of the filterextendingQuery
- additional query to extend the filter query- Returns:
- the query result as list
-
listPage
Description copied from interface:FilterService
Executes the query of the filter and returns the result in the given boundaries as list.- Specified by:
listPage
in interfaceFilterService
- Parameters:
filterId
- the id of the filterfirstResult
- first result to selectmaxResults
- maximal number of results- Returns:
- the query result as list
-
listPage
public <T,Q extends Query<?, List<T> listPageT>> (String filterId, Q extendingQuery, int firstResult, int maxResults) Description copied from interface:FilterService
Executes the extended query of a filter and returns the result in the given boundaries as list.- Specified by:
listPage
in interfaceFilterService
- Parameters:
filterId
- the id of the filterextendingQuery
- additional query to extend the filter queryfirstResult
- first result to selectmaxResults
- maximal number of results- Returns:
- the query result as list
-
singleResult
Description copied from interface:FilterService
Executes the query of the filter and returns the a single result.- Specified by:
singleResult
in interfaceFilterService
- Parameters:
filterId
- the id of the filter- Returns:
- the single query result
-
singleResult
Description copied from interface:FilterService
Executes the extended query of the filter and returns the a single result.- Specified by:
singleResult
in interfaceFilterService
- Parameters:
filterId
- the id of the filterextendingQuery
- additional query to extend the filter query- Returns:
- the single query result
-
count
Description copied from interface:FilterService
Executes the query of the filter and returns the result count.- Specified by:
count
in interfaceFilterService
- Parameters:
filterId
- the id of the filter- Returns:
- the result count
-
count
Description copied from interface:FilterService
Executes the extended query of the filter and returns the result count.- Specified by:
count
in interfaceFilterService
- Parameters:
filterId
- the id of the filterextendingQuery
- additional query to extend the filter query- Returns:
- the result count
-