Package org.nuxeo.drive.adapter
Interface FolderItem
-
- All Superinterfaces:
Comparable<FileSystemItem>,FileSystemItem
- All Known Implementing Classes:
AbstractVirtualFolderItem,CollectionSyncRootFolderItem,DefaultSyncRootFolderItem,DefaultTopLevelFolderItem,DocumentBackedFolderItem,ESSyncRootFolderItem,PermissionTopLevelFolderItem,SharedSyncRootParentFolderItem,UserSyncRootParentFolderItem,UserWorkspaceSyncRootParentFolderItem,UserWorkspaceTopLevelFolderItem
public interface FolderItem extends FileSystemItem
Representation of a folder.In the case of a
DocumentModelbacked implementation, the backing document is Folderish. Typically a Folder or a Workspace.- Author:
- Antoine Taillefer
- See Also:
DocumentBackedFolderItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default FileItemcreateFile(Blob blob)Deprecated.since 9.1, usecreateFile(Blob, boolean)insteadFileItemcreateFile(Blob blob, boolean overwrite)default FolderItemcreateFolder(String name)Deprecated.since 9.1, usecreateFolder(String, boolean)insteadFolderItemcreateFolder(String name, boolean overwrite)booleangetCanCreateChild()booleangetCanScrollDescendants()Returnstrueif thescrollDescendants(String, int, long)API can be used.List<FileSystemItem>getChildren()ScrollFileSystemItemListscrollDescendants(String scrollId, int batchSize, long keepAlive)-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.nuxeo.drive.adapter.FileSystemItem
canMove, delete, getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, isFolder, move, rename
-
-
-
-
Method Detail
-
getChildren
List<FileSystemItem> getChildren()
-
getCanScrollDescendants
boolean getCanScrollDescendants()
Returnstrueif thescrollDescendants(String, int, long)API can be used.- Since:
- 8.3
-
scrollDescendants
ScrollFileSystemItemList scrollDescendants(String scrollId, int batchSize, long keepAlive)
Retrieves at mostbatchSizeFileSystemItemdescendants for 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.
This method is protected by a
Semaphore, made available byFileSystemItemAdapterService.getScrollBatchSemaphore(), to limit the number of concurrent executions and avoid too much memory pressure.- Throws:
UnsupportedOperationException- ifgetCanScrollDescendants()returnsfalse.- Since:
- 8.3
-
getCanCreateChild
boolean getCanCreateChild()
-
createFile
@Deprecated default FileItem createFile(Blob blob)
Deprecated.since 9.1, usecreateFile(Blob, boolean)instead
-
createFile
FileItem createFile(Blob blob, boolean overwrite)
- Parameters:
overwrite- allows to overwrite an existing file with the same title- Since:
- 9.1
-
createFolder
@Deprecated default FolderItem createFolder(String name)
Deprecated.since 9.1, usecreateFolder(String, boolean)instead
-
createFolder
FolderItem createFolder(String name, boolean overwrite)
- Parameters:
overwrite- allows to overwrite an existing folder with the same title- Since:
- 9.1
-
-