Class PermissionTopLevelFactory
- java.lang.Object
-
- org.nuxeo.drive.service.impl.AbstractVirtualFolderItemFactory
-
- org.nuxeo.drive.hierarchy.permission.factory.PermissionTopLevelFactory
-
- All Implemented Interfaces:
FileSystemItemFactory,TopLevelFolderItemFactory,VirtualFolderItemFactory
public class PermissionTopLevelFactory extends AbstractVirtualFolderItemFactory implements TopLevelFolderItemFactory
User workspace and permission based implementation of theTopLevelFolderItemFactory.- Author:
- Antoine Taillefer
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCHILDREN_FACTORIES_PARAMprotected List<String>childrenFactoryNames-
Fields inherited from class org.nuxeo.drive.service.impl.AbstractVirtualFolderItemFactory
DEFAULT_FOLDER_NAME, FOLDER_NAME_PARAM, folderName, name
-
-
Constructor Summary
Constructors Constructor Description PermissionTopLevelFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FolderItemgetTopLevelFolderItem(NuxeoPrincipal principal)FolderItemgetVirtualFolderItem(NuxeoPrincipal principal)Returns the (unique) virtualFolderItem.voidhandleParameters(Map<String,String> parameters)Handles the factory parameters contributed through thefileSystemItemFactorycontribution.-
Methods inherited from class org.nuxeo.drive.service.impl.AbstractVirtualFolderItemFactory
canHandleFileSystemItemId, exists, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getFolderName, getName, isFileSystemItem, isFileSystemItem, isFileSystemItem, setFolderName, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.drive.service.FileSystemItemFactory
canHandleFileSystemItemId, exists, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, isFileSystemItem, setName
-
Methods inherited from interface org.nuxeo.drive.service.VirtualFolderItemFactory
getFolderName, setFolderName
-
-
-
-
Field Detail
-
CHILDREN_FACTORIES_PARAM
protected static final String CHILDREN_FACTORIES_PARAM
- See Also:
- Constant Field Values
-
childrenFactoryNames
protected List<String> childrenFactoryNames
-
-
Constructor Detail
-
PermissionTopLevelFactory
public PermissionTopLevelFactory()
-
-
Method Detail
-
handleParameters
public void handleParameters(Map<String,String> parameters)
Description copied from interface:FileSystemItemFactoryHandles the factory parameters contributed through thefileSystemItemFactorycontribution.- Specified by:
handleParametersin interfaceFileSystemItemFactory- Overrides:
handleParametersin classAbstractVirtualFolderItemFactory
-
getVirtualFolderItem
public FolderItem getVirtualFolderItem(NuxeoPrincipal principal)
Description copied from interface:VirtualFolderItemFactoryReturns the (unique) virtualFolderItem.- Specified by:
getVirtualFolderItemin interfaceVirtualFolderItemFactory
-
getTopLevelFolderItem
public FolderItem getTopLevelFolderItem(NuxeoPrincipal principal)
- Specified by:
getTopLevelFolderItemin interfaceTopLevelFolderItemFactory
-
-