com.atlassian.confluence.content.render.xhtml.migration
Class MigrationPageTemplateDao

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
                          extended by com.atlassian.confluence.content.render.xhtml.migration.MigrationPageTemplateDao
All Implemented Interfaces:
ObjectDao, VersionedObjectDao, PageTemplateDao, org.springframework.beans.factory.InitializingBean

public class MigrationPageTemplateDao
extends HibernatePageTemplateDao

Overrides the default behaviour to prevent the last modified user being changed when migrating.


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
 
Fields inherited from interface bucket.core.persistence.ObjectDao
NON_CACHEABLE
 
Constructor Summary
MigrationPageTemplateDao()
           
 
Method Summary
protected  void updateModificationData(com.atlassian.core.bean.EntityObject objectToSave)
          Perform any modifications that need to be done to an object every time it is saved.
 
Methods inherited from class com.atlassian.confluence.pages.templates.persistence.dao.hibernate.HibernatePageTemplateDao
findAllGlobalPageTemplates, findCustomisedPluginTemplate, findLatestVersions, findPageTemplateByName, findPageTemplateByNameAndSpace, findPreviousVersions, getById, getPersistentClass
 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao
 
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

MigrationPageTemplateDao

public MigrationPageTemplateDao()
Method Detail

updateModificationData

protected void updateModificationData(com.atlassian.core.bean.EntityObject objectToSave)
Description copied from class: HibernateObjectDao
Perform any modifications that need to be done to an object every time it is saved. The default implementation updates the last-modified timestamp, and sets the creation timestamp if it has not yet been set.

Overrides:
updateModificationData in class VersionedHibernateObjectDao
Parameters:
objectToSave - the object that is about to be saved


Copyright © 2003–2015 Atlassian. All rights reserved.