Package org.opencastproject.list.impl
Class ResourceListQueryImpl
java.lang.Object
org.opencastproject.list.impl.ResourceListQueryImpl
- All Implemented Interfaces:
ResourceListQuery
- Direct Known Subclasses:
AclsListQuery,AgentsListQuery,EventListQuery,GroupsListQuery,JobsListQuery,SeriesListQuery,ServersListQuery,ServicesListQuery,ThemesListQuery,UsersListQuery
-
Field Summary
Fields -
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> Option<A> getFilterValue(String name) Returns the filter value wrapped in anOptionor none if the filter is not existing or has no value.getLimit()Returns the limit for the resource queryReturns the offset for the resource queryReturns 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.
-