Class EventListQuery
java.lang.Object
org.opencastproject.list.api.DefaultResourceListQuery
org.opencastproject.list.common.query.EventListQuery
- All Implemented Interfaces:
ResourceListQuery
Query for the events list.
The following filters can be used:
- series
- presenters
- presenter's usernames
- contributors
- location
- agent
- language
- startDate
- status
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.opencastproject.list.api.DefaultResourceListQuery
availableFilters, sortBy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceListFilter<String> createAgentFilter(Optional<String> agent) Create a newResourceListFilterbased on an agentstatic ResourceListFilter<String> createCommentsFilter(Optional<String> comments) Create a newResourceListFilterbased on commentsstatic ResourceListFilter<String> createContributorsFilter(Optional<String> contributor) Create a newResourceListFilterbased on a contributorstatic ResourceListFilter<String> createIsPublishedFilter(Optional<String> isPublished) Create a newResourceListFilterbased on is publishedstatic ResourceListFilter<String> createLanguageFilter(Optional<String> language) Create a newResourceListFilterbased on a languagestatic ResourceListFilter<String> createLocationFilter(Optional<String> location) Create a newResourceListFilterbased on a locationstatic ResourceListFilter<String> createPresentersFilter(Optional<String> presenter) Create a newResourceListFilterbased on a presenter's full namestatic ResourceListFilter<String> createPublisherFilter(Optional<String> publisher) Create a newResourceListFilterbased on publishersstatic ResourceListFilter<String> createReadAccessFilter(Optional<String> readAccess) Create a newResourceListFilterbased on a read rolestatic ResourceListFilter<String> createSeriesFilter(Optional<String> seriesId) Create a newResourceListFilterbased on the Series idstatic ResourceListFilter<Tuple<Date, Date>> createStartDateFilter(Optional<Tuple<Date, Date>> period) Create a newResourceListFilterbased on start date periodstatic ResourceListFilter<String> createStatusFilter(Optional<String> status) Create a newResourceListFilterbased on statsstatic ResourceListFilter<String> createTechnicalPresentersFilter(Optional<String> presenter) Create a newResourceListFilterbased on a presenter's user namestatic ResourceListFilter<String> createWriteAccessFilter(Optional<String> writeAccess) Create a newResourceListFilterbased on a write rolegetAgent()Returns anOptionalcontaining the agent used to filter if setReturns anOptionalcontaining the comments used to filter if setReturns anOptionalcontaining the contributor used to filter if setReturns anOptionalcontaining the language used to filter if setReturns anOptionalcontaining the location used to filter if setReturns anOptionalcontaining the presenter used to filter if setReturns anOptionalcontaining the publisher used to filter if setReturns anOptionalcontaining the seriesId used to filter if setReturns anOptionalcontaining the start date period used to filter if setReturns anOptionalcontaining the status used to filter if setReturns anOptionalcontaining the technical presenter's username used to filter if setvoidAdd aResourceListFilterfilter to the query with the given subjectvoidwithComments(String comments) Add aResourceListFilterfilter to the query with the given commentsvoidwithContributor(String contributor) Add aResourceListFilterfilter to the query with the given contributorvoidwithLanguage(String language) Add aResourceListFilterfilter to the query with the given subjectvoidwithLocation(String location) Add aResourceListFilterfilter to the query with the given subjectvoidwithPresenter(String presenter) Add aResourceListFilterfilter to the query with the given presentervoidwithPublishers(String publishers) Add aResourceListFilterfilter to the query with the given publishersvoidwithSeriesId(String seriesId) Add aResourceListFilterfilter to the query with the given seriesIdvoidwithStartDate(Tuple<Date, Date> startDate) Add aResourceListFilterfilter to the query with the given start date periodvoidwithStatus(String status) Add aResourceListFilterfilter to the query with the given statusvoidwithTechnicalPresenter(String presenter) Add aResourceListFilterfilter to the query with the given technical presenter's usernameMethods inherited from class org.opencastproject.list.api.DefaultResourceListQuery
addFilter, getAvailableFilters, getFilter, getFilters, getFilterValue, getLimit, getOffset, getSortBy, hasFilter, removeFilter, setLimit, setOffset
-
Field Details
-
FILTER_SERIES_NAME
- See Also:
-
FILTER_PRESENTERS_BIBLIOGRAPHIC_NAME
- See Also:
-
FILTER_PRESENTERS_TECHNICAL_NAME
- See Also:
-
FILTER_CONTRIBUTORS_NAME
- See Also:
-
FILTER_LOCATION_NAME
- See Also:
-
FILTER_AGENT_NAME
- See Also:
-
FILTER_LANGUAGE_NAME
- See Also:
-
FILTER_STARTDATE_NAME
- See Also:
-
FILTER_STATUS_NAME
- See Also:
-
FILTER_COMMENTS_NAME
- See Also:
-
FILTER_PUBLISHER_NAME
- See Also:
-
FILTER_TEXT_NAME
- See Also:
-
FILTER_IS_PUBLISHED_NAME
- See Also:
-
FILTER_IS_PUBLISHED_LABEL
- See Also:
-
FILTER_READ_ACCESS_NAME
- See Also:
-
FILTER_READ_ACCESS_LABEL
- See Also:
-
FILTER_WRITE_ACCESS_NAME
- See Also:
-
FILTER_WRITE_ACCESS_LABEL
- See Also:
-
-
Constructor Details
-
EventListQuery
public EventListQuery()
-
-
Method Details
-
withSeriesId
Add aResourceListFilterfilter to the query with the given seriesId- Parameters:
seriesId- the seriesId to filter with
-
getSeriesId
Returns anOptionalcontaining the seriesId used to filter if set- Returns:
- an
Optionalcontaining the seriesId or none.
-
withPresenter
Add aResourceListFilterfilter to the query with the given presenter- Parameters:
presenter- the presenter to filter for
-
getPresenter
Returns anOptionalcontaining the presenter used to filter if set- Returns:
- an
Optionalcontaining the presenter or none.
-
withTechnicalPresenter
Add aResourceListFilterfilter to the query with the given technical presenter's username- Parameters:
presenter- presenter's username the presenter's username to filter for
-
getTechnicalPresenter
Returns anOptionalcontaining the technical presenter's username used to filter if set- Returns:
- an
Optionalcontaining the presenter or none.
-
withContributor
Add aResourceListFilterfilter to the query with the given contributor- Parameters:
contributor- the contributor to filter for
-
getContributor
Returns anOptionalcontaining the contributor used to filter if set- Returns:
- an
Optionalcontaining the contributor or none.
-
withLocation
Add aResourceListFilterfilter to the query with the given subject- Parameters:
location- the subject to filter for
-
getLocation
Returns anOptionalcontaining the location used to filter if set- Returns:
- an
Optionalcontaining the location or none.
-
withAgent
Add aResourceListFilterfilter to the query with the given subject- Parameters:
agent- the agent to filter for
-
getAgent
Returns anOptionalcontaining the agent used to filter if set- Returns:
- an
Optionalcontaining the agent or none.
-
withLanguage
Add aResourceListFilterfilter to the query with the given subject- Parameters:
language- the subject to filter for
-
getLanguage
Returns anOptionalcontaining the language used to filter if set- Returns:
- an
Optionalcontaining the language or none.
-
withStartDate
Add aResourceListFilterfilter to the query with the given start date period -
getStartDate
Returns anOptionalcontaining the start date period used to filter if set- Returns:
- an
Optionalcontaining the start date period or none.
-
withStatus
Add aResourceListFilterfilter to the query with the given status- Parameters:
status- the status to filter for
-
getStatus
Returns anOptionalcontaining the status used to filter if set- Returns:
- an
Optionalcontaining the status or none.
-
withComments
Add aResourceListFilterfilter to the query with the given comments- Parameters:
comments- the comments to filter for
-
getComments
Returns anOptionalcontaining the comments used to filter if set- Returns:
- an
Optionalcontaining the comments or none.
-
withPublishers
Add aResourceListFilterfilter to the query with the given publishers- Parameters:
publishers- the publishers to filter for
-
getPublisher
Returns anOptionalcontaining the publisher used to filter if set- Returns:
- an
Optionalcontaining the publisher or none.
-
createSeriesFilter
Create a newResourceListFilterbased on the Series id- Parameters:
seriesId- the series id to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor the Series name based query
-
createPresentersFilter
Create a newResourceListFilterbased on a presenter's full name- Parameters:
presenter- 's name the presenters to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a presenters based query
-
createTechnicalPresentersFilter
public static ResourceListFilter<String> createTechnicalPresentersFilter(Optional<String> presenter) Create a newResourceListFilterbased on a presenter's user name- Parameters:
presenter- the presenters to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a presenters based query
-
createContributorsFilter
Create a newResourceListFilterbased on a contributor- Parameters:
contributor- the series id to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a contributor based query
-
createLocationFilter
Create a newResourceListFilterbased on a location- Parameters:
location- the location to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a location based query
-
createAgentFilter
Create a newResourceListFilterbased on an agent- Parameters:
agent- the agent to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a location based query
-
createLanguageFilter
Create a newResourceListFilterbased on a language- Parameters:
language- the language to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a language based query
-
createStartDateFilter
public static ResourceListFilter<Tuple<Date,Date>> createStartDateFilter(Optional<Tuple<Date, Date>> period) Create a newResourceListFilterbased on start date period- Parameters:
period- the period to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor the given period
-
createStatusFilter
Create a newResourceListFilterbased on stats- Parameters:
status- the status to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor progress based query
-
createCommentsFilter
Create a newResourceListFilterbased on comments- Parameters:
comments- the comments to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor progress based query
-
createPublisherFilter
Create a newResourceListFilterbased on publishers- Parameters:
publisher- the publisher to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor progress based query
-
createIsPublishedFilter
Create a newResourceListFilterbased on is published- Parameters:
isPublished- the is published status to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor progress based query
-
createReadAccessFilter
Create a newResourceListFilterbased on a read role- Parameters:
readAccess- the read role to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a read role based query
-
createWriteAccessFilter
Create a newResourceListFilterbased on a write role- Parameters:
writeAccess- the write role to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a write role based query
-