public class NoopContentFinder extends NoopFetcher<Content> implements ContentService.ContentFinder
Constructor and Description |
---|
NoopContentFinder() |
Modifier and Type | Method and Description |
---|---|
PageResponse<Content> |
fetchMany(ContentType type,
PageRequest request) |
Map<ContentType,PageResponse<Content>> |
fetchMappedByContentType(PageRequest request) |
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.SingleContentFetcher |
withId(ContentId contentId)
Restrict the fetched content to that with the given ContentId
|
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.SingleContentFetcher |
withIdAndVersion(ContentId contentId,
int version)
Restrict the fetched content to that matching the given version
|
ContentService.SingleContentFetcher |
withLocator(ContentLocator locator)
Restrict the fetched content to that matching the given ContentLocator, a ContentLocator
identifies a single piece of content.
|
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, fetchOne, fetchOneOrNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fetch, fetchOne, fetchOneOrNull, fetchOrNull
public ContentService.SingleContentFetcher withId(ContentId contentId)
ContentService.ContentFinder
withId
in interface ContentService.ContentFinder
contentId
- the id of the content to fetchpublic ContentService.SingleContentFetcher withIdAndVersion(ContentId contentId, int version)
ContentService.ContentFinder
withIdAndVersion
in interface ContentService.ContentFinder
public ContentService.SingleContentFetcher withLocator(ContentLocator locator)
ContentService.ContentFinder
withLocator
in interface ContentService.ContentFinder
locator
- the content locator to use to find the contentpublic ContentService.ParameterContentFinder withSpace(Space... space)
ContentService.ParameterContentFinder
Currently only fetching by a single space is supported
withSpace
in interface ContentService.ParameterContentFinder
space
- the spaces to restrict the found content topublic ContentService.ParameterContentFinder withType(ContentType... type)
ContentService.ParameterContentFinder
withType
in interface ContentService.ParameterContentFinder
type
- - the contentType to restrict topublic ContentService.ParameterContentFinder withCreatedDate(org.joda.time.LocalDate time)
ContentService.ParameterContentFinder
withCreatedDate
in interface ContentService.ParameterContentFinder
time
- - the publish date to restrict the contentpublic ContentService.ParameterContentFinder withTitle(String title)
ContentService.ParameterContentFinder
withTitle
in interface ContentService.ParameterContentFinder
title
- the title to restrict the content topublic ContentService.ParameterContentFinder withContainer(Container container)
ContentService.ParameterContentFinder
withContainer
in interface ContentService.ParameterContentFinder
container
- the container to restrict the content topublic ContentService.ParameterContentFinder withId(ContentId first, ContentId... tail)
ContentService.ParameterContentFinder
withId
in interface ContentService.ParameterContentFinder
public ContentService.ParameterContentFinder withId(Iterable<ContentId> contentIds)
ContentService.ParameterContentFinder
withId
in interface ContentService.ParameterContentFinder
contentIds
- - the list of contentIds to restrict topublic ContentService.ContentFinder withStatus(ContentStatus... status)
ContentService.ParameterContentFinder
Default status is "current" - only current content is found.
withStatus
in interface ContentService.ParameterContentFinder
status
- - the ContentStatus(es) to restrict topublic ContentService.ContentFinder withStatus(Iterable<ContentStatus> statuses)
ContentService.ParameterContentFinder
Default status is "current" - only current content is found.
withStatus
in interface ContentService.ParameterContentFinder
statuses
- an iterable of ContentStatus(es) to restrict topublic ContentService.ContentFinder withAnyStatus()
ContentService.ParameterContentFinder
Default status is "current" - if this method is not called, only current content is found.
withAnyStatus
in interface ContentService.ParameterContentFinder
public PageResponse<Content> fetchMany(ContentType type, PageRequest request) throws ServiceException
fetchMany
in interface ContentService.ContentFetcher
ServiceException
public Map<ContentType,PageResponse<Content>> fetchMappedByContentType(PageRequest request) throws ServiceException
fetchMappedByContentType
in interface ContentService.ContentFetcher
ServiceException
Copyright © 2003–2021 Atlassian. All rights reserved.