com.atlassian.confluence.pages.templates.persistence.dao.hibernate
Class HibernatePageTemplateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.hibernate.HibernateObjectDao
              extended by com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
                  extended by com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao
                      extended by com.atlassian.confluence.pages.templates.persistence.dao.hibernate.HibernatePageTemplateDao
All Implemented Interfaces:
ObjectDao, VersionedObjectDao, PageTemplateDao, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
MigrationPageTemplateDao

public class HibernatePageTemplateDao
extends ConfluenceHibernateObjectDao
implements PageTemplateDao

Version:
Revision: 1.1.1.1 $
Author:
Ara Abrahamian (ara_e_w@yahoo.com)

Field Summary
 
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
cacheFactory, confluenceUserDao
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernatePageTemplateDao()
           
 
Method Summary
 java.util.List findAllGlobalPageTemplates()
           
 PageTemplate findCustomisedPluginTemplate(PluginTemplateReference pluginTemplateReference)
           
 java.util.List findLatestVersions()
           
 PageTemplate findPageTemplateByName(java.lang.String name)
          This will find a global page template with the given name
 PageTemplate findPageTemplateByNameAndSpace(java.lang.String name, Space space)
          This will find a space page template with the given name and space
 java.util.List findPreviousVersions(long id)
           
 PageTemplate getById(long id)
           
 java.lang.Class getPersistentClass()
           
 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationData
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, uniqueResult
 
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 com.atlassian.confluence.core.persistence.VersionedObjectDao
findLatestVersionsCount, findLatestVersionsIterator, save
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, refresh, remove, replicate, save, saveRaw
 

Constructor Detail

HibernatePageTemplateDao

public HibernatePageTemplateDao()
Method Detail

getPersistentClass

public java.lang.Class getPersistentClass()
Specified by:
getPersistentClass in interface ObjectDao

getById

public PageTemplate getById(long id)
Specified by:
getById in interface PageTemplateDao

findAllGlobalPageTemplates

public java.util.List findAllGlobalPageTemplates()
Specified by:
findAllGlobalPageTemplates in interface PageTemplateDao

findPageTemplateByName

public PageTemplate findPageTemplateByName(java.lang.String name)
Description copied from interface: PageTemplateDao
This will find a global page template with the given name

Specified by:
findPageTemplateByName in interface PageTemplateDao

findPageTemplateByNameAndSpace

public PageTemplate findPageTemplateByNameAndSpace(java.lang.String name,
                                                   Space space)
Description copied from interface: PageTemplateDao
This will find a space page template with the given name and space

Specified by:
findPageTemplateByNameAndSpace in interface PageTemplateDao

findCustomisedPluginTemplate

public PageTemplate findCustomisedPluginTemplate(PluginTemplateReference pluginTemplateReference)
Specified by:
findCustomisedPluginTemplate in interface PageTemplateDao

findPreviousVersions

public java.util.List findPreviousVersions(long id)
Specified by:
findPreviousVersions in interface PageTemplateDao

findLatestVersions

public java.util.List findLatestVersions()
Specified by:
findLatestVersions in interface PageTemplateDao


Copyright © 2003-2014 Atlassian. All Rights Reserved.