com.atlassian.confluence.content.render.xhtml.migration
Class XhtmlSpaceDescriptionsWorkSource

java.lang.Object
  extended by 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 SpaceDescriptions with BodyContent of type BodyType.XHTML

This class is thread-safe.


Constructor Summary
XhtmlSpaceDescriptionsWorkSource(ContentDao contentDao, int batchSize)
           
 
Method Summary
 List<ContentEntityObject> getBatch()
          Returns a batch of work.
 boolean hasMoreBatches()
           
 int numberOfBatches()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface BatchableWorkSource<ContentEntityObject>
Returns:
batch of work

hasMoreBatches

public boolean hasMoreBatches()
Specified by:
hasMoreBatches in interface BatchableWorkSource<ContentEntityObject>
Returns:
true if more work batches exist

numberOfBatches

public int numberOfBatches()
Specified by:
numberOfBatches in interface BatchableWorkSource<ContentEntityObject>
Returns:
total number of work batches available.


Copyright © 2003-2011 Atlassian. All Rights Reserved.