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
FieldsFields inherited from class org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
name - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected 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 trueMethods inherited from class org.nuxeo.drive.service.impl.DefaultSyncRootFolderItemFactory
getParentItemMethods inherited from class org.nuxeo.drive.service.impl.AbstractSyncRootFolderItemFactory
getFileSystemItem, getFileSystemItem, getFileSystemItem, handleParametersMethods 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 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. 
 -