public interface ContentEntityObjectDao extends VersionedObjectDao
NON_CACHEABLE| Modifier and Type | Method and Description |
|---|---|
int |
countContentBySpaceIdAndStatus(long spaceId,
String status)
Retrieve the count of content for a given space with a particular status.
|
List<ContentEntityObject> |
findContentBySpaceIdAndStatus(long spaceId,
String status,
int offset,
int count)
Retrieve content for a given space with a particular status.
|
PageResponse<ContentEntityObject> |
findContentBySpaceIdAndStatus(long spaceId,
String status,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<Page> predicate)
Retrieve content for a given space with a particular status.
|
List |
findHistoricalVersionsAfterVersion(long originalContentId,
int version) |
List |
findPreviousVersions(long originalContentId) |
Iterator |
getAllCurrentEntities() |
ContentEntityObject |
getById(long id) |
List |
getContentAuthoredByUser(String username) |
ContentEntityObject |
getFirstVersionAfter(long originalVersionContentId,
int version) |
ContentEntityObject |
getFirstVersionBefore(long originalVersionContentId,
int version) |
List<ContentEntityObject> |
getLastEditedVersionsOf(ContentEntityObject content)
Retrieves all the last edited versions for each user who has contributed to the specified piece of content.
|
List |
getLockedContentBySpace(String spaceKey)
Deprecated.
since 5.1. There is no replacement as this functionality was superseded by
multiple page permissions (CONF-3701)
|
String |
getObjectType(long id) |
Date |
getOldestPageCreationDate()
Gets the creation date of the oldest page.
|
Iterator |
getRecentlyAddedEntities(String spaceKey,
int maxResults) |
Iterator |
getRecentlyModifiedEntities(int maxResults) |
Iterator |
getRecentlyModifiedEntities(String spaceKey,
int maxResults) |
Iterator |
getRecentlyModifiedEntitiesForUser(String username) |
List |
getRecentlyModifiedForChangeDigest(Date fromDate)
Retrieves a list of
ContentEntityObjects that have been newly added or modified
since the date specified. |
List |
getTrashedContent(String spaceKey) |
ContentEntityObject |
getVersion(long originalVersionContentId,
int version) |
List<VersionHistorySummary> |
getVersionHistorySummary(long originalContentId) |
findLatestVersionsCount, findLatestVersionsIterator, savefindAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRawContentEntityObject getById(long id)
Iterator getAllCurrentEntities()
Iterator getRecentlyModifiedEntities(int maxResults)
List getRecentlyModifiedForChangeDigest(Date fromDate)
ContentEntityObjects that have been newly added or modified
since the date specified. This list excludes drafts, space descriptions and mail.fromDate - content modified after this date will be returnedContentEntityObjects that have been newly added or modified
since the date specified@Deprecated List getLockedContentBySpace(String spaceKey)
String getObjectType(long id)
ContentEntityObject getFirstVersionBefore(long originalVersionContentId, int version)
ContentEntityObject getFirstVersionAfter(long originalVersionContentId, int version)
ContentEntityObject getVersion(long originalVersionContentId, int version)
List<VersionHistorySummary> getVersionHistorySummary(long originalContentId)
List findPreviousVersions(long originalContentId)
List findHistoricalVersionsAfterVersion(long originalContentId, int version)
List<ContentEntityObject> getLastEditedVersionsOf(ContentEntityObject content)
content - content (must be the latest version)IllegalArgumentException - if the content is not the latest version or nullList<ContentEntityObject> findContentBySpaceIdAndStatus(long spaceId, String status, int offset, int count)
spaceId - the id of the spacestatus - the status of the content being retrieved (e.g. ContentEntityObject.DELETEDoffset - the offset of the first item to retrieve (0-based)count - the maximum number of items to retrievePageResponse<ContentEntityObject> findContentBySpaceIdAndStatus(long spaceId, String status, LimitedRequest limitedRequest, com.google.common.base.Predicate<Page> predicate)
spaceId - the id of the spacestatus - the status of the content being retrieved (e.g. ContentEntityObject.DELETEDlimitedRequest - - the start and offset of the pages to retrievepredicate - - a predicate to filter the returned results byint countContentBySpaceIdAndStatus(long spaceId,
String status)
spaceId - the id of the spacestatus - the status of the content being retrieved (e.g. ContentEntityObject.DELETEDDate getOldestPageCreationDate()
Copyright © 2003–2016 Atlassian. All rights reserved.