Package org.nuxeo.drive.operations
Class NuxeoDriveScrollDescendants
- java.lang.Object
-
- org.nuxeo.drive.operations.NuxeoDriveScrollDescendants
-
public class NuxeoDriveScrollDescendants extends Object
Retrieves at mostbatchSize
descendants of theFolderItem
with the givenid
for the givenscrollId
.When passing a null
scrollId
the initial search request is executed and the first batch of results is returned along with ascrollId
which should be passed to the next call in order to retrieve the next batch of results.Ideally, the search context made available by the initial search request is kept alive during
keepAlive
milliseconds ifkeepAlive
is positive.Results are not necessarily sorted.
- Since:
- 8.3
-
-
Constructor Summary
Constructors Constructor Description NuxeoDriveScrollDescendants()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blob
run()
protected Blob
writeJSONBlob(ScrollFileSystemItemList scrollFSIList)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
ctx
protected OperationContext ctx
-
id
protected String id
-
scrollId
protected String scrollId
-
batchSize
protected int batchSize
-
keepAlive
protected long keepAlive
-
-
Method Detail
-
run
public Blob run() throws IOException
- Throws:
IOException
-
writeJSONBlob
protected Blob writeJSONBlob(ScrollFileSystemItemList scrollFSIList) throws IOException
- Throws:
IOException
-
-