Package org.opencastproject.list.api
Interface ResourceListQuery
- All Known Implementing Classes:
EmptyResourceListQuery,ResourceListQueryImpl
public interface ResourceListQuery
Query for the resource list
-
Method Summary
Modifier and TypeMethodDescriptionReturns all the availableResourceListFilterfilters with this query.Returns the filter with the given nameReturns all theResourceListFilterset for the query.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 set
-
Method Details
-
getFilters
List<ResourceListFilter<?>> getFilters()Returns all theResourceListFilterset for the query.- Returns:
- all the query filters
-
getAvailableFilters
List<ResourceListFilter<?>> getAvailableFilters()Returns all the availableResourceListFilterfilters with this query. The objects returned in the list are simple instance without any filter value set.- Returns:
- all the available filters
-
getFilter
Returns the filter with the given name- Parameters:
name-- Returns:
- the query filter or null if the filter does not exist
-
getLimit
org.opencastproject.util.data.Option<Integer> getLimit()Returns the limit for the resource query- Returns:
- the list limit
-
getOffset
org.opencastproject.util.data.Option<Integer> getOffset()Returns the offset for the resource query- Returns:
- the list offset
-
getSortBy
org.opencastproject.util.data.Option<String> getSortBy()Returns the name of the field by which the list should be sorted- Returns:
- the name of the field to use to sort the list
-
hasFilter
Returns if the given filter is or not set- Parameters:
name- the filter name- Returns:
- true if set
-