Class UserWorkspaceSyncRootFactory
- java.lang.Object
-
- org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
-
- org.nuxeo.drive.service.impl.AbstractSyncRootFolderItemFactory
-
- org.nuxeo.drive.hierarchy.userworkspace.factory.UserWorkspaceSyncRootFactory
-
- All Implemented Interfaces:
FileSystemItemFactory
public class UserWorkspaceSyncRootFactory extends AbstractSyncRootFolderItemFactory
User workspace based implementation ofFileSystemItemFactoryfor a synchronization rootFolderItem.- Author:
- Antoine Taillefer
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringSYNC_ROOT_PARENT_FACTORY_PARAMprotected StringsyncRootParentFactoryName-
Fields inherited from class org.nuxeo.drive.service.impl.AbstractFileSystemItemFactory
name
-
-
Constructor Summary
Constructors Constructor Description UserWorkspaceSyncRootFactory()
-
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.protected FileSystemItemAdapterServicegetFileSystemAdapterService()protected FolderItemgetParentItem(DocumentModel doc)Returns the parentFileSystemItem.voidhandleParameters(Map<String,String> parameters)No parameters by default.-
Methods inherited from class org.nuxeo.drive.service.impl.AbstractSyncRootFolderItemFactory
getFileSystemItem, getFileSystemItem, getFileSystemItem, isFileSystemItem
-
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
-
SYNC_ROOT_PARENT_FACTORY_PARAM
protected static final String SYNC_ROOT_PARENT_FACTORY_PARAM
- See Also:
- Constant Field Values
-
syncRootParentFactoryName
protected String syncRootParentFactoryName
-
-
Method Detail
-
handleParameters
public void handleParameters(Map<String,String> parameters)
Description copied from class:AbstractSyncRootFolderItemFactoryNo parameters by default.- Specified by:
handleParametersin interfaceFileSystemItemFactory- Overrides:
handleParametersin classAbstractSyncRootFolderItemFactory
-
adaptDocument
protected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo)
Description copied from class:AbstractFileSystemItemFactoryAdapts the givenDocumentModelto aFileSystemItem.
-
getParentItem
protected FolderItem getParentItem(DocumentModel doc)
Description copied from class:AbstractSyncRootFolderItemFactoryReturns the parentFileSystemItem.- Specified by:
getParentItemin classAbstractSyncRootFolderItemFactory
-
getFileSystemAdapterService
protected FileSystemItemAdapterService getFileSystemAdapterService()
-
-