public class ContentEntityMigrationBatchTask extends Object implements BatchTask<ContentEntityObject>
Implements the batchTask interface so can be used with BatchableWorkSource
.
Can optionally have a progressWrapper to notify of progress.
Constructor and Description |
---|
ContentEntityMigrationBatchTask(ExceptionTolerantMigrator migrator,
ContentDao contentDao,
String versionComment) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(ContentEntityObject entity,
int index,
int batchSize) |
public ContentEntityMigrationBatchTask(ExceptionTolerantMigrator migrator, ContentDao contentDao, String versionComment)
public boolean apply(ContentEntityObject entity, int index, int batchSize) throws BatchException, CloneNotSupportedException
apply
in interface BatchTask<ContentEntityObject>
entity
- the item to be operate onindex
- the index of this item in its batchbatchSize
- the size of the batchBatchException
CloneNotSupportedException
Copyright © 2003–2019 Atlassian. All rights reserved.