public class CollectionSyncRootFolderItem extends DefaultSyncRootFolderItem
FolderItem
.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, FILE_SYSTEM_ITEM_PATH_SEPARATOR, folder, id, lastContributor, lastModificationDate, lockInfo, name, parentId, path, principal, userName
Modifier | Constructor and Description |
---|---|
protected |
CollectionSyncRootFolderItem() |
|
CollectionSyncRootFolderItem(String factoryName,
FolderItem parentItem,
DocumentModel doc) |
|
CollectionSyncRootFolderItem(String factoryName,
FolderItem parentItem,
DocumentModel doc,
boolean relaxSyncRootConstraint) |
|
CollectionSyncRootFolderItem(String factoryName,
FolderItem parentItem,
DocumentModel doc,
boolean relaxSyncRootConstraint,
boolean getLockInfo) |
Modifier and Type | Method and Description |
---|---|
FileItem |
createFile(Blob blob,
boolean overwrite) |
FolderItem |
createFolder(String name,
boolean overwrite) |
List<FileSystemItem> |
getChildren() |
protected void |
initialize(DocumentModel doc) |
ScrollFileSystemItemList |
scrollDescendants(String scrollId,
int batchSize,
long keepAlive)
|
canMove, delete, move
adaptDocuments, checkBatchSize, doScrollDescendants, equals, fetchFromVCS, fetchFromVcsChunk, getBatch, getCanCreateChild, getCanScrollDescendants, getFileManager, getFolderItem, getScrollBatch, hashCode, populateAncestorCache, rename, setCanCreateChild, setCanScrollDescendants
computeId, getDocId, getDocPath, getDocument, getDocumentById, getRepositoryName, getTrashService, handleCollectionMember, parseFileSystemId, setId, updateLastModificationDate
compareTo, getCanDelete, getCanRename, getCreationDate, getCreator, getFileSystemItemAdapterService, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, getUserName, isFolder, setCanDelete, setCanRename, setCreationDate, setCreator, setFolder, setLastContributor, setLastModificationDate, setLockInfo, setName, setParentId, setPath, setUserName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createFile, createFolder
getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, isFolder
compareTo
public CollectionSyncRootFolderItem(String factoryName, FolderItem parentItem, DocumentModel doc)
public CollectionSyncRootFolderItem(String factoryName, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint)
public CollectionSyncRootFolderItem(String factoryName, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo)
protected CollectionSyncRootFolderItem()
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
public FolderItem createFolder(String name, boolean overwrite)
createFolder
in interface FolderItem
createFolder
in class DocumentBackedFolderItem
overwrite
- allows to overwrite an existing folder with the same titlepublic FileItem createFile(Blob blob, boolean overwrite)
createFile
in interface FolderItem
createFile
in class DocumentBackedFolderItem
overwrite
- allows to overwrite an existing file with the same titleprotected final void initialize(DocumentModel doc)
initialize
in class DocumentBackedFolderItem
Copyright © 2019 Nuxeo. All rights reserved.