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
public class FilterServiceImpl extends ServiceImpl implements FilterService
- Author:
- Sebastian Menski
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl
commandExecutor
-
-
Constructor Summary
Constructors Constructor Description FilterServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longcount(String filterId)Executes the query of the filter and returns the result count.Longcount(String filterId, Query<?,?> extendingQuery)Executes the extended query of the filter and returns the result count.FilterQuerycreateFilterQuery()Creates a new filter queryFilterQuerycreateTaskFilterQuery()Creates a new task filter query.voiddeleteFilter(String filterId)Deletes a filter by its id.FiltergetFilter(String filterId)Returns the filter for the given filter id.<T> List<T>list(String filterId)Executes the query of the filter and returns the result as list.<T,Q extends Query<?,T>>
List<T>list(String filterId, Q extendingQuery)Executes the extended query of a filter and returns the result as list.<T> List<T>listPage(String filterId, int firstResult, int maxResults)Executes the query of the filter and returns the result in the given boundaries as list.<T,Q extends Query<?,T>>
List<T>listPage(String filterId, Q extendingQuery, int firstResult, int maxResults)Executes the extended query of a filter and returns the result in the given boundaries as list.FilternewTaskFilter()Creates a new task filter.FilternewTaskFilter(String filterName)Creates a new task filter with a given name.FiltersaveFilter(Filter filter)Saves the filter in the database.<T> TsingleResult(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
-
-
-
-
Method Detail
-
newTaskFilter
public Filter newTaskFilter()
Description copied from interface:FilterServiceCreates a new task filter.- Specified by:
newTaskFilterin interfaceFilterService- Returns:
- a new task filter
-
newTaskFilter
public Filter newTaskFilter(String filterName)
Description copied from interface:FilterServiceCreates a new task filter with a given name.- Specified by:
newTaskFilterin interfaceFilterService- Returns:
- a new task filter with a name
-
createFilterQuery
public FilterQuery createFilterQuery()
Description copied from interface:FilterServiceCreates a new filter query- Specified by:
createFilterQueryin interfaceFilterService- Returns:
- a new query for filters
-
createTaskFilterQuery
public FilterQuery createTaskFilterQuery()
Description copied from interface:FilterServiceCreates a new task filter query.- Specified by:
createTaskFilterQueryin interfaceFilterService- Returns:
- a new query for task filters
-
saveFilter
public Filter saveFilter(Filter filter)
Description copied from interface:FilterServiceSaves the filter in the database.- Specified by:
saveFilterin interfaceFilterService- Parameters:
filter- the filter to save- Returns:
- return the saved filter
-
getFilter
public Filter getFilter(String filterId)
Description copied from interface:FilterServiceReturns the filter for the given filter id.- Specified by:
getFilterin interfaceFilterService- Parameters:
filterId- the id of the filter- Returns:
- the filter
-
deleteFilter
public void deleteFilter(String filterId)
Description copied from interface:FilterServiceDeletes a filter by its id.- Specified by:
deleteFilterin interfaceFilterService- Parameters:
filterId- the id of the filter
-
list
public <T> List<T> list(String filterId)
Description copied from interface:FilterServiceExecutes the query of the filter and returns the result as list.- Specified by:
listin interfaceFilterService- Parameters:
filterId- the the id of the filter- Returns:
- the query result as list
-
list
public <T,Q extends Query<?,T>> List<T> list(String filterId, Q extendingQuery)
Description copied from interface:FilterServiceExecutes the extended query of a filter and returns the result as list.- Specified by:
listin interfaceFilterService- Parameters:
filterId- the id of the filterextendingQuery- additional query to extend the filter query- Returns:
- the query result as list
-
listPage
public <T> List<T> listPage(String filterId, int firstResult, int maxResults)
Description copied from interface:FilterServiceExecutes the query of the filter and returns the result in the given boundaries as list.- Specified by:
listPagein interfaceFilterService- Parameters:
filterId- the 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<?,T>> List<T> listPage(String filterId, Q extendingQuery, int firstResult, int maxResults)
Description copied from interface:FilterServiceExecutes the extended query of a filter and returns the result in the given boundaries as list.- Specified by:
listPagein 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
public <T> T singleResult(String filterId)
Description copied from interface:FilterServiceExecutes the query of the filter and returns the a single result.- Specified by:
singleResultin interfaceFilterService- Parameters:
filterId- the the id of the filter- Returns:
- the single query result
-
singleResult
public <T,Q extends Query<?,T>> T singleResult(String filterId, Q extendingQuery)
Description copied from interface:FilterServiceExecutes the extended query of the filter and returns the a single result.- Specified by:
singleResultin interfaceFilterService- Parameters:
filterId- the the id of the filterextendingQuery- additional query to extend the filter query- Returns:
- the single query result
-
count
public Long count(String filterId)
Description copied from interface:FilterServiceExecutes the query of the filter and returns the result count.- Specified by:
countin interfaceFilterService- Parameters:
filterId- the the id of the filter- Returns:
- the result count
-
count
public Long count(String filterId, Query<?,?> extendingQuery)
Description copied from interface:FilterServiceExecutes the extended query of the filter and returns the result count.- Specified by:
countin interfaceFilterService- Parameters:
filterId- the the id of the filterextendingQuery- additional query to extend the filter query- Returns:
- the result count
-
-