public class ContentEntityObjectHibernateDao extends VersionedHibernateObjectDao implements ContentEntityObjectDao
| Modifier and Type | Field and Description |
|---|---|
static long |
ONE_DAY |
cacheFactory, confluenceUserDaoNON_CACHEABLE| Constructor and Description |
|---|
ContentEntityObjectHibernateDao() |
| 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() |
protected ContentEntityObject |
getByClassId(long id)
Retrieve the object with a particular id from the database.
|
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 2.10. 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.
|
Class |
getPersistentClass() |
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) |
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationDatafindAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, uniqueResultcheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindLatestVersionsCount, findLatestVersionsIterator, savefindAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRawpublic static final long ONE_DAY
public Class getPersistentClass()
getPersistentClass in interface ObjectDaopublic ContentEntityObject getById(long id)
getById in interface ContentEntityObjectDaoprotected ContentEntityObject getByClassId(long id)
HibernateObjectDaogetByClassId in class HibernateObjectDaoid - the id of the object to look uppublic List getContentAuthoredByUser(String username)
getContentAuthoredByUser in interface ContentEntityObjectDaopublic Iterator getAllCurrentEntities()
getAllCurrentEntities in interface ContentEntityObjectDaopublic Iterator getRecentlyAddedEntities(String spaceKey, int maxResults)
getRecentlyAddedEntities in interface ContentEntityObjectDaopublic Iterator getRecentlyModifiedEntities(int maxResults)
getRecentlyModifiedEntities in interface ContentEntityObjectDaopublic Iterator getRecentlyModifiedEntities(String spaceKey, int maxResults)
getRecentlyModifiedEntities in interface ContentEntityObjectDaopublic Iterator getRecentlyModifiedEntitiesForUser(String username)
getRecentlyModifiedEntitiesForUser in interface ContentEntityObjectDaopublic ContentEntityObject getFirstVersionBefore(long originalVersionContentId, int version)
getFirstVersionBefore in interface ContentEntityObjectDaopublic ContentEntityObject getFirstVersionAfter(long originalVersionContentId, int version)
getFirstVersionAfter in interface ContentEntityObjectDaopublic ContentEntityObject getVersion(long originalVersionContentId, int version)
getVersion in interface ContentEntityObjectDaopublic List getRecentlyModifiedForChangeDigest(Date fromDate)
ContentEntityObjectDaoContentEntityObjects that have been newly added or modified
since the date specified. This list excludes drafts, space descriptions and mail.getRecentlyModifiedForChangeDigest in interface ContentEntityObjectDaofromDate - content modified after this date will be returnedContentEntityObjects that have been newly added or modified
since the date specifiedpublic List<ContentEntityObject> getLastEditedVersionsOf(ContentEntityObject content)
ContentEntityObjectDaogetLastEditedVersionsOf in interface ContentEntityObjectDaocontent - latest version@Deprecated public List getLockedContentBySpace(String spaceKey)
getLockedContentBySpace in interface ContentEntityObjectDaopublic List getTrashedContent(String spaceKey)
getTrashedContent in interface ContentEntityObjectDaopublic List<ContentEntityObject> findContentBySpaceIdAndStatus(long spaceId, String status, int offset, int count)
ContentEntityObjectDaofindContentBySpaceIdAndStatus in interface ContentEntityObjectDaospaceId - 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 retrievepublic PageResponse<ContentEntityObject> findContentBySpaceIdAndStatus(long spaceId, String status, LimitedRequest limitedRequest, com.google.common.base.Predicate<Page> predicate)
ContentEntityObjectDaofindContentBySpaceIdAndStatus in interface ContentEntityObjectDaospaceId - 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 bypublic int countContentBySpaceIdAndStatus(long spaceId,
String status)
ContentEntityObjectDaocountContentBySpaceIdAndStatus in interface ContentEntityObjectDaospaceId - the id of the spacestatus - the status of the content being retrieved (e.g. ContentEntityObject.DELETEDpublic String getObjectType(long id)
getObjectType in interface ContentEntityObjectDaopublic List<VersionHistorySummary> getVersionHistorySummary(long originalContentId)
getVersionHistorySummary in interface ContentEntityObjectDaopublic List findPreviousVersions(long originalContentId)
findPreviousVersions in interface ContentEntityObjectDaopublic List findHistoricalVersionsAfterVersion(long originalContentId, int version)
findHistoricalVersionsAfterVersion in interface ContentEntityObjectDaopublic Date getOldestPageCreationDate()
ContentEntityObjectDaogetOldestPageCreationDate in interface ContentEntityObjectDaoCopyright © 2003–2016 Atlassian. All rights reserved.