com.atlassian.confluence.core.persistence.hibernate
Class ContentEntityObjectHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao
- All Implemented Interfaces:
- bucket.core.persistence.ObjectDao, ContentEntityObjectDao, VersionedObjectDao, org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
- HibernateMailDao, HibernatePageDao
public class ContentEntityObjectHibernateDao
- extends VersionedHibernateObjectDao
- implements ContentEntityObjectDao
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao |
findAll, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bucket.core.persistence.ObjectDao |
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
ONE_DAY
public static final long ONE_DAY
- See Also:
- Constant Field Values
ContentEntityObjectHibernateDao
public ContentEntityObjectHibernateDao()
getPersistentClass
public java.lang.Class getPersistentClass()
- Specified by:
getPersistentClass
in interface bucket.core.persistence.ObjectDao
getById
public ContentEntityObject getById(long id)
- Specified by:
getById
in interface ContentEntityObjectDao
getContentAuthoredByUser
public java.util.List getContentAuthoredByUser(java.lang.String username)
- Specified by:
getContentAuthoredByUser
in interface ContentEntityObjectDao
getAllCurrentEntities
public java.util.Iterator getAllCurrentEntities()
- Specified by:
getAllCurrentEntities
in interface ContentEntityObjectDao
getRecentlyAddedEntities
public java.util.Iterator getRecentlyAddedEntities(java.lang.String spaceKey,
int maxResults)
- Specified by:
getRecentlyAddedEntities
in interface ContentEntityObjectDao
getRecentlyModifiedEntities
public java.util.Iterator getRecentlyModifiedEntities(int maxResults)
- Specified by:
getRecentlyModifiedEntities
in interface ContentEntityObjectDao
getRecentlyModifiedEntities
public java.util.Iterator getRecentlyModifiedEntities(java.lang.String spaceKey,
int maxResults)
- Specified by:
getRecentlyModifiedEntities
in interface ContentEntityObjectDao
getRecentlyModifiedEntitiesForUser
public java.util.Iterator getRecentlyModifiedEntitiesForUser(java.lang.String username)
- Specified by:
getRecentlyModifiedEntitiesForUser
in interface ContentEntityObjectDao
getRecentlyModifiedEntitiesByType
public java.util.Iterator getRecentlyModifiedEntitiesByType(ListQuery listQuery,
int firstResult)
- Deprecated. since 2.8, use com.atlassian.confluence.search.smartlist.SmartListManager#search instead.
- Specified by:
getRecentlyModifiedEntitiesByType
in interface ContentEntityObjectDao
getFirstVersionBefore
public ContentEntityObject getFirstVersionBefore(long originalVersionContentId,
int version)
- Specified by:
getFirstVersionBefore
in interface ContentEntityObjectDao
getFirstVersionAfter
public ContentEntityObject getFirstVersionAfter(long originalVersionContentId,
int version)
- Specified by:
getFirstVersionAfter
in interface ContentEntityObjectDao
getVersion
public ContentEntityObject getVersion(long originalVersionContentId,
int version)
- Specified by:
getVersion
in interface ContentEntityObjectDao
getEntitiesModifiedSince
public java.util.List getEntitiesModifiedSince(java.util.Date date)
- Specified by:
getEntitiesModifiedSince
in interface ContentEntityObjectDao
getRecentlyModifiedForChangeDigest
public java.util.List getRecentlyModifiedForChangeDigest(java.util.Date fromDate)
- Description copied from interface:
ContentEntityObjectDao
- Retrieves a list of
ContentEntityObject
s that have been newly added or modified
since the date specified. This list excludes drafts, space descriptions and mail.
- Specified by:
getRecentlyModifiedForChangeDigest
in interface ContentEntityObjectDao
- Parameters:
fromDate
- content modified after this date will be returned
- Returns:
- a list of
ContentEntityObject
s that have been newly added or modified
since the date specified
getLockedContentBySpace
public java.util.List getLockedContentBySpace(java.lang.String spaceKey)
- Specified by:
getLockedContentBySpace
in interface ContentEntityObjectDao
getTrashedContent
public java.util.List getTrashedContent(java.lang.String spaceKey)
- Specified by:
getTrashedContent
in interface ContentEntityObjectDao
getObjectType
public java.lang.String getObjectType(long id)
- Specified by:
getObjectType
in interface ContentEntityObjectDao
getVersionHistorySummary
public java.util.List getVersionHistorySummary(long originalContentId)
- Specified by:
getVersionHistorySummary
in interface ContentEntityObjectDao
findPreviousVersions
public java.util.List findPreviousVersions(long originalContentId)
- Specified by:
findPreviousVersions
in interface ContentEntityObjectDao
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.