Class ThemesListQuery

java.lang.Object
org.opencastproject.list.api.DefaultResourceListQuery
org.opencastproject.themes.list.ThemesListQuery
All Implemented Interfaces:
org.opencastproject.list.api.ResourceListQuery

public class ThemesListQuery extends org.opencastproject.list.api.DefaultResourceListQuery
Query for the themes list. The following filters can be used:
  • creator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from class org.opencastproject.list.api.DefaultResourceListQuery

    availableFilters, sortBy
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.opencastproject.list.api.ResourceListFilter<String>
    Create a new ResourceListFilter based on a creator
    Returns an Optional containing the creator used to filter if set
    void
    Add a ResourceListFilter filter to the query with the given creator

    Methods inherited from class org.opencastproject.list.api.DefaultResourceListQuery

    addFilter, getAvailableFilters, getFilter, getFilters, getFilterValue, getLimit, getOffset, getSortBy, hasFilter, removeFilter, setLimit, setOffset

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ThemesListQuery

      public ThemesListQuery()
  • Method Details

    • withCreator

      public void withCreator(String creator)
      Add a ResourceListFilter filter to the query with the given creator
      Parameters:
      creator - the creator to filter for
    • getCreator

      public Optional<String> getCreator()
      Returns an Optional containing the creator used to filter if set
      Returns:
      an Optional containing the creator or none.
    • createCreatorFilter

      public static org.opencastproject.list.api.ResourceListFilter<String> createCreatorFilter(Optional<String> creator)
      Create a new ResourceListFilter based on a creator
      Parameters:
      creator - the creator to filter on wrapped in an Optional or Optional.empty()
      Returns:
      a new ResourceListFilter for a creator based query