|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
public abstract class AbstractAttachmentCopier
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 Summary | |
---|---|
protected java.util.List |
parentContentToExclude
|
protected com.atlassian.core.util.ProgressMeter |
progress
|
protected java.util.List |
spacesToInclude
|
Constructor Summary | |
---|---|
AbstractAttachmentCopier()
|
Method Summary | |
---|---|
protected boolean |
isContentExcluded(ContentEntityObject content)
Returns whether a ContentEntityObject is excluded from the copy |
protected boolean |
isContentSpaceIncluded(ContentEntityObject content)
Returns whether the content's Space is in the inclusion List. |
protected boolean |
isSpaceIncluded(Space space)
Returns whether the space is in the inclusion List. |
void |
setParentContentToExclude(java.util.List contentList)
Set which parent content should be excluded from the copy. |
void |
setProgressMeter(com.atlassian.core.util.ProgressMeter progress)
Set the progress meter to report the status of the copy. |
void |
setSpacesToInclude(java.util.List spaceList)
Set which Spaces should be included in the copy. |
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 |
---|
copy |
Field Detail |
---|
protected com.atlassian.core.util.ProgressMeter progress
protected java.util.List parentContentToExclude
protected java.util.List spacesToInclude
Constructor Detail |
---|
public AbstractAttachmentCopier()
Method Detail |
---|
public void setParentContentToExclude(java.util.List contentList)
AttachmentDao.AttachmentCopier
setParentContentToExclude
in interface AttachmentDao.AttachmentCopier
contentList
- a List of ContentEntityObjectspublic void setSpacesToInclude(java.util.List spaceList)
AttachmentDao.AttachmentCopier
setSpacesToInclude
in interface AttachmentDao.AttachmentCopier
spaceList
- a List of Spacespublic void setProgressMeter(com.atlassian.core.util.ProgressMeter progress)
AttachmentDao.AttachmentCopier
setProgressMeter
in interface AttachmentDao.AttachmentCopier
progress
- a ProgressMeter instanceprotected boolean isSpaceIncluded(Space space)
space
- the Space to check
protected boolean isContentSpaceIncluded(ContentEntityObject content)
content
- the ContentEntityObject to check
protected boolean isContentExcluded(ContentEntityObject content)
content
- the ContentEntityObject to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |