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 String
CHILDREN_FACTORIES_PARAM
protected 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 FolderItem
getTopLevelFolderItem(NuxeoPrincipal principal)
FolderItem
getVirtualFolderItem(NuxeoPrincipal principal)
Returns the (unique) virtualFolderItem
.void
handleParameters(Map<String,String> parameters)
Handles the factory parameters contributed through thefileSystemItemFactory
contribution.-
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
-
-
Method Detail
-
handleParameters
public void handleParameters(Map<String,String> parameters)
Description copied from interface:FileSystemItemFactory
Handles the factory parameters contributed through thefileSystemItemFactory
contribution.- Specified by:
handleParameters
in interfaceFileSystemItemFactory
- Overrides:
handleParameters
in classAbstractVirtualFolderItemFactory
-
getVirtualFolderItem
public FolderItem getVirtualFolderItem(NuxeoPrincipal principal)
Description copied from interface:VirtualFolderItemFactory
Returns the (unique) virtualFolderItem
.- Specified by:
getVirtualFolderItem
in interfaceVirtualFolderItemFactory
-
getTopLevelFolderItem
public FolderItem getTopLevelFolderItem(NuxeoPrincipal principal)
- Specified by:
getTopLevelFolderItem
in interfaceTopLevelFolderItemFactory
-
-