Class ContentEntityMigrationBatchTask
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.macro.ContentEntityMigrationBatchTask
- All Implemented Interfaces:
- BatchTask<ContentEntityObject>
public class ContentEntityMigrationBatchTask
extends Object
implements BatchTask<ContentEntityObject>
Attempts to migrate a contentEntityObject with a legacy content body to XHTML.
 
 Implements the batchTask interface so can be used with BatchableWorkSource.
 
Can optionally have a progressWrapper to notify of progress.
- 
Constructor SummaryConstructorsConstructorDescriptionContentEntityMigrationBatchTask(ExceptionTolerantMigrator migrator, ContentDao contentDao, String versionComment) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanapply(ContentEntityObject entity, int index, int batchSize) 
- 
Constructor Details- 
ContentEntityMigrationBatchTaskpublic ContentEntityMigrationBatchTask(ExceptionTolerantMigrator migrator, ContentDao contentDao, String versionComment) 
 
- 
- 
Method Details- 
applypublic boolean apply(ContentEntityObject entity, int index, int batchSize) throws BatchException, CloneNotSupportedException - Specified by:
- applyin interface- BatchTask<ContentEntityObject>
- Parameters:
- entity- the item to be operate on
- index- the index of this item in its batch
- batchSize- the size of the batch
- Returns:
- true if the item required work to be done, false otherwise
- Throws:
- BatchException
- CloneNotSupportedException
 
 
-