com.atlassian.confluence.core.persistence.hibernate
Class ContentEntityObjectHibernateDao

java.lang.Object
  extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
      extended bycom.atlassian.hibernate.HibernateObjectDao
          extended bybucket.core.persistence.hibernate.CachableHibernateObjectDao
              extended bycom.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
                  extended bycom.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao
All Implemented Interfaces:
ContentEntityObjectDao, org.springframework.beans.factory.InitializingBean, ObjectDao, VersionedObjectDao
Direct Known Subclasses:
HibernateMailDao, HibernatePageDao

public class ContentEntityObjectHibernateDao
extends VersionedHibernateObjectDao
implements ContentEntityObjectDao


Field Summary
static long ONE_DAY
           
 
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
log
 
Fields inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao
cacheManager
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
ContentEntityObjectHibernateDao()
           
 
Method Summary
 List findPreviousVersions(long originalContentId)
           
 Iterator getAllCurrentEntities()
           
 ContentEntityObject getById(long id)
           
 List getContentAuthoredByUser(String username)
           
 List getEntitiesModifiedSince(Date date)
          Retrieve a list of the entities modified since the specified date.
 ContentEntityObject getFirstVersionAfter(long originalVersionContentId, int version)
           
 ContentEntityObject getFirstVersionBefore(long originalVersionContentId, int version)
           
 List getLockedContentBySpace(String spaceKey)
           
 String getObjectType(long id)
           
 Class getPersistentClass()
           
 Iterator getRecentlyAddedEntities(String spaceKey, int maxResults)
           
 Iterator getRecentlyModifiedEntities(int maxResults)
           
 Iterator getRecentlyModifiedEntities(String spaceKey, int maxResults)
           
 Iterator getRecentlyModifiedEntitiesByType(ListQuery listQuery, int firstResult)
           
 Iterator getRecentlyModifiedEntitiesForUser(String username)
           
 List getTrashedContent(String spaceKey)
           
 ContentEntityObject getVersion(long originalVersionContentId, int version)
           
 List getVersionHistorySummary(long originalContentId)
           
 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, updateModificationData
 
Methods inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao
setCacheManager
 
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
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao
findLatestVersionsCount, findLatestVersionsIterator, save
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw
 

Field Detail

ONE_DAY

public static final long ONE_DAY
See Also:
Constant Field Values
Constructor Detail

ContentEntityObjectHibernateDao

public ContentEntityObjectHibernateDao()
Method Detail

getPersistentClass

public Class getPersistentClass()
Specified by:
getPersistentClass in interface ObjectDao

getById

public ContentEntityObject getById(long id)
Specified by:
getById in interface ContentEntityObjectDao

getContentAuthoredByUser

public List getContentAuthoredByUser(String username)
Specified by:
getContentAuthoredByUser in interface ContentEntityObjectDao

getAllCurrentEntities

public Iterator getAllCurrentEntities()
Specified by:
getAllCurrentEntities in interface ContentEntityObjectDao

getRecentlyAddedEntities

public Iterator getRecentlyAddedEntities(String spaceKey,
                                         int maxResults)
Specified by:
getRecentlyAddedEntities in interface ContentEntityObjectDao

getRecentlyModifiedEntities

public Iterator getRecentlyModifiedEntities(int maxResults)
Specified by:
getRecentlyModifiedEntities in interface ContentEntityObjectDao

getRecentlyModifiedEntities

public Iterator getRecentlyModifiedEntities(String spaceKey,
                                            int maxResults)
Specified by:
getRecentlyModifiedEntities in interface ContentEntityObjectDao

getRecentlyModifiedEntitiesForUser

public Iterator getRecentlyModifiedEntitiesForUser(String username)
Specified by:
getRecentlyModifiedEntitiesForUser in interface ContentEntityObjectDao

getRecentlyModifiedEntitiesByType

public Iterator getRecentlyModifiedEntitiesByType(ListQuery listQuery,
                                                  int firstResult)
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 List getEntitiesModifiedSince(Date date)
Description copied from interface: ContentEntityObjectDao
Retrieve a list of the entities modified since the specified date. This excludes mail and space descriptions.

Specified by:
getEntitiesModifiedSince in interface ContentEntityObjectDao
Parameters:
date -
Returns:
a list of content entity objects.

getLockedContentBySpace

public List getLockedContentBySpace(String spaceKey)
Specified by:
getLockedContentBySpace in interface ContentEntityObjectDao

getTrashedContent

public List getTrashedContent(String spaceKey)
Specified by:
getTrashedContent in interface ContentEntityObjectDao

getObjectType

public String getObjectType(long id)
Specified by:
getObjectType in interface ContentEntityObjectDao

getVersionHistorySummary

public List getVersionHistorySummary(long originalContentId)
Specified by:
getVersionHistorySummary in interface ContentEntityObjectDao

findPreviousVersions

public List findPreviousVersions(long originalContentId)
Specified by:
findPreviousVersions in interface ContentEntityObjectDao


Confluence is developed by Atlassian.