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
public class CollectionSyncRootFolderItemFactory extends DefaultSyncRootFolderItemFactory
FileSystemItemFactory
for a collection synchronization rootFolderItem
.- Since:
- 6.0
- Author:
- Antoine Taillefer
-
-
Field Summary
Fields Modifier and Type Field Description static String
FACTORY_NAME
-
Fields inherited from class org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
name
-
-
Constructor Summary
Constructors Constructor Description CollectionSyncRootFolderItemFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 true-
Methods 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 Detail
-
FACTORY_NAME
public static final String FACTORY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
.
-
-