public abstract class AbstractVirtualFolderItem extends AbstractFileSystemItem implements FolderItem
FolderItem.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canCreateChild |
protected boolean |
canScrollDescendants |
canDelete, canRename, creationDate, creator, factoryName, FILE_SYSTEM_ITEM_ID_SEPARATOR, FILE_SYSTEM_ITEM_PATH_SEPARATOR, folder, id, lastContributor, lastModificationDate, lockInfo, name, parentId, path, principal, userName| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVirtualFolderItem() |
|
AbstractVirtualFolderItem(String factoryName,
NuxeoPrincipal principal,
String parentId,
String parentPath,
String folderName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMove(FolderItem dest) |
FileItem |
createFile(Blob blob,
boolean overwrite) |
FolderItem |
createFolder(String name,
boolean overwrite) |
void |
delete() |
boolean |
equals(Object obj) |
boolean |
getCanCreateChild() |
boolean |
getCanScrollDescendants()
Returns
true if the FolderItem.scrollDescendants(String, int, long) API can be used. |
int |
hashCode() |
FileSystemItem |
move(FolderItem dest) |
void |
rename(String name) |
ScrollFileSystemItemList |
scrollDescendants(String scrollId,
int batchSize,
long keepAlive)
|
protected void |
setCanCreateChild(boolean canCreateChild) |
protected void |
setCanScrollDescendants(boolean canScrollDescendants) |
compareTo, getCanDelete, getCanRename, getCreationDate, getCreator, getFileSystemItemAdapterService, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, getUserName, isFolder, setCanDelete, setCanRename, setCreationDate, setCreator, setFolder, setId, setLastContributor, setLastModificationDate, setLockInfo, setName, setParentId, setPath, setUserName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateFile, createFolder, getChildrengetCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, isFoldercompareToprotected boolean canCreateChild
protected boolean canScrollDescendants
public AbstractVirtualFolderItem(String factoryName, NuxeoPrincipal principal, String parentId, String parentPath, String folderName)
protected AbstractVirtualFolderItem()
public void rename(String name)
rename in interface FileSystemItempublic void delete()
delete in interface FileSystemItempublic boolean canMove(FolderItem dest)
canMove in interface FileSystemItempublic FileSystemItem move(FolderItem dest)
move in interface FileSystemItempublic boolean getCanScrollDescendants()
FolderItemtrue if the FolderItem.scrollDescendants(String, int, long) API can be used.getCanScrollDescendants in interface FolderItempublic ScrollFileSystemItemList scrollDescendants(String scrollId, int batchSize, long keepAlive)
FolderItembatchSize 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.
scrollDescendants in interface FolderItempublic boolean getCanCreateChild()
getCanCreateChild in interface FolderItempublic FolderItem createFolder(String name, boolean overwrite)
createFolder in interface FolderItemoverwrite - allows to overwrite an existing folder with the same titlepublic FileItem createFile(Blob blob, boolean overwrite)
createFile in interface FolderItemoverwrite - allows to overwrite an existing file with the same titlepublic boolean equals(Object obj)
equals in class AbstractFileSystemItempublic int hashCode()
hashCode in class AbstractFileSystemItemprotected void setCanCreateChild(boolean canCreateChild)
protected void setCanScrollDescendants(boolean canScrollDescendants)
Copyright © 2019 Nuxeo. All rights reserved.