Package org.nuxeo.drive.service.impl
Class AbstractSyncRootFolderItemFactory
java.lang.Object
org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
org.nuxeo.drive.service.impl.AbstractSyncRootFolderItemFactory
- All Implemented Interfaces:
FileSystemItemFactory
- Direct Known Subclasses:
DefaultSyncRootFolderItemFactory,PermissionSyncRootFactory,UserWorkspaceSyncRootFactory
Base
FileSystemItemFactory for a synchronization root FolderItem.- Author:
- Antoine Taillefer
-
Field Summary
Fields inherited from class org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFileSystemItem(DocumentModel doc, boolean includeDeleted) Force parent usinggetParentItem(DocumentModel).getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) Force parent usinggetParentItem(DocumentModel).getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo) Force parent usinggetParentItem(DocumentModel).protected abstract FolderItemReturns the parentFileSystemItem.voidhandleParameters(Map<String, String> parameters) No parameters by default.booleanisFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) The factory considers that aDocumentModelis adaptable as aFileSystemItemif: It is Folderish AND it is not a version nor a proxy AND it is not HiddenInNavigation AND it is not in the trash, unlessincludeDeletedis true AND it is a synchronization root registered for the current user, unlessrelaxSyncRootConstraintis trueMethods inherited from class org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
adaptDocument, adaptDocument, canHandleFileSystemItemId, exists, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setName
-
Constructor Details
-
AbstractSyncRootFolderItemFactory
public AbstractSyncRootFolderItemFactory()
-
-
Method Details
-
getParentItem
Returns the parentFileSystemItem. -
handleParameters
No parameters by default. -
isFileSystemItem
public boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) The factory considers that aDocumentModelis adaptable as aFileSystemItemif:- It is Folderish
- AND it is not a version nor a proxy
- AND it is not HiddenInNavigation
- AND it is not in the trash, unless
includeDeletedis true - AND it is a synchronization root registered for the current user, unless
relaxSyncRootConstraintis true
-
getFileSystemItem
Force parent usinggetParentItem(DocumentModel).- Specified by:
getFileSystemItemin interfaceFileSystemItemFactory- Overrides:
getFileSystemItemin classAbstractFileSystemItemFactory- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - See Also:
-
getFileSystemItem
public FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) Force parent usinggetParentItem(DocumentModel).- Specified by:
getFileSystemItemin interfaceFileSystemItemFactory- Overrides:
getFileSystemItemin classAbstractFileSystemItemFactory- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - See Also:
-
getFileSystemItem
public FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo) Force parent usinggetParentItem(DocumentModel).- Specified by:
getFileSystemItemin interfaceFileSystemItemFactory- Overrides:
getFileSystemItemin classAbstractFileSystemItemFactory- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - See Also:
-