com.atlassian.confluence.content.render.xhtml.migration.macro
Class ContentEntityMigrationBatchTask

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.macro.ContentEntityMigrationBatchTask
All Implemented Interfaces:
BatchTask<ContentEntityObject>

public class ContentEntityMigrationBatchTask
extends java.lang.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 Summary
ContentEntityMigrationBatchTask(ExceptionTolerantMigrator migrator, ContentDao contentDao, java.lang.String versionComment)
           
 
Method Summary
 boolean apply(ContentEntityObject entity, int index, int batchSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentEntityMigrationBatchTask

public ContentEntityMigrationBatchTask(ExceptionTolerantMigrator migrator,
                                       ContentDao contentDao,
                                       java.lang.String versionComment)
Method Detail

apply

public boolean apply(ContentEntityObject entity,
                     int index,
                     int batchSize)
              throws BatchException,
                     java.lang.CloneNotSupportedException
Specified by:
apply in 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
java.lang.CloneNotSupportedException


Copyright © 2003-2014 Atlassian. All Rights Reserved.