com.atlassian.confluence.pages.persistence.dao
Class GeneralAttachmentCopier

java.lang.Object
  extended by com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
      extended by com.atlassian.confluence.pages.persistence.dao.GeneralAttachmentCopier
All Implemented Interfaces:
AttachmentDao.AttachmentCopier
Direct Known Subclasses:
GeneralAttachmentMigrator

public class GeneralAttachmentCopier
extends AbstractAttachmentCopier
implements AttachmentDao.AttachmentCopier

This AttachmentCopier copies Attachments from one AttachmentManager instance to another, in the case where there are different storage implementations for data and/or meta-data.

If the same AttachmentManager and meta-data storage is being used, the AttachmentCopier at the AttachmentDao level should be used instead.

See Also:
AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier

Field Summary
protected  AttachmentManager destinationAttachmentManager
           
protected  AttachmentManager sourceAttachmentManager
           
 
Fields inherited from class com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
parentContentToExclude, progress, spacesToInclude
 
Constructor Summary
GeneralAttachmentCopier(AttachmentManager sourceAttachmentManager, AttachmentManager destinationAttachmentManager)
           
 
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

sourceAttachmentManager

protected AttachmentManager sourceAttachmentManager

destinationAttachmentManager

protected AttachmentManager destinationAttachmentManager
Constructor Detail

GeneralAttachmentCopier

public GeneralAttachmentCopier(AttachmentManager sourceAttachmentManager,
                               AttachmentManager destinationAttachmentManager)
Method Detail

copy

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

Specified by:
copy in interface AttachmentDao.AttachmentCopier


Copyright © 2003-2011 Atlassian. All Rights Reserved.