Class SeriesSearchQuery
java.lang.Object
org.opencastproject.elasticsearch.impl.AbstractSearchQuery
org.opencastproject.elasticsearch.index.objects.series.SeriesSearchQuery
- All Implemented Interfaces:
org.opencastproject.elasticsearch.api.SearchQuery
public class SeriesSearchQuery
extends org.opencastproject.elasticsearch.impl.AbstractSearchQuery
This interface defines a fluent api for a query object used to lookup series in the search index.
-
Field Summary
FieldsFields inherited from class org.opencastproject.elasticsearch.impl.AbstractSearchQuery
fields, filter, fuzzySearch, limit, offset, text, types -
Constructor Summary
ConstructorsConstructorDescriptionSeriesSearchQuery(String organization, org.opencastproject.security.api.User user) Creates a query that will return series documents. -
Method Summary
Modifier and TypeMethodDescriptionReturns the access policy of the series.String[]Returns the list of actions or an empty array if no actions have been specified.String[]Returns the list of series contributors or an empty array if no contributor have been specified.Returns the creator of the series.Returns the description of the series.String[]Returns the list of series identifiers or an empty array if no identifiers have been specified.Returns the language of the series.Returns the license of the series.Returns the name of the managed ACL set to the series.Returns the organization of the series.String[]Returns the list of series organizers or an empty array if no organizers have been specified.String[]Returns an array of series publishers or an empty array if no publisher has been specified.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series managed ACL.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series organizers.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series created date.org.opencastproject.util.requests.SortCriterion.OrderReturns the sort order for the series title.String[]Returns the list of recording subjects or an empty array if no subject have been specified.getTheme()Returns the theme of the series.getTitle()Returns the title of the series.org.opencastproject.security.api.UsergetUser()Returns the user of this search querybooleansortByContributors(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.sortByCreatedDateTime(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series created date & time.sortByCreator(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.sortByDescription(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.sortByIdentifer(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.sortByLanguage(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.sortByLicense(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.sortByManagedAcl(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the managed ACL.sortByOrganizers(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by organizers.sortByPublishers(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.sortByRightsHolder(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.sortBySubject(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.sortByTitle(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by title.protected StringsortOrderFieldName(String field) toString()withAccessPolicy(String accessPolicy) Selects series with the given access policy.withAction(org.opencastproject.security.api.Permissions.Action action) Filter the series with the given action.withContributor(String contributor) Selects series with the given contributor.withCreatedFrom(Date createdFrom) The created date to start looking for series.withCreatedTo(Date createdTo) The created date to stop looking for series.withCreator(String creator) Selects series with the given creator.withDescription(String description) Selects series with the given description.withIdentifier(String id) Selects series with the given identifier.withLanguage(String language) Selects series with the given language.withLicense(String license) Selects series with the given license.withManagedAcl(String managedAcl) Selects series with the given managed ACL name.withOrganizer(String organizer) Selects series with the given organizers.Filter the series without any action checked.withPublisher(String publisher) Select series with the given publisherswithRightsHolder(String rightsHolder) withSubject(String subject) Selects series with the given subject.withTheme(long theme) Selects series with the given theme.Selects series with the given title.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
-
Field Details
-
identifiers
-
-
Constructor Details
-
SeriesSearchQuery
Creates a query that will return series documents.
-
-
Method Details
-
sortOrderFieldName
- Specified by:
sortOrderFieldNamein classorg.opencastproject.elasticsearch.impl.AbstractSearchQuery
-
withIdentifier
Selects series with the given identifier.Note that this method may be called multiple times to support selection of multiple series.
- Parameters:
id- the series identifier- Returns:
- the enhanced search query
-
getIdentifier
Returns the list of series identifiers or an empty array if no identifiers have been specified.- Returns:
- the identifiers
-
withTitle
Selects series with the given title.- Parameters:
title- the title- Returns:
- the enhanced search query
-
getTitle
Returns the title of the series.- Returns:
- the title
-
withoutActions
Filter the series without any action checked.- Returns:
- the enhanced search query
-
withAction
Filter the series 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
-
withDescription
Selects series with the given description.- Parameters:
description- the description- Returns:
- the enhanced search query
-
getDescription
Returns the description of the series.- Returns:
- the description
-
withSubject
Selects series with the given subject.Note that this method may be called multiple times to support selection of multiple series.
- Parameters:
subject- the subject- Returns:
- the enhanced search query
-
getSubjects
Returns the list of recording subjects or an empty array if no subject have been specified.- Returns:
- the subjects
-
getOrganization
Returns the organization of the series.- 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
-
withLanguage
Selects series with the given language.- Parameters:
language- the language- Returns:
- the enhanced search query
-
getLanguage
Returns the language of the series.- Returns:
- the language
-
withCreator
Selects series with the given creator.- Parameters:
creator- the creator- Returns:
- the enhanced search query
-
getCreator
Returns the creator of the series.- Returns:
- the creator
-
withLicense
Selects series with the given license.- Parameters:
license- the license- Returns:
- the enhanced search query
-
getLicense
Returns the license of the series.- Returns:
- the license
-
withAccessPolicy
Selects series with the given access policy.- Parameters:
accessPolicy- the access policy- Returns:
- the enhanced search query
-
getAccessPolicy
Returns the access policy of the series.- Returns:
- the access policy
-
withTheme
Selects series with the given theme.- Parameters:
theme- the theme- Returns:
- the enhanced search query
-
getTheme
Returns the theme of the series.- Returns:
- the theme
-
withManagedAcl
Selects series 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 series.- Returns:
- the name of the managed ACL
-
withOrganizer
Selects series with the given organizers.Note that this method may be called multiple times to support selection of multiple series.
- Parameters:
organizer- the organizer- Returns:
- the enhanced search query
-
getOrganizers
Returns the list of series organizers or an empty array if no organizers have been specified.- Returns:
- the organizers
-
withContributor
Selects series with the given contributor.Note that this method may be called multiple times to support selection of multiple contributors.
- Parameters:
contributor- the contributor- Returns:
- the enhanced search query
-
getContributors
Returns the list of series contributors or an empty array if no contributor have been specified.- Returns:
- the contributors
-
withPublisher
Select series with the given publishers- Parameters:
publisher- The publisher to add to the search query.- Returns:
- This query with the added publisher
-
getPublishers
Returns an array of series publishers or an empty array if no publisher has been specified.- Returns:
- The publishers
-
withCreatedFrom
The created date to start looking for series.- Parameters:
createdFrom- The created date to start looking for series- Returns:
- the enhanced search query
-
getCreatedFrom
- Returns:
- The Date after which all series returned should have been created
-
withCreatedTo
The created date to stop looking for series.- Parameters:
createdTo- The created date to stop looking for series- Returns:
- the enhanced search query
-
getCreatedTo
- Returns:
- The Date before which all series returned should have been created
-
withEdit
- Parameters:
edit- True to only get series with edit permissions- Returns:
- enhanced search query
-
isEditOnly
public boolean isEditOnly()- Returns:
- True to only get series that this user can edit.
-
withRightsHolder
- Parameters:
rightsHolder- The rights holder to search for- Returns:
- enhanced query
-
getRightsHolder
- Returns:
- The rights holder to search for
-
sortByIdentifer
public SeriesSearchQuery sortByIdentifer(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesIdentifierSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesIdentifierSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortBySubject
Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesSubjectSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesSubjectSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByCreator
Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesCreatorSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesCreatorSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByPublishers
public SeriesSearchQuery sortByPublishers(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesPublishersSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesPublishersSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByDescription
public SeriesSearchQuery sortByDescription(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesDescriptionSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesDescriptionSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByLanguage
public SeriesSearchQuery sortByLanguage(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesLanguageSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesLanguageSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByRightsHolder
public SeriesSearchQuery sortByRightsHolder(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesRightsHolderSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesRightsHolderSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByLicense
Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesLicenseSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesLicenseSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByContributors
public SeriesSearchQuery sortByContributors(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesContributorsSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesContributorsSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByManagedAcl
public SeriesSearchQuery 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
-
getSeriesManagedAclSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesManagedAclSortOrder()Returns the sort order for the series managed ACL.- Returns:
- the sort order
-
sortByCreatedDateTime
public SeriesSearchQuery sortByCreatedDateTime(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series created date & time.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesDateSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesDateSortOrder()Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByOrganizers
public SeriesSearchQuery sortByOrganizers(org.opencastproject.util.requests.SortCriterion.Order order) Defines the sort order for the series by organizers.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesOrganizersSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesOrganizersSortOrder()Returns the sort order for the series organizers.- Returns:
- the sort order
-
sortByTitle
Defines the sort order for the series by title.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesTitleSortOrder
public org.opencastproject.util.requests.SortCriterion.Order getSeriesTitleSortOrder()Returns the sort order for the series title.- Returns:
- the sort order
-
toString
-