Class EventSearchQuery
java.lang.Object
org.opencastproject.elasticsearch.impl.AbstractSearchQuery
org.opencastproject.elasticsearch.index.objects.event.EventSearchQuery
- All Implemented Interfaces:
org.opencastproject.elasticsearch.api.SearchQuery
public class EventSearchQuery
extends org.opencastproject.elasticsearch.impl.AbstractSearchQuery
This interface defines a fluent api for a query object used to lookup recording events in the search index.
-
Field Summary
Fields inherited from class org.opencastproject.elasticsearch.impl.AbstractSearchQuery
fields, filter, fuzzySearch, limit, offset, text, types -
Constructor Summary
ConstructorsConstructorDescriptionEventSearchQuery(String organization, org.opencastproject.security.api.User user) Creates a query that will return event documents. -
Method Summary
Modifier and TypeMethodDescriptionReturns the access policy of the recording.String[]Returns the list of actions or an empty array if no actions have been specified.Returns the agent id of the recording.Returns the archive version of the event.String[]String[]Returns the list of recording contributors or an empty array if no contributors have been specified.Returns the creation date of the recording.Returns the creator of the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the recording date.Returns the description of the recording.Returns the duration of the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the recording end date.Returns the event status of the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the event status.Returns the has comments status of the recording.Returns the has open comments status of the recording.String[]Returns the list of recording identifiers or an empty array if no identifiers have been specified.Returns the is published status of the recording.Returns the language of the recording.Returns the license of the recording.Returns the location of the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the location.Returns the name of the managed ACL set to the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series managed ACL.Returns the organization of the recordingString[]Returns the list of recording presenters or an empty array if no presenter have been specified.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the recording start date.String[]Returns the list of event publications or an empty array if no publications have been specified.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the publication.Returns the publisher of the recording.Returns the rights of the recording.Returns the series identifier of the recording.Returns the series name of the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series name.Returns the source of the recording.Returns the start date of the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the recording start date.Returns the subject of the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the technical recording end date.Returns the technical end date of the recording.String[]Returns the list of technical presenters or an empty array if no presenters have been specified.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the technical recording start date.Returns the technical start date of the recording.getTitle()Returns the title of the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the recording start date.org.opencastproject.util.requests.SortCriterion.Orderorg.opencastproject.security.api.UsergetUser()Returns the user of this search queryReturns the workflow definition of the recording.Returns the workflow id of the recording.Returns the workflow state of the recording.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the workflow state.Returns the has open comments reason that it needs cutting of the recording.sortByDate(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the recording date.sortByEndDate(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the recording end date.sortByEventStatus(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the event status.sortByLocation(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the location.sortByManagedAcl(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the managed ACL.sortByPresenter(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the recording date.sortByPublicationIgnoringInternal(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for publication.sortBySeriesName(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series name.sortByStartDate(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the recording start date.sortByTechnicalEndDate(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the technical recording end date.sortByTechnicalStartDate(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the technical recording start date.sortByTitle(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the recording date.sortByUID(org.opencastproject.util.requests.SortCriterion.Order order) sortByWorkflowState(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the workflow state.protected StringsortOrderFieldName(String field) withAccessPolicy(String accessPolicy) Selects recordings with the given access policy.withAction(org.opencastproject.security.api.Permissions.Action action) Filter the recording events with the given action.withAgentId(String agentId) Selects recordings with the given agent id.withArchiveVersion(long archiveVersion) Selects events with the given archive version.withComments(boolean hasComments) Selects recordings with the given has comments status.withComments(String comment) withContributor(String contributor) Selects recording events with the given contributor.withCreated(String created) Selects recordings with the given creation date.withCreator(String creator) Selects recordings with the given creator.withDescription(String description) Selects recordings with the given description.withDuration(long duration) Selects recordings with the given duration.withEventStatus(String eventStatus) Selects recordings with the given event status.withIdentifier(String id) Selects recording events with the given identifier.withIsPublished(boolean isPublished) Selects recordings with the given is published status.withLanguage(String language) Selects recordings with the given language.withLicense(String license) Selects recordings with the given license.withLocation(String location) Selects recordings with the given location.withManagedAcl(String managedAcl) Selects recordings with the given managed ACL name.withNeedsCutting(boolean needsCutting) Selects recordings with the given has comment need cutting status.withOpenComments(boolean hasOpenComments) Selects recordings with the given has open comments status.Filter the recording events without any action checked.withPresenter(String presenter) Selects recording events with the given presenter.withPublications(String publication) Selects recording events with the given publication.withPublisher(String publisher) Selects recordings with the given publisher.withRights(String rights) Selects recordings with the given rights.withSeriesId(String seriesId) Selects recordings with the given series identifier.withSeriesName(String seriesName) Selects recordings with the given series name.withSource(String source) Selects recordings with the given source type.withStartDate(String startDate) Selects recordings with the given start date.withStartFrom(Date startFrom) The start date to start looking for events.withStartTo(Date startTo) The start date to stop looking for events.withSubject(String subject) Selects recording events with the given subject.withTechnicalEndTime(Date technicalEndTime) Selects recordings with the given technical end date.withTechnicalPresenters(String presenter) Selects recording events with the given technical presenters.withTechnicalStartFrom(Date startFrom) The technical start date to start looking for events.withTechnicalStartTime(Date technicalStartTime) Selects recordings with the given technical start date.withTechnicalStartTo(Date startTo) The technical start date to stop looking for events.Selects recordings with the given title.withWorkflowDefinition(String workflowDefinition) Selects recordings with the given workflow definition.withWorkflowId(long workflowId) Selects recordings with the given workflow id.withWorkflowState(String workflowState) Selects recordings with the given workflow state.Methods inherited from class org.opencastproject.elasticsearch.impl.AbstractSearchQuery
getFields, getFilter, getLimit, getOffset, getQueryString, getSortOrder, getSortOrders, getTerms, getTypes, isFuzzySearch, withField, withFields, withFilter, withLimit, withOffset, withSortOrder, withText, withText, withText, withTypes
-
Constructor Details
-
EventSearchQuery
Creates a query that will return event documents.
-
-
Method Details
-
sortOrderFieldName
- Specified by:
sortOrderFieldNamein classorg.opencastproject.elasticsearch.impl.AbstractSearchQuery
-
withIdentifier
Selects recording events with the given identifier.Note that this method may be called multiple times to support selection of multiple recording events.
- Parameters:
id- the recording identifier- Returns:
- the enhanced search query
-
getIdentifier
Returns the list of recording identifiers or an empty array if no identifiers have been specified.- Returns:
- the identifiers
-
getOrganization
Returns the organization of the recording- Returns:
- the organization
-
getUser
public org.opencastproject.security.api.User getUser()Returns the user of this search query- Returns:
- the user of this search query
-
withTitle
Selects recordings with the given title.- Parameters:
title- the title- Returns:
- the enhanced search query
-
getTitle
Returns the title of the recording.- Returns:
- the title
-
withoutActions
Filter the recording events without any action checked.- Returns:
- the enhanced search query
-
withAction
Filter the recording events with the given action.Note that this method may be called multiple times to support filtering by multiple actions.
- Parameters:
action- the action- Returns:
- the enhanced search query
-
getActions
Returns the list of actions or an empty array if no actions have been specified.- Returns:
- the actions
-
withPresenter
Selects recording events with the given presenter.Note that this method may be called multiple times to support selection of multiple recording events.
- Parameters:
presenter- the presenter- Returns:
- the enhanced search query
-
getPresenters
Returns the list of recording presenters or an empty array if no presenter have been specified.- Returns:
- the presenters
-
withContributor
Selects recording events with the given contributor.Note that this method may be called multiple times to support selection of multiple recording events.
- Parameters:
contributor- the contributor- Returns:
- the enhanced search query
-
getContributors
Returns the list of recording contributors or an empty array if no contributors have been specified.- Returns:
- the contributors
-
withSubject
Selects recording events with the given subject.- Parameters:
subject- the subject- Returns:
- the enhanced search query
-
getSubject
Returns the subject of the recording.- Returns:
- the subject
-
withDescription
Selects recordings with the given description.- Parameters:
description- the description- Returns:
- the enhanced search query
-
getDescription
Returns the description of the recording.- Returns:
- the description
-
withLocation
Selects recordings with the given location.- Parameters:
location- the location- Returns:
- the enhanced search query
-
getLocation
Returns the location of the recording.- Returns:
- the location
-
withSeriesId
Selects recordings with the given series identifier.- Parameters:
seriesId- the series identifier- Returns:
- the enhanced search query
-
getSeriesId
Returns the series identifier of the recording.- Returns:
- the series identifier
-
withSeriesName
Selects recordings with the given series name.- Parameters:
seriesName- the series name- Returns:
- the enhanced search query
-
getSeriesName
Returns the series name of the recording.- Returns:
- the series name
-
withLanguage
Selects recordings with the given language.- Parameters:
language- the language- Returns:
- the enhanced search query
-
getLanguage
Returns the language of the recording.- Returns:
- the language
-
withSource
Selects recordings with the given source type.- Parameters:
source- the source- Returns:
- the enhanced search query
-
getSource
Returns the source of the recording.- Returns:
- the source
-
withCreated
Selects recordings with the given creation date.- Parameters:
created- the creation date- Returns:
- the enhanced search query
-
getCreated
Returns the creation date of the recording.- Returns:
- the creation date
-
withStartFrom
The start date to start looking for events.- Parameters:
startFrom- The start date to start looking for events- Returns:
- the enhanced search query
-
getStartFrom
- Returns:
- The Date after which all events returned should have been started
-
withStartTo
The start date to stop looking for events.- Parameters:
startTo- The start date to stop looking for events- Returns:
- the enhanced search query
-
getStartTo
- Returns:
- The Date before which all events returned should have been started
-
withTechnicalStartFrom
The technical start date to start looking for events.- Parameters:
startFrom- The technical start date to start looking for events- Returns:
- the enhanced search query
-
getTechnicalStartFrom
- Returns:
- The technical date after which all events returned should have been started
-
withTechnicalStartTo
The technical start date to stop looking for events.- Parameters:
startTo- The technical start date to stop looking for events- Returns:
- the enhanced search query
-
getTechnicalStartTo
- Returns:
- The technical date before which all events returned should have been started
-
withCreator
Selects recordings with the given creator.- Parameters:
creator- the creator- Returns:
- the enhanced search query
-
getCreator
Returns the creator of the recording.- Returns:
- the creator
-
withPublisher
Selects recordings with the given publisher.- Parameters:
publisher- the publisher- Returns:
- the enhanced search query
-
getPublisher
Returns the publisher of the recording.- Returns:
- the publisher
-
withLicense
Selects recordings with the given license.- Parameters:
license- the license- Returns:
- the enhanced search query
-
getLicense
Returns the license of the recording.- Returns:
- the license
-
withRights
Selects recordings with the given rights.- Parameters:
rights- the rights- Returns:
- the enhanced search query
-
getRights
Returns the rights of the recording.- Returns:
- the rights
-
withAccessPolicy
Selects recordings with the given access policy.- Parameters:
accessPolicy- the access policy- Returns:
- the enhanced search query
-
getAccessPolicy
Returns the access policy of the recording.- Returns:
- the access policy
-
withManagedAcl
Selects recordings with the given managed ACL name.- Parameters:
managedAcl- the name of the managed ACL- Returns:
- the enhanced search query
-
getManagedAcl
Returns the name of the managed ACL set to the recording.- Returns:
- the name of the managed ACL
-
withWorkflowState
Selects recordings with the given workflow state.- Parameters:
workflowState- the workflow state- Returns:
- the enhanced search query
-
getWorkflowState
Returns the workflow state of the recording.- Returns:
- the workflow state
-
withWorkflowId
Selects recordings with the given workflow id.- Parameters:
workflowId- the workflow id- Returns:
- the enhanced search query
-
getWorkflowId
Returns the workflow id of the recording.- Returns:
- the workflow id
-
withWorkflowDefinition
Selects recordings with the given workflow definition.- Parameters:
workflowDefinition- the workflow definition- Returns:
- the enhanced search query
-
getWorkflowDefinition
Returns the workflow definition of the recording.- Returns:
- the workflow definition
-
withStartDate
Selects recordings with the given start date.- Parameters:
startDate- the start date- Returns:
- the enhanced search query
-
getStartDate
Returns the start date of the recording.- Returns:
- the start date
-
withDuration
Selects recordings with the given duration.- Parameters:
duration- the duration- Returns:
- the enhanced search query
-
getDuration
Returns the duration of the recording.- Returns:
- the duration
-
withEventStatus
Selects recordings with the given event status.- Parameters:
eventStatus- the event status- Returns:
- the enhanced search query
-
getEventStatus
Returns the event status of the recording.- Returns:
- the event status
-
withComments
Selects recordings with the given has comments status.- Parameters:
hasComments- the has comments status- Returns:
- the enhanced search query
-
withOpenComments
Selects recordings with the given has open comments status.- Parameters:
hasOpenComments- the has open comments status- Returns:
- the enhanced search query
-
withNeedsCutting
Selects recordings with the given has comment need cutting status.- Parameters:
needsCutting- the event has the comments status that it needs cutting- Returns:
- the enhanced search query
-
getHasComments
Returns the has comments status of the recording.- Returns:
- the recording has comments status
-
getHasOpenComments
Returns the has open comments status of the recording.- Returns:
- the recording has open comments status
-
withComments
-
getComments
-
needsCutting
Returns the has open comments reason that it needs cutting of the recording.- Returns:
- the event has the open comments status that it needs cutting
-
withPublications
Selects recording events with the given publication.Note that this method may be called multiple times to support selection of multiple recording events.
- Parameters:
publication- the publication- Returns:
- the enhanced search query
-
getPublications
Returns the list of event publications or an empty array if no publications have been specified.- Returns:
- the publications
-
withIsPublished
Selects recordings with the given is published status.- Parameters:
isPublished- the is published status- Returns:
- the enhanced search query
-
getIsPublished
Returns the is published status of the recording.- Returns:
- the recording is published status
-
withArchiveVersion
Selects events with the given archive version.- Parameters:
archiveVersion- the archive version- Returns:
- the enhanced search query
-
getArchiveVersion
Returns the archive version of the event.- Returns:
- the archive version
-
withAgentId
Selects recordings with the given agent id.- Parameters:
agentId- the agent id- Returns:
- the enhanced search query
-
getAgentId
Returns the agent id of the recording.- Returns:
- the agent id
-
withTechnicalStartTime
Selects recordings with the given technical start date.- Parameters:
technicalStartTime- the start date- Returns:
- the enhanced search query
-
getTechnicalStartTime
Returns the technical start date of the recording.- Returns:
- the technical start date
-
withTechnicalEndTime
Selects recordings with the given technical end date.- Parameters:
technicalEndTime- the end date- Returns:
-
getTechnicalEndTime
Returns the technical end date of the recording.- Returns:
- the technical end date
-
withTechnicalPresenters
Selects recording events with the given technical presenters.Note that this method may be called multiple times to support selection of multiple recording events.
- Parameters:
presenter- the presenter- Returns:
- the enhanced search query
-
getTechnicalPresenters
Returns the list of technical presenters or an empty array if no presenters have been specified.- Returns:
- the technical presenters
-
sortByStartDate
public EventSearchQuery sortByStartDate(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the recording start date.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getStartDateSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getStartDateSortOrder()Returns the sort order for the recording start date.- Returns:
- the sort order
-
sortByTechnicalStartDate
public EventSearchQuery sortByTechnicalStartDate(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the technical recording start date.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getTechnicalStartDateSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getTechnicalStartDateSortOrder()Returns the sort order for the technical recording start date.- Returns:
- the sort order
-
sortByEndDate
Defines the sort order for the recording end date.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getEndDateSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getEndDateSortOrder()Returns the sort order for the recording end date.- Returns:
- the sort order
-
sortByTechnicalEndDate
public EventSearchQuery sortByTechnicalEndDate(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the technical recording end date.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getTechnicalEndDateSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getTechnicalEndDateSortOrder()Returns the sort order for the technical recording end date.- Returns:
- the sort order
-
sortByDate
Defines the sort order for the recording date.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getDateSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getDateSortOrder()Returns the sort order for the recording date.- Returns:
- the sort order
-
sortByTitle
Defines the sort order for the recording date.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getTitleSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getTitleSortOrder()Returns the sort order for the recording start date.- Returns:
- the sort order
-
sortByUID
-
getUIDSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getUIDSortOrder() -
sortByPresenter
public EventSearchQuery sortByPresenter(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the recording date.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getPresentersSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getPresentersSortOrder()Returns the sort order for the recording start date.- Returns:
- the sort order
-
sortByLocation
Defines the sort order for the location.- Parameters:
order- the sort order- Returns:
- the updated query
-
getLocationSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getLocationSortOrder()Returns the sort order for the location.- Returns:
- the sort order
-
sortBySeriesName
public EventSearchQuery sortBySeriesName(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series name.- Parameters:
order- the sort order- Returns:
- the updated query
-
getSeriesNameSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesNameSortOrder()Returns the sort order for the series name.- Returns:
- the sort order
-
sortByManagedAcl
public EventSearchQuery sortByManagedAcl(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the managed ACL.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getManagedAclSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getManagedAclSortOrder()Returns the sort order for the series managed ACL.- Returns:
- the sort order
-
sortByWorkflowState
public EventSearchQuery sortByWorkflowState(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the workflow state.- Parameters:
order- the sort order- Returns:
- the updated query
-
getWorkflowStateSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getWorkflowStateSortOrder()Returns the sort order for the workflow state.- Returns:
- the sort order
-
sortByEventStatus
public EventSearchQuery sortByEventStatus(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the event status.- Parameters:
order- the sort order- Returns:
- the updated query
-
getEventStatusSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getEventStatusSortOrder()Returns the sort order for the event status.- Returns:
- the sort order
-
sortByPublicationIgnoringInternal
public EventSearchQuery sortByPublicationIgnoringInternal(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for publication.- Parameters:
order- the sort order- Returns:
- the updated query
-
getPublicationSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getPublicationSortOrder()Returns the sort order for the publication.- Returns:
- the sort order
-