Class SeriesListQuery
java.lang.Object
org.opencastproject.list.api.DefaultResourceListQuery
org.opencastproject.list.common.query.SeriesListQuery
- All Implemented Interfaces:
ResourceListQuery
Query for the series list.
The following filters can be used:
- contributors
- subject
- language
- creator
- license
- access policy
- creation date
-
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 StringFields inherited from class org.opencastproject.list.api.DefaultResourceListQuery
availableFilters, sortBy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceListFilter<String> createContributorsFilter(Optional<String> contributor) Create a newResourceListFilterbased on a contributorstatic ResourceListFilter<Tuple<Date, Date>> createCreationDateFilter(Optional<Tuple<Date, Date>> period) Create a newResourceListFilterbased on creation date periodstatic ResourceListFilter<String> createCreatorFilter(Optional<String> creator) Create a newResourceListFilterbased on a creatorstatic ResourceListFilter<String> createLanguageFilter(Optional<String> language) Create a newResourceListFilterbased on a languagestatic ResourceListFilter<String> createLicenseFilter(Optional<String> license) Create a newResourceListFilterbased on a licensestatic ResourceListFilter<String> createOrganizersFilter(Optional<String> organizer) Create a newResourceListFilterbased on a organizerstatic ResourceListFilter<String> createReadAccessFilter(Optional<String> readAccess) Create a newResourceListFilterbased on a read rolestatic ResourceListFilter<Boolean> static ResourceListFilter<String> createSubjectFilter(Optional<String> subject) Create a newResourceListFilterbased on a subjectstatic ResourceListFilter<String> createTitleFilter(Optional<String> title) Create a newResourceListFilterbased on a titlestatic ResourceListFilter<String> createWriteAccessFilter(Optional<String> writeAccess) Create a newResourceListFilterbased on a write rolestatic ResourceListFilter<Boolean> Returns anOptionalcontaining the contributor used to filter if setReturns anOptionalcontaining the creation date period used to filter if setReturns anOptionalcontaining the creator used to filter if setReturns anOptionalcontaining the language used to filter if setReturns anOptionalcontaining the license used to filter if setReturns anOptionalcontaining the organizer used to filter if setReturns anOptionalcontaining the subject used to filter if setgetTitle()Returns anOptionalcontaining the title used to filter if setvoidwithContributor(String contributor) Add aResourceListFilterfilter to the query with the given contributorvoidwithCreationDate(Tuple<Date, Date> creationDate) Add aResourceListFilterfilter to the query with the given creation date periodvoidwithCreator(String creator) Add aResourceListFilterfilter to the query with the given creatorvoidwithLanguage(String language) Add aResourceListFilterfilter to the query with the given languagevoidwithLicense(String license) Add aResourceListFilterfilter to the query with the given licensevoidwithOrganizer(String organizer) Add aResourceListFilterfilter to the query with the given organizervoidvoidwithReadPermission(boolean value) voidwithSubject(String subject) Add aResourceListFilterfilter to the query with the given subjectvoidAdd aResourceListFilterfilter to the query with the given titlevoidwithWritePermission(boolean value) Methods inherited from class org.opencastproject.list.api.DefaultResourceListQuery
addFilter, getAvailableFilters, getFilter, getFilters, getFilterValue, getLimit, getOffset, getSortBy, hasFilter, removeFilter, setLimit, setOffset
-
Field Details
-
FILTER_ACL_NAME
- See Also:
-
FILTER_ACL_PERMISSION_READ_NAME
- See Also:
-
FILTER_ACL_PERMISSION_WRITE_NAME
- See Also:
-
FILTER_CONTRIBUTORS_NAME
- See Also:
-
FILTER_CREATIONDATE_NAME
- See Also:
-
FILTER_CREATOR_NAME
- See Also:
-
FILTER_TEXT_NAME
- See Also:
-
FILTER_LANGUAGE_NAME
- See Also:
-
FILTER_LICENSE_NAME
- See Also:
-
FILTER_ORGANIZERS_NAME
- See Also:
-
FILTER_SUBJECT_NAME
- See Also:
-
FILTER_TITLE_NAME
- 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
-
SeriesListQuery
public SeriesListQuery()
-
-
Method Details
-
withoutPermissions
public void withoutPermissions() -
withReadPermission
public void withReadPermission(boolean value) -
withWritePermission
public void withWritePermission(boolean value) -
getReadPermission
-
getWritePermission
-
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.
-
withCreationDate
Add aResourceListFilterfilter to the query with the given creation date period -
getCreationDate
Returns anOptionalcontaining the creation date period used to filter if set- Returns:
- an
Optionalcontaining the creation date period or none.
-
withCreator
Add aResourceListFilterfilter to the query with the given creator- Parameters:
creator- the creator to filter for
-
getCreator
Returns anOptionalcontaining the creator used to filter if set- Returns:
- an
Optionalcontaining the creator or none.
-
withLanguage
Add aResourceListFilterfilter to the query with the given language- Parameters:
language- the language to filter for
-
getLanguage
Returns anOptionalcontaining the language used to filter if set- Returns:
- an
Optionalcontaining the language or none.
-
withLicense
Add aResourceListFilterfilter to the query with the given license- Parameters:
license- the license to filter for
-
getLicense
Returns anOptionalcontaining the license used to filter if set- Returns:
- an
Optionalcontaining the license or none.
-
withOrganizer
Add aResourceListFilterfilter to the query with the given organizer- Parameters:
organizer- the organizer to filter for
-
getOrganizer
Returns anOptionalcontaining the organizer used to filter if set- Returns:
- an
Optionalcontaining the organizer or none.
-
withSubject
Add aResourceListFilterfilter to the query with the given subject- Parameters:
subject- the subject to filter for
-
getSubject
Returns anOptionalcontaining the subject used to filter if set- Returns:
- an
Optionalcontaining the subject or none.
-
withTitle
Add aResourceListFilterfilter to the query with the given title- Parameters:
title- the subject to filter for
-
getTitle
Returns anOptionalcontaining the title used to filter if set- Returns:
- an
Optionalcontaining the title or none.
-
createReadPermissionFilter
-
createWritePermissionFilter
-
createContributorsFilter
Create a newResourceListFilterbased on a contributor- Parameters:
contributor- the contributor's name to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a contributor based query
-
createCreatorFilter
Create a newResourceListFilterbased on a creator- Parameters:
creator- the creator to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a creator based query
-
createCreationDateFilter
public static ResourceListFilter<Tuple<Date,Date>> createCreationDateFilter(Optional<Tuple<Date, Date>> period) Create a newResourceListFilterbased on creation date period- Parameters:
period- the period to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor the given period
-
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
-
createLicenseFilter
Create a newResourceListFilterbased on a license- Parameters:
license- the license to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a license based query
-
createOrganizersFilter
Create a newResourceListFilterbased on a organizer- Parameters:
organizer- the organizer to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a organizer based query
-
createSubjectFilter
Create a newResourceListFilterbased on a subject- Parameters:
subject- the subject to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a subject based query
-
createTitleFilter
Create a newResourceListFilterbased on a title- Parameters:
title- the title to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a title 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
-