Class XhtmlContentWorkSource
- java.lang.Object
- 
- com.atlassian.confluence.content.render.xhtml.migration.XhtmlContentWorkSource
 
- 
- All Implemented Interfaces:
- BatchableWorkSource<ContentEntityObject>
 
 public class XhtmlContentWorkSource extends Object implements BatchableWorkSource<ContentEntityObject> A work source that provides batches of ContentEntityObjects that have XHTML formatted bodies.This class is thread-safe. 
- 
- 
Constructor SummaryConstructors Constructor Description XhtmlContentWorkSource(ContentDao contentDao, int batchSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ContentEntityObject>getBatch()Returns a batch of work.intgetTotalSize()booleanhasMoreBatches()intnumberOfBatches()voidreset(int total)Reset the work source ready to begin getting batches again.
 
- 
- 
- 
Constructor Detail- 
XhtmlContentWorkSourcepublic XhtmlContentWorkSource(ContentDao contentDao, int batchSize) 
 
- 
 - 
Method Detail- 
getBatchpublic List<ContentEntityObject> getBatch() Returns a batch of work. When work is exhausted an empty list is returned.- Specified by:
- getBatchin interface- BatchableWorkSource<ContentEntityObject>
- Returns:
- batch of work
 
 - 
hasMoreBatchespublic boolean hasMoreBatches() - Specified by:
- hasMoreBatchesin interface- BatchableWorkSource<ContentEntityObject>
- Returns:
- true if more work batches exist
 
 - 
numberOfBatchespublic int numberOfBatches() - Specified by:
- numberOfBatchesin interface- BatchableWorkSource<ContentEntityObject>
- Returns:
- total number of work batches available.
 
 - 
resetpublic void reset(int total) Description copied from interface:BatchableWorkSourceReset the work source ready to begin getting batches again.- Specified by:
- resetin interface- BatchableWorkSource<ContentEntityObject>
 
 - 
getTotalSizepublic int getTotalSize() - Specified by:
- getTotalSizein interface- BatchableWorkSource<ContentEntityObject>
 
 
- 
 
-