public class

XhtmlContentWorkSource

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

Class Overview

A work source that provides batches of ContentEntityObjects that have XHTML formatted bodies.

This class is thread-safe.

Summary

Public Constructors
XhtmlContentWorkSource(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 XhtmlContentWorkSource (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 ()