Class PlaylistsListQuery
java.lang.Object
org.opencastproject.list.api.DefaultResourceListQuery
org.opencastproject.list.common.query.PlaylistsListQuery
- All Implemented Interfaces:
ResourceListQuery
Query for the playlists list.
The following filters can be used:
- textFilter (free text search across title, description, creator)
- creator
- updated (date period)
-
Field Summary
FieldsFields inherited from class org.opencastproject.list.api.DefaultResourceListQuery
availableFilters, sortBy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceListFilter<String> createCreatorFilter(Optional<String> creator) Create a newResourceListFilterbased on a creatorstatic ResourceListFilter<String> createTextFilter(Optional<String> value) Create a newResourceListFilterbased on a free textstatic ResourceListFilter<Tuple<Date, Date>> createUpdatedFilter(Optional<Tuple<Date, Date>> period) Create a newResourceListFilterbased on an updated date periodvoidwithCreator(String creator) voidwithTextFilter(String text) voidwithUpdated(Tuple<Date, Date> period) Methods inherited from class org.opencastproject.list.api.DefaultResourceListQuery
addFilter, getAvailableFilters, getFilter, getFilters, getFilterValue, getLimit, getOffset, getSortBy, hasFilter, removeFilter, setLimit, setOffset
-
Field Details
-
FILTER_TEXT_NAME
- See Also:
-
FILTER_CREATOR_NAME
- See Also:
-
FILTER_UPDATED_NAME
- See Also:
-
-
Constructor Details
-
PlaylistsListQuery
public PlaylistsListQuery()
-
-
Method Details
-
withTextFilter
-
getTextFilter
-
withCreator
-
getCreator
-
withUpdated
-
getUpdated
-
createTextFilter
Create a newResourceListFilterbased on a free text- Parameters:
value- the free text to filter with or none- Returns:
- a new
ResourceListFilterfor a free text
-
createCreatorFilter
Create a newResourceListFilterbased on a creator- Parameters:
creator- the creator to filter with or none- Returns:
- a new
ResourceListFilterfor a creator
-
createUpdatedFilter
public static ResourceListFilter<Tuple<Date,Date>> createUpdatedFilter(Optional<Tuple<Date, Date>> period) Create a newResourceListFilterbased on an updated date period- Parameters:
period- the updated date period asTuplewith twoDateor none- Returns:
- a new
ResourceListFilterfor an updated date period
-