public class UserWorkspaceTopLevelFolderItem extends DocumentBackedFolderItem
FolderItem.
Implements the following tree:
Nuxeo Drive
|-- User workspace child 1
|-- User workspace child 2
|-- ...
|-- My synchronized folders
|-- Synchronized folder 1
|-- Synchronized folder 2
|-- ...
| Modifier and Type | Field and Description |
|---|---|
protected String |
syncRootParentFactoryName |
protected DocumentModel |
userWorkspace |
canCreateChild, canScrollDescendants, DESCENDANTS_SCROLL_CACHE, MAX_DESCENDANTS_BATCH_SIZE_DEFAULT, MAX_DESCENDANTS_BATCH_SIZE_PROPERTY, VCS_CHUNK_SIZEdocId, docPath, docTitle, PERMISSION_CHECK_OPTIMIZED_PROPERTY, repositoryNamecanDelete, canRename, creationDate, creator, factoryName, FILE_SYSTEM_ITEM_ID_SEPARATOR, folder, id, lastContributor, lastModificationDate, lockInfo, name, parentId, path, principal, userName| Modifier | Constructor and Description |
|---|---|
protected |
UserWorkspaceTopLevelFolderItem() |
|
UserWorkspaceTopLevelFolderItem(String factoryName,
DocumentModel userWorkspace,
String folderName,
String syncRootParentFactoryName) |
|
UserWorkspaceTopLevelFolderItem(String factoryName,
DocumentModel userWorkspace,
String folderName,
String syncRootParentFactoryName,
boolean relaxSyncRootConstraint) |
|
UserWorkspaceTopLevelFolderItem(String factoryName,
DocumentModel userWorkspace,
String folderName,
String syncRootParentFactoryName,
boolean relaxSyncRootConstraint,
boolean getLockInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
List<FileSystemItem> |
getChildren() |
protected NuxeoDriveManager |
getNuxeoDriveManager() |
FileSystemItem |
move(FolderItem dest) |
void |
rename(String name) |
ScrollFileSystemItemList |
scrollDescendants(String scrollId,
int batchSize,
long keepAlive)
|
adaptDocuments, checkBatchSize, createFile, createFolder, doScrollDescendants, fetchFromVCS, fetchFromVcsChunk, getBatch, getCanCreateChild, getCanScrollDescendants, getFileManager, getFolderItem, getScrollBatch, initialize, populateAncestorCache, setCanCreateChild, setCanScrollDescendantscanMove, computeId, getDocId, getDocPath, getDocument, getDocumentById, getRepositoryName, getTrashService, handleCollectionMember, parseFileSystemId, setId, updateLastModificationDatecompareTo, equals, getCanDelete, getCanRename, getCreationDate, getCreator, getFileSystemItemAdapterService, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, getUserName, hashCode, isFolder, setCanDelete, setCanRename, setCreationDate, setCreator, setFolder, setLastContributor, setLastModificationDate, setLockInfo, setName, setParentId, setPath, setUserName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanMove, getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, isFoldercompareToprotected DocumentModel userWorkspace
protected String syncRootParentFactoryName
public UserWorkspaceTopLevelFolderItem(String factoryName, DocumentModel userWorkspace, String folderName, String syncRootParentFactoryName)
public UserWorkspaceTopLevelFolderItem(String factoryName, DocumentModel userWorkspace, String folderName, String syncRootParentFactoryName, boolean relaxSyncRootConstraint)
public UserWorkspaceTopLevelFolderItem(String factoryName, DocumentModel userWorkspace, String folderName, String syncRootParentFactoryName, boolean relaxSyncRootConstraint, boolean getLockInfo)
protected UserWorkspaceTopLevelFolderItem()
public void rename(String name)
rename in interface FileSystemItemrename in class DocumentBackedFolderItempublic void delete()
delete in interface FileSystemItemdelete in class AbstractDocumentBackedFileSystemItempublic FileSystemItem move(FolderItem dest)
move in interface FileSystemItemmove in class AbstractDocumentBackedFileSystemItempublic List<FileSystemItem> getChildren()
getChildren in interface FolderItemgetChildren in class DocumentBackedFolderItempublic 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 FolderItemscrollDescendants in class DocumentBackedFolderItemprotected NuxeoDriveManager getNuxeoDriveManager()
Copyright © 2016 Nuxeo SA. All rights reserved.