Class XhtmlSpaceDescriptionsWorkSource
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.migration.XhtmlSpaceDescriptionsWorkSource
-
- All Implemented Interfaces:
BatchableWorkSource<ContentEntityObject>
public class XhtmlSpaceDescriptionsWorkSource extends Object implements BatchableWorkSource<ContentEntityObject>
A work source that provides batches of
SpaceDescription
s with BodyContent of typeBodyType.XHTML
This class is thread-safe.
-
-
Constructor Summary
Constructors Constructor Description XhtmlSpaceDescriptionsWorkSource(ContentDao contentDao, int batchSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ContentEntityObject>
getBatch()
Returns a batch of work.int
getTotalSize()
boolean
hasMoreBatches()
int
numberOfBatches()
void
reset(int total)
Reset the work source ready to begin getting batches again.
-
-
-
Constructor Detail
-
XhtmlSpaceDescriptionsWorkSource
public XhtmlSpaceDescriptionsWorkSource(ContentDao contentDao, int batchSize)
-
-
Method Detail
-
getBatch
public List<ContentEntityObject> getBatch()
Returns a batch of work. When work is exhausted an empty list is returned.- Specified by:
getBatch
in interfaceBatchableWorkSource<ContentEntityObject>
- Returns:
- batch of work
-
hasMoreBatches
public boolean hasMoreBatches()
- Specified by:
hasMoreBatches
in interfaceBatchableWorkSource<ContentEntityObject>
- Returns:
- true if more work batches exist
-
numberOfBatches
public int numberOfBatches()
- Specified by:
numberOfBatches
in interfaceBatchableWorkSource<ContentEntityObject>
- Returns:
- total number of work batches available.
-
getTotalSize
public int getTotalSize()
- Specified by:
getTotalSize
in interfaceBatchableWorkSource<ContentEntityObject>
-
reset
public void reset(int total)
Description copied from interface:BatchableWorkSource
Reset the work source ready to begin getting batches again.- Specified by:
reset
in interfaceBatchableWorkSource<ContentEntityObject>
-
-