Package org.nuxeo.drive.operations
Class NuxeoDriveScrollDescendants
- java.lang.Object
-
- org.nuxeo.drive.operations.NuxeoDriveScrollDescendants
-
public class NuxeoDriveScrollDescendants extends Object
Retrieves at mostbatchSizedescendants of theFolderItemwith the givenidfor the givenscrollId.When passing a null
scrollIdthe initial search request is executed and the first batch of results is returned along with ascrollIdwhich 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
keepAlivemilliseconds ifkeepAliveis 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 Blobrun()protected BlobwriteJSONBlob(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
-
-