Class UserSyncRootParentFolderItem
- java.lang.Object
-
- org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
-
- org.nuxeo.drive.adapter.impl.AbstractDocumentBackedFileSystemItem
-
- org.nuxeo.drive.adapter.impl.DocumentBackedFolderItem
-
- org.nuxeo.drive.hierarchy.permission.adapter.UserSyncRootParentFolderItem
-
- All Implemented Interfaces:
Comparable<FileSystemItem>,FileSystemItem,FolderItem
public class UserSyncRootParentFolderItem extends DocumentBackedFolderItem
User workspace based implementation of the parentFolderItemof the user's synchronization roots.- Author:
- Antoine Taillefer
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisUserWorkspaceSyncRoot-
Fields inherited from class org.nuxeo.drive.adapter.impl.DocumentBackedFolderItem
canCreateChild, canScrollDescendants, DESCENDANTS_SCROLL_CACHE, MAX_DESCENDANTS_BATCH_SIZE_DEFAULT, MAX_DESCENDANTS_BATCH_SIZE_PROPERTY, VCS_CHUNK_SIZE
-
Fields inherited from class org.nuxeo.drive.adapter.impl.AbstractDocumentBackedFileSystemItem
docId, docPath, docTitle, PERMISSION_CHECK_OPTIMIZED_PROPERTY, repositoryName
-
Fields inherited from class org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserSyncRootParentFolderItem()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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()booleanequals(Object obj)List<FileSystemItem>getChildren()inthashCode()FileSystemItemmove(FolderItem dest)voidrename(String name)ScrollFileSystemItemListscrollDescendants(String scrollId, int batchSize, long keepAlive)-
Methods inherited from class org.nuxeo.drive.adapter.impl.DocumentBackedFolderItem
adaptDocuments, checkBatchSize, createFile, createFolder, doScrollDescendants, fetchFromVCS, fetchFromVcsChunk, getBatch, getCanCreateChild, getCanScrollDescendants, getFileManager, getFolderItem, getScrollBatch, initialize, populateAncestorCache, setCanCreateChild, setCanScrollDescendants
-
Methods inherited from class org.nuxeo.drive.adapter.impl.AbstractDocumentBackedFileSystemItem
canMove, computeId, getDocId, getDocPath, getDocument, getDocumentById, getRepositoryName, getTrashService, handleCollectionMember, parseFileSystemId, setId, updateLastModificationDate
-
Methods inherited from class org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.nuxeo.drive.adapter.FileSystemItem
canMove, getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, isFolder
-
Methods inherited from interface org.nuxeo.drive.adapter.FolderItem
createFile, createFolder
-
-
-
-
Constructor Detail
-
UserSyncRootParentFolderItem
public UserSyncRootParentFolderItem(String factoryName, DocumentModel doc, FolderItem parentItem, String folderName)
-
UserSyncRootParentFolderItem
public UserSyncRootParentFolderItem(String factoryName, DocumentModel doc, FolderItem parentItem, String folderName, boolean relaxSyncRootConstraint)
-
UserSyncRootParentFolderItem
public UserSyncRootParentFolderItem(String factoryName, DocumentModel doc, FolderItem parentItem, String folderName, boolean relaxSyncRootConstraint, boolean getLockInfo)
-
UserSyncRootParentFolderItem
protected UserSyncRootParentFolderItem()
-
-
Method Detail
-
rename
public void rename(String name)
- Specified by:
renamein interfaceFileSystemItem- Overrides:
renamein classDocumentBackedFolderItem
-
delete
public void delete()
- Specified by:
deletein interfaceFileSystemItem- Overrides:
deletein classAbstractDocumentBackedFileSystemItem
-
move
public FileSystemItem move(FolderItem dest)
- Specified by:
movein interfaceFileSystemItem- Overrides:
movein classAbstractDocumentBackedFileSystemItem
-
getChildren
public List<FileSystemItem> getChildren()
- Specified by:
getChildrenin interfaceFolderItem- Overrides:
getChildrenin classDocumentBackedFolderItem
-
scrollDescendants
public ScrollFileSystemItemList scrollDescendants(String scrollId, int batchSize, long keepAlive)
Description copied from interface:FolderItemRetrieves at mostbatchSizeFileSystemItemdescendants for the givenscrollId.When passing a null
scrollIdthe initial search request is executed and the first batch of results is returned along with ascrollIdwhich 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
keepAlivemilliseconds ifkeepAliveis positive.Results are not necessarily sorted.
This method is protected by a
Semaphore, made available byFileSystemItemAdapterService.getScrollBatchSemaphore(), to limit the number of concurrent executions and avoid too much memory pressure.- Specified by:
scrollDescendantsin interfaceFolderItem- Overrides:
scrollDescendantsin classDocumentBackedFolderItem
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classDocumentBackedFolderItem
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDocumentBackedFolderItem
-
-