public class FilterServiceImpl extends ServiceImpl implements FilterService
commandExecutor| Constructor and Description |
|---|
FilterServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Long |
count(String filterId)
Executes the query of the filter and returns the result count.
|
Long |
count(String filterId,
Query<?,?> extendingQuery)
Executes the extended query of the filter and returns the result count.
|
FilterQuery |
createFilterQuery()
Creates a new filter query
|
FilterQuery |
createTaskFilterQuery()
Creates a new task filter query.
|
void |
deleteFilter(String filterId)
Deletes a filter by its id.
|
Filter |
getFilter(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(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>> |
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.
|
Filter |
newTaskFilter()
Creates a new task filter.
|
Filter |
newTaskFilter(String filterName)
Creates a new task filter with a given name.
|
Filter |
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>> |
singleResult(String filterId,
Q extendingQuery)
Executes the extended query of the filter and returns the a single result.
|
getCommandExecutor, setCommandExecutorpublic Filter newTaskFilter()
FilterServicenewTaskFilter in interface FilterServicepublic Filter newTaskFilter(String filterName)
FilterServicenewTaskFilter in interface FilterServicepublic FilterQuery createFilterQuery()
FilterServicecreateFilterQuery in interface FilterServicepublic FilterQuery createTaskFilterQuery()
FilterServicecreateTaskFilterQuery in interface FilterServicepublic Filter saveFilter(Filter filter)
FilterServicesaveFilter in interface FilterServicefilter - the filter to savepublic Filter getFilter(String filterId)
FilterServicegetFilter in interface FilterServicefilterId - the id of the filterpublic void deleteFilter(String filterId)
FilterServicedeleteFilter in interface FilterServicefilterId - the id of the filterpublic <T> List<T> list(String filterId)
FilterServicelist in interface FilterServicefilterId - the the id of the filterpublic <T,Q extends Query<?,T>> List<T> list(String filterId, Q extendingQuery)
FilterServicelist in interface FilterServicefilterId - the id of the filterextendingQuery - additional query to extend the filter querypublic <T> List<T> listPage(String filterId, int firstResult, int maxResults)
FilterServicelistPage in interface FilterServicefilterId - the the id of the filterfirstResult - first result to selectmaxResults - maximal number of resultspublic <T,Q extends Query<?,T>> List<T> listPage(String filterId, Q extendingQuery, int firstResult, int maxResults)
FilterServicelistPage in interface FilterServicefilterId - the id of the filterextendingQuery - additional query to extend the filter queryfirstResult - first result to selectmaxResults - maximal number of resultspublic <T> T singleResult(String filterId)
FilterServicesingleResult in interface FilterServicefilterId - the the id of the filterpublic <T,Q extends Query<?,T>> T singleResult(String filterId, Q extendingQuery)
FilterServicesingleResult in interface FilterServicefilterId - the the id of the filterextendingQuery - additional query to extend the filter querypublic Long count(String filterId)
FilterServicecount in interface FilterServicefilterId - the the id of the filterpublic Long count(String filterId, Query<?,?> extendingQuery)
FilterServicecount in interface FilterServicefilterId - the the id of the filterextendingQuery - additional query to extend the filter queryCopyright © 2018. All rights reserved.