com.atlassian.confluence.pages.persistence.dao.hibernate
Class AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier

java.lang.Object
  extended bycom.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
      extended bycom.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier
All Implemented Interfaces:
AttachmentDao.AttachmentCopier
Direct Known Subclasses:
AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator
Enclosing class:
AbstractHibernateAttachmentDao

public class AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier
extends AbstractAttachmentCopier
implements AttachmentDao.AttachmentCopier

This attachment copier will oopy attachment streams from the current instance of AbstractHibernateAttachmentDao to another.

Since the store for the metadata is the same (the database), we can safely shift the data from the different AttachmentDataDao implementations without having to update the metadata itself.


Field Summary
protected  AbstractHibernateAttachmentDao destinationDao
           
protected  org.apache.log4j.Category log
           
 
Fields inherited from class com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
parentContentToExclude, progress, spacesToInclude
 
Constructor Summary
protected AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier(AbstractHibernateAttachmentDao destinationDao)
           
 
Method Summary
 void copy()
          Perform the copy
 
Methods inherited from class com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
isContentExcluded, isContentSpaceIncluded, isSpaceIncluded, setParentContentToExclude, setProgressMeter, setSpacesToInclude
 
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.pages.persistence.dao.AttachmentDao.AttachmentCopier
setParentContentToExclude, setProgressMeter, setSpacesToInclude
 

Field Detail

log

protected org.apache.log4j.Category log

destinationDao

protected AbstractHibernateAttachmentDao destinationDao
Constructor Detail

AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier

protected AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier(AbstractHibernateAttachmentDao destinationDao)
Method Detail

copy

public void copy()
Description copied from interface: AttachmentDao.AttachmentCopier
Perform the copy

Specified by:
copy in interface AttachmentDao.AttachmentCopier


Confluence is developed by Atlassian.