Package org.nuxeo.drive.service.impl
Class DefaultFileSystemItemFactory
java.lang.Object
org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
org.nuxeo.drive.service.impl.DefaultFileSystemItemFactory
- All Implemented Interfaces:
FileSystemItemFactory
public class DefaultFileSystemItemFactory
extends AbstractFileSystemItemFactory
implements FileSystemItemFactory
Default implementation of a
FileSystemItemFactory. It is DocumentModel backed and is the one used by
Nuxeo Drive.- Author:
- Antoine Taillefer
-
Field Summary
Fields 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.protected BlobgetBlob(DocumentModel doc) voidhandleParameters(Map<String, String> parameters) Handles the factory parameters contributed through thefileSystemItemFactorycontribution.booleanisFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) The default factory considers that aDocumentModelis adaptable as aFileSystemItemif: It is not a version AND it is not HiddenInNavigation AND it is not in the trash, unlessincludeDeletedis true AND it is Folderish or it can be adapted as aBlobHolderwith a blob AND its blob is not backed by an extended blob provider AND it is not a synchronization root registered for the current user, unlessrelaxSyncRootConstraintis trueMethods inherited from class org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
adaptDocument, canHandleFileSystemItemId, exists, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.drive.service.FileSystemItemFactory
canHandleFileSystemItemId, exists, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, setName
-
Constructor Details
-
DefaultFileSystemItemFactory
public DefaultFileSystemItemFactory()
-
-
Method Details
-
handleParameters
Description copied from interface:FileSystemItemFactoryHandles the factory parameters contributed through thefileSystemItemFactorycontribution.- Specified by:
handleParametersin interfaceFileSystemItemFactory
-
isFileSystemItem
public boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) The default factory considers that aDocumentModelis adaptable as aFileSystemItemif:- It is not a version
- AND it is not HiddenInNavigation
- AND it is not in the trash, unless
includeDeletedis true - AND it is Folderish or it can be adapted as a
BlobHolderwith a blob - AND its blob is not backed by an extended blob provider
- AND it is not a synchronization root registered for the current user, unless
relaxSyncRootConstraintis true
- Specified by:
isFileSystemItemin interfaceFileSystemItemFactory
-
adaptDocument
protected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo) Description copied from class:AbstractFileSystemItemFactoryAdapts the givenDocumentModelto aFileSystemItem. -
getBlob
-