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
FileSystemItemFactoryfor a collection synchronization rootFolderItem.- Since:
- 6.0
- Author:
- Antoine Taillefer
-
-
Field Summary
Fields Modifier and Type Field Description static StringFACTORY_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 FileSystemItemadaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo)Adapts the givenDocumentModelto aFileSystemItem.booleanisFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)The factory considers that aDocumentModelis adaptable as aFileSystemItemif: It is a Collection 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 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 aDocumentModelis adaptable as aFileSystemItemif:- It is a Collection
- 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
- Specified by:
isFileSystemItemin interfaceFileSystemItemFactory- Overrides:
isFileSystemItemin classAbstractSyncRootFolderItemFactory
-
adaptDocument
protected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo)
Description copied from class:AbstractFileSystemItemFactoryAdapts the givenDocumentModelto aFileSystemItem.
-
-