public static interface ContentService.ParameterContentFinder extends ContentService.ContentFetcher
This interface exists primarily to separate out the methods that identify a single piece of content, to those that restrict a collection of content based on a parameter.
Modifier and Type | Method and Description |
---|---|
ContentService.ContentFinder |
withAnyStatus()
Don't restrict the fetched content on status.
|
ContentService.ParameterContentFinder |
withContainer(Container container)
Restrict the fetched content to those with the given Container, this will by proxy
restrict to certain types of content, as different types of content can have different
types of containers.
|
ContentService.ParameterContentFinder |
withCreatedDate(org.joda.time.LocalDate time)
Restrict the fetched content to those created / published on the given date
|
ContentService.ParameterContentFinder |
withId(ContentId first,
ContentId... tail)
Restrict the fetched content to those with the given ids, requires at least
two ContentIds.
|
ContentService.ParameterContentFinder |
withId(Iterable<ContentId> contentIds)
Restrict the fetched content to those with the given ids
|
ContentService.ParameterContentFinder |
withSpace(Space... space)
Restrict the fetched content to those in the given spaces.
|
ContentService.ContentFinder |
withStatus(ContentStatus... status)
Restrict the fetched content to that matching the given statuses.
|
ContentService.ContentFinder |
withStatus(Iterable<ContentStatus> statuses)
Restrict the fetched content to that matching the given statuses.
|
ContentService.ParameterContentFinder |
withTitle(String title)
Restrict the fetched content to those with the given title
|
ContentService.ParameterContentFinder |
withType(ContentType... type)
Restrict the fetched content to those matching the given contentType
|
fetchMany, fetchMappedByContentType
fetch, fetchOne, fetchOneOrNull, fetchOrNull
ContentService.ParameterContentFinder withSpace(Space... space)
Currently only fetching by a single space is supported
space
- the spaces to restrict the found content toContentService.ParameterContentFinder withType(ContentType... type)
type
- - the contentType to restrict toContentService.ParameterContentFinder withCreatedDate(org.joda.time.LocalDate time)
time
- - the publish date to restrict the contentContentService.ParameterContentFinder withTitle(String title)
title
- the title to restrict the content toContentService.ParameterContentFinder withContainer(Container container)
container
- the container to restrict the content toContentService.ParameterContentFinder withId(ContentId first, ContentId... tail)
ContentService.ParameterContentFinder withId(Iterable<ContentId> contentIds)
contentIds
- - the list of contentIds to restrict toContentService.ContentFinder withStatus(ContentStatus... status)
Default status is "current" - only current content is found.
status
- - the ContentStatus(es) to restrict toContentService.ContentFinder withStatus(Iterable<ContentStatus> statuses)
Default status is "current" - only current content is found.
statuses
- an iterable of ContentStatus(es) to restrict toContentService.ContentFinder withAnyStatus()
Default status is "current" - if this method is not called, only current content is found.
Copyright © 2003–2020 Atlassian. All rights reserved.