Package org.opencastproject.list.impl
Class ResourceListQueryImpl
java.lang.Object
org.opencastproject.list.impl.ResourceListQueryImpl
- All Implemented Interfaces:
ResourceListQuery
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<ResourceListFilter<?>> protected org.opencastproject.util.data.Option<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilter(ResourceListFilter<?> filter) Returns all the availableResourceListFilterfilters with this query.Returns the filter with the given nameReturns all theResourceListFilterset for the query.<A> org.opencastproject.util.data.Option<A> getFilterValue(String name) Returns the filter value wrapped in anOptionor none if the filter is not existing or has no value.org.opencastproject.util.data.Option<Integer> getLimit()Returns the limit for the resource queryorg.opencastproject.util.data.Option<Integer> Returns the offset for the resource queryorg.opencastproject.util.data.Option<String> Returns the name of the field by which the list should be sortedReturns if the given filter is or not setvoidremoveFilter(ResourceListFilter<?> filter) voidvoid
-
Field Details
-
availableFilters
-
sortBy
-
-
Constructor Details
-
ResourceListQueryImpl
public ResourceListQueryImpl()
-
-
Method Details
-
addFilter
-
removeFilter
-
setLimit
-
setOffset
-
getFilters
Description copied from interface:ResourceListQueryReturns all theResourceListFilterset for the query.- Specified by:
getFiltersin interfaceResourceListQuery- Returns:
- all the query filters
-
getFilter
Description copied from interface:ResourceListQueryReturns the filter with the given name- Specified by:
getFilterin interfaceResourceListQuery- Parameters:
name-- Returns:
- the query filter or null if the filter does not exist
-
getLimit
Description copied from interface:ResourceListQueryReturns the limit for the resource query- Specified by:
getLimitin interfaceResourceListQuery- Returns:
- the list limit
-
getOffset
Description copied from interface:ResourceListQueryReturns the offset for the resource query- Specified by:
getOffsetin interfaceResourceListQuery- Returns:
- the list offset
-
getSortBy
Description copied from interface:ResourceListQueryReturns the name of the field by which the list should be sorted- Specified by:
getSortByin interfaceResourceListQuery- Returns:
- the name of the field to use to sort the list
-
hasFilter
Description copied from interface:ResourceListQueryReturns if the given filter is or not set- Specified by:
hasFilterin interfaceResourceListQuery- Parameters:
name- the filter name- Returns:
- true if set
-
getAvailableFilters
Description copied from interface:ResourceListQueryReturns all the availableResourceListFilterfilters with this query. The objects returned in the list are simple instance without any filter value set.- Specified by:
getAvailableFiltersin interfaceResourceListQuery- Returns:
- all the available filters
-
getFilterValue
Returns the filter value wrapped in anOptionor none if the filter is not existing or has no value.- Parameters:
name- the filter name- Returns:
- an
Optionwrapping the value or none.
-