public class

ContentEntityObjectMigrationWorkSource

extends Object
implements BatchableWorkSource<T>
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.migration.ContentEntityObjectMigrationWorkSource

Class Overview

Source that provides batches of ContentEntityObjects that require migration.

This class is thread-safe.

Summary

Public Constructors
ContentEntityObjectMigrationWorkSource(ContentDao contentDao, int batchSize)
Public Methods
synchronized List<ContentEntityObject> getBatch()
Returns a batch of work.
synchronized boolean hasMoreBatches()
synchronized int numberOfBatches()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.content.render.xhtml.migration.BatchableWorkSource

Public Constructors

public ContentEntityObjectMigrationWorkSource (ContentDao contentDao, int batchSize)

Public Methods

public synchronized List<ContentEntityObject> getBatch ()

Returns a batch of work. When work is exhausted an empty list is returned.

Returns
  • batch of work

public synchronized boolean hasMoreBatches ()

public synchronized int numberOfBatches ()