public interface FolderItem extends FileSystemItem
In the case of a DocumentModel
backed implementation, the backing document is Folderish. Typically a Folder
or a Workspace.
DocumentBackedFolderItem
Modifier and Type | Method and Description |
---|---|
default FileItem |
createFile(Blob blob)
Deprecated.
since 9.1, use
#createFile(String, boolean) instead |
FileItem |
createFile(Blob blob,
boolean overwrite) |
default FolderItem |
createFolder(String name)
Deprecated.
since 9.1, use
createFolder(String, boolean) instead |
FolderItem |
createFolder(String name,
boolean overwrite) |
boolean |
getCanCreateChild() |
boolean |
getCanScrollDescendants()
Returns
true if the scrollDescendants(String, int, long) API can be used. |
List<FileSystemItem> |
getChildren() |
ScrollFileSystemItemList |
scrollDescendants(String scrollId,
int batchSize,
long keepAlive)
|
canMove, delete, getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, isFolder, move, rename
compareTo
List<FileSystemItem> getChildren()
boolean getCanScrollDescendants()
true
if the scrollDescendants(String, int, long)
API can be used.ScrollFileSystemItemList scrollDescendants(String scrollId, int batchSize, long keepAlive)
batchSize
FileSystemItem
descendants for the given scrollId
.
When passing a null scrollId
the initial search request is executed and the first batch of results is
returned along with a scrollId
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 if keepAlive
is positive.
Results are not necessarily sorted.
This method is protected by a Semaphore
, made available by
FileSystemItemAdapterService.getScrollBatchSemaphore()
, to limit the number of concurrent executions and
avoid too much memory pressure.
UnsupportedOperationException
- if getCanScrollDescendants()
returns false
.boolean getCanCreateChild()
@Deprecated default FileItem createFile(Blob blob)
#createFile(String, boolean)
insteadFileItem createFile(Blob blob, boolean overwrite)
overwrite
- allows to overwrite an existing file with the same title@Deprecated default FolderItem createFolder(String name)
createFolder(String, boolean)
insteadFolderItem createFolder(String name, boolean overwrite)
overwrite
- allows to overwrite an existing folder with the same titleCopyright © 2017 Nuxeo. All rights reserved.