Class AbstractAttachmentCopier
java.lang.Object
com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
- All Implemented Interfaces:
- AttachmentDao.AttachmentCopier
- Direct Known Subclasses:
- AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier,- GeneralAttachmentCopier
public abstract class AbstractAttachmentCopier
extends Object
implements AttachmentDao.AttachmentCopier
This method implements some of the methods from the AttachmentDao.AttachmentCopier interface.
 
It also provides some convenience methods for checking whether a given object is to be included in the copy.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanisContentExcluded(ContentEntityObject content) Returns whether a ContentEntityObject is excluded from the copyprotected booleanReturns whether the content's Space is in the inclusion List.protected booleanisSpaceIncluded(Space space) Returns whether the space is in the inclusion List.voidsetParentContentToExclude(List<? extends ConfluenceEntityObject> contentList) Set which parent content should be excluded from the copy.voidsetProgressMeter(com.atlassian.core.util.ProgressMeter progress) Set the progress meter to report the status of the copy.voidsetSpacesToInclude(List<? extends Space> spaceList) Set which Spaces should be included in the copy.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.pages.persistence.dao.AttachmentDao.AttachmentCopiercopy
- 
Field Details- 
progressprotected com.atlassian.core.util.ProgressMeter progress
 
- 
- 
Constructor Details- 
AbstractAttachmentCopierpublic AbstractAttachmentCopier()
 
- 
- 
Method Details- 
setParentContentToExcludeDescription copied from interface:AttachmentDao.AttachmentCopierSet which parent content should be excluded from the copy.- Specified by:
- setParentContentToExcludein interface- AttachmentDao.AttachmentCopier
- Parameters:
- contentList- a List of ContentEntityObjects
 
- 
setSpacesToIncludeDescription copied from interface:AttachmentDao.AttachmentCopierSet which Spaces should be included in the copy.If no Spaces are set, then content from all Spaces is included. - Specified by:
- setSpacesToIncludein interface- AttachmentDao.AttachmentCopier
- Parameters:
- spaceList- a List of Spaces
 
- 
setProgressMeterpublic void setProgressMeter(com.atlassian.core.util.ProgressMeter progress) Description copied from interface:AttachmentDao.AttachmentCopierSet the progress meter to report the status of the copy.- Specified by:
- setProgressMeterin interface- AttachmentDao.AttachmentCopier
- Parameters:
- progress- a ProgressMeter instance
 
- 
isSpaceIncludedReturns whether the space is in the inclusion List.- Parameters:
- space- the Space to check
- Returns:
- true if it is included, false otherwise
 
- 
isContentSpaceIncludedReturns whether the content's Space is in the inclusion List.This method first checks if there are any Space restrictions. If there are none, true is returned. Then checks whether content belongs to a Space. If it is not a SpaceContentEntityObject, false is returned. Otherwise, #isSpaceIncluded() is called. - Parameters:
- content- the ContentEntityObject to check
- Returns:
- true if it is included, false otherwise
 
- 
isContentExcludedReturns whether a ContentEntityObject is excluded from the copy- Parameters:
- content- the ContentEntityObject to check
- Returns:
- true if excluded, false otherwise
 
- 
getSpacesToInclude
 
-