Class SeriesSearchQuery
java.lang.Object
org.opencastproject.elasticsearch.impl.AbstractSearchQuery
org.opencastproject.elasticsearch.index.objects.series.SeriesSearchQuery
- All Implemented Interfaces:
SearchQuery
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, 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.Returns the sort order for the series created date.Returns the sort order for the series created date.Returns the sort order for the series created date.Returns the sort order for the series created date.Returns the sort order for the series created date.Returns the sort order for the series created date.Returns the sort order for the series created date.Returns the sort order for the series managed ACL.Returns the sort order for the series organizers.Returns the sort order for the series created date.Returns the sort order for the series created date.Returns the sort order for the series created date.Returns 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.getUser()Returns the user of this search querybooleanDefines the sort order for the series by contributors.Defines the sort order for the series created date & time.sortByCreator(SortCriterion.Order order) Defines the sort order for the series by contributors.Defines the sort order for the series by contributors.Defines the sort order for the series by contributors.Defines the sort order for the series by contributors.sortByLicense(SortCriterion.Order order) Defines the sort order for the series by contributors.Defines the sort order for the managed ACL.Defines the sort order for the series by organizers.Defines the sort order for the series by contributors.Defines the sort order for the series by contributors.sortBySubject(SortCriterion.Order order) Defines the sort order for the series by contributors.sortByTitle(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(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 classAbstractSearchQuery
-
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
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
Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
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
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
Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByPublishers
Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesPublishersSortOrder
Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByDescription
Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesDescriptionSortOrder
Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByLanguage
Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesLanguageSortOrder
Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByRightsHolder
Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
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
Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByContributors
Defines the sort order for the series by contributors.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesContributorsSortOrder
Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByManagedAcl
Defines the sort order for the managed ACL.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesManagedAclSortOrder
Returns the sort order for the series managed ACL.- Returns:
- the sort order
-
sortByCreatedDateTime
Defines the sort order for the series created date & time.- Parameters:
order- the order- Returns:
- the enhanced search query
-
getSeriesDateSortOrder
Returns the sort order for the series created date.- Returns:
- the sort order
-
sortByOrganizers
Defines the sort order for the series by organizers.- Parameters:
order- the order- Returns:
- the enhanced search query
-
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
Returns the sort order for the series title.- Returns:
- the sort order
-
toString
-