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, fetchOneOrNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfetch, fetchOne, fetchOneOrNull, fetchOrNullpublic ContentService.SingleContentFetcher withId(ContentId contentId)
ContentService.ContentFinderwithId in interface ContentService.ContentFindercontentId - the id of the content to fetchpublic ContentService.SingleContentFetcher withIdAndVersion(ContentId contentId, int version)
ContentService.ContentFinderwithIdAndVersion in interface ContentService.ContentFinderpublic ContentService.SingleContentFetcher withLocator(ContentLocator locator)
ContentService.ContentFinderwithLocator in interface ContentService.ContentFinderlocator - the content locator to use to find the contentpublic ContentService.ParameterContentFinder withSpace(Space... space)
ContentService.ParameterContentFinderCurrently only fetching by a single space is supported
withSpace in interface ContentService.ParameterContentFinderspace - the spaces to restrict the found content topublic ContentService.ParameterContentFinder withType(ContentType... type)
ContentService.ParameterContentFinderwithType in interface ContentService.ParameterContentFindertype - - the contentType to restrict topublic ContentService.ParameterContentFinder withCreatedDate(org.joda.time.LocalDate time)
ContentService.ParameterContentFinderwithCreatedDate in interface ContentService.ParameterContentFindertime - - the publish date to restrict the contentpublic ContentService.ParameterContentFinder withTitle(String title)
ContentService.ParameterContentFinderwithTitle in interface ContentService.ParameterContentFindertitle - the title to restrict the content topublic ContentService.ParameterContentFinder withContainer(Container container)
ContentService.ParameterContentFinderwithContainer in interface ContentService.ParameterContentFindercontainer - the container to restrict the content topublic ContentService.ParameterContentFinder withId(ContentId first, ContentId... tail)
ContentService.ParameterContentFinderwithId in interface ContentService.ParameterContentFinderpublic ContentService.ParameterContentFinder withId(Iterable<ContentId> contentIds)
ContentService.ParameterContentFinderwithId in interface ContentService.ParameterContentFindercontentIds - - 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.ParameterContentFinderstatus - - 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.ParameterContentFinderstatuses - 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.ParameterContentFinderpublic PageResponse<Content> fetchMany(ContentType type, PageRequest request) throws ServiceException
fetchMany in interface ContentService.ContentFetcherServiceExceptionpublic Map<ContentType,PageResponse<Content>> fetchMappedByContentType(PageRequest request) throws ServiceException
fetchMappedByContentType in interface ContentService.ContentFetcherServiceExceptionCopyright © 2003–2022 Atlassian. All rights reserved.