Class GeneralAttachmentCopier
- java.lang.Object
 - 
- com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
 - 
- 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.
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected AttachmentManagerdestinationAttachmentManagerprotected AttachmentManagersourceAttachmentManager- 
Fields inherited from class com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
progress 
 - 
 
- 
Constructor Summary
Constructors Constructor Description GeneralAttachmentCopier(AttachmentManager sourceAttachmentManager, AttachmentManager destinationAttachmentManager) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy()Perform the copy- 
Methods inherited from class com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
getSpacesToInclude, 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.AttachmentCopierPerform the copy- Specified by:
 copyin interfaceAttachmentDao.AttachmentCopier
 
 - 
 
 -