Package org.nuxeo.drive.service.impl
Class CollectionSyncRootFolderItemFactory
java.lang.Object
org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
org.nuxeo.drive.service.impl.AbstractSyncRootFolderItemFactory
org.nuxeo.drive.service.impl.DefaultSyncRootFolderItemFactory
org.nuxeo.drive.service.impl.CollectionSyncRootFolderItemFactory
- All Implemented Interfaces:
FileSystemItemFactory
FileSystemItemFactory
for a collection synchronization root FolderItem
.- Since:
- 6.0
- Author:
- Antoine Taillefer
-
Field Summary
Fields inherited from class org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FileSystemItem
adaptDocument
(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo) Adapts the givenDocumentModel
to aFileSystemItem
.boolean
isFileSystemItem
(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) The factory considers that aDocumentModel
is adaptable as aFileSystemItem
if: It is a Collection AND it is not HiddenInNavigation AND it is not in the trash, unlessincludeDeleted
is true AND it is a synchronization root registered for the current user, unlessrelaxSyncRootConstraint
is trueMethods inherited from class org.nuxeo.drive.service.impl.DefaultSyncRootFolderItemFactory
getParentItem
Methods inherited from class org.nuxeo.drive.service.impl.AbstractSyncRootFolderItemFactory
getFileSystemItem, getFileSystemItem, getFileSystemItem, handleParameters
Methods inherited from class org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
adaptDocument, canHandleFileSystemItemId, exists, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setName
-
Field Details
-
FACTORY_NAME
- See Also:
-
-
Constructor Details
-
CollectionSyncRootFolderItemFactory
public CollectionSyncRootFolderItemFactory()
-
-
Method Details
-
isFileSystemItem
public boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) The factory considers that aDocumentModel
is adaptable as aFileSystemItem
if:- It is a Collection
- AND it is not HiddenInNavigation
- AND it is not in the trash, unless
includeDeleted
is true - AND it is a synchronization root registered for the current user, unless
relaxSyncRootConstraint
is true
- Specified by:
isFileSystemItem
in interfaceFileSystemItemFactory
- Overrides:
isFileSystemItem
in classAbstractSyncRootFolderItemFactory
-
adaptDocument
protected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo) Description copied from class:AbstractFileSystemItemFactory
Adapts the givenDocumentModel
to aFileSystemItem
.
-