Class MigrationPageTemplateDao
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao<T>
-
- com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao<T>
-
- com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao<PageTemplate>
-
- com.atlassian.confluence.pages.templates.persistence.dao.hibernate.HibernatePageTemplateDao
-
- com.atlassian.confluence.content.render.xhtml.migration.MigrationPageTemplateDao
-
- All Implemented Interfaces:
ObjectDao
,VersionedObjectDao<PageTemplate>
,ObjectDaoInternal<PageTemplate>
,VersionedObjectDaoInternal<PageTemplate>
,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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
HibernateObjectDao.Cacheability
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
cacheFactory, confluenceUserDao
-
-
Constructor Summary
Constructors Constructor Description MigrationPageTemplateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
updateEntityModificationData(PageTemplate objectToSave)
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, findBySpace, findCustomisedPluginTemplate, findLatestVersions, findPageTemplateByName, findPageTemplateByNameAndSpace, findPreviousVersions, getById, getPersistentClass
-
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao
-
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult
-
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.internal.persistence.ObjectDaoInternal
findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
-
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao
findLatestVersionsCount, findLatestVersionsIterator, save
-
-
-
-
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 classVersionedHibernateObjectDao<PageTemplate>
- Parameters:
objectToSave
- the object that is about to be saved
-
updateEntityModificationData
protected void updateEntityModificationData(PageTemplate objectToSave)
- Overrides:
updateEntityModificationData
in classVersionedHibernateObjectDao<PageTemplate>
-
-