public class UserSyncRootParentFolderItem extends DocumentBackedFolderItem
FolderItem
of the user's synchronization roots.Modifier and Type | Field and Description |
---|---|
protected boolean |
isUserWorkspaceSyncRoot |
canCreateChild, canScrollDescendants, DESCENDANTS_SCROLL_CACHE, MAX_DESCENDANTS_BATCH_SIZE_DEFAULT, MAX_DESCENDANTS_BATCH_SIZE_PROPERTY, VCS_CHUNK_SIZE
docId, docPath, docTitle, PERMISSION_CHECK_OPTIMIZED_PROPERTY, repositoryName
canDelete, canRename, creationDate, creator, factoryName, FILE_SYSTEM_ITEM_ID_SEPARATOR, folder, id, lastContributor, lastModificationDate, lockInfo, name, parentId, path, principal, userName
Modifier | Constructor and Description |
---|---|
protected |
UserSyncRootParentFolderItem() |
|
UserSyncRootParentFolderItem(String factoryName,
DocumentModel doc,
FolderItem parentItem,
String folderName) |
|
UserSyncRootParentFolderItem(String factoryName,
DocumentModel doc,
FolderItem parentItem,
String folderName,
boolean relaxSyncRootConstraint) |
|
UserSyncRootParentFolderItem(String factoryName,
DocumentModel doc,
FolderItem parentItem,
String folderName,
boolean relaxSyncRootConstraint,
boolean getLockInfo) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
List<FileSystemItem> |
getChildren() |
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, setCanScrollDescendants
canMove, computeId, getDocId, getDocPath, getDocument, getDocumentById, getRepositoryName, getTrashService, handleCollectionMember, parseFileSystemId, setId, updateLastModificationDate
compareTo, 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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createFile, createFolder
canMove, getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, isFolder
compareTo
protected boolean isUserWorkspaceSyncRoot
public UserSyncRootParentFolderItem(String factoryName, DocumentModel doc, FolderItem parentItem, String folderName)
public UserSyncRootParentFolderItem(String factoryName, DocumentModel doc, FolderItem parentItem, String folderName, boolean relaxSyncRootConstraint)
public UserSyncRootParentFolderItem(String factoryName, DocumentModel doc, FolderItem parentItem, String folderName, boolean relaxSyncRootConstraint, boolean getLockInfo)
protected UserSyncRootParentFolderItem()
public void rename(String name)
rename
in interface FileSystemItem
rename
in class DocumentBackedFolderItem
public void delete()
delete
in interface FileSystemItem
delete
in class AbstractDocumentBackedFileSystemItem
public FileSystemItem move(FolderItem dest)
move
in interface FileSystemItem
move
in class AbstractDocumentBackedFileSystemItem
public List<FileSystemItem> getChildren()
getChildren
in interface FolderItem
getChildren
in class DocumentBackedFolderItem
public ScrollFileSystemItemList scrollDescendants(String scrollId, int batchSize, long keepAlive)
FolderItem
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.
scrollDescendants
in interface FolderItem
scrollDescendants
in class DocumentBackedFolderItem
Copyright © 2018 Nuxeo. All rights reserved.