public class UserWorkspaceTopLevelFactory extends AbstractFileSystemItemFactory implements TopLevelFolderItemFactory
TopLevelFolderItemFactory.| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_FOLDER_NAME |
protected static String |
FOLDER_NAME_PARAM |
protected String |
folderName |
protected static String |
SYNC_ROOT_PARENT_FACTORY_PARAM |
protected String |
syncRootParentFactoryName |
name| Constructor and Description |
|---|
UserWorkspaceTopLevelFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected FileSystemItem |
adaptDocument(DocumentModel doc,
boolean forceParentItem,
FolderItem parentItem,
boolean relaxSyncRootConstraint)
Adapts the given
DocumentModel to a FileSystemItem. |
String |
getFolderName() |
FolderItem |
getTopLevelFolderItem(Principal principal) |
FolderItem |
getVirtualFolderItem(Principal principal)
Returns the (unique) virtual
FolderItem. |
void |
handleParameters(Map<String,String> parameters)
Handles the factory parameters contributed through the
fileSystemItemFactory contribution. |
boolean |
isFileSystemItem(DocumentModel doc,
boolean includeDeleted,
boolean relaxSyncRootConstraint)
Returns true if the given
DocumentModel is adaptable as a FileSystemItem. |
void |
setFolderName(String folderName) |
adaptDocument, canHandleFileSystemItemId, exists, getDocumentByFileSystemId, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanHandleFileSystemItemId, exists, getDocumentByFileSystemId, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, setNameprotected static final String FOLDER_NAME_PARAM
protected static final String SYNC_ROOT_PARENT_FACTORY_PARAM
protected static final String DEFAULT_FOLDER_NAME
protected String folderName
protected String syncRootParentFactoryName
public UserWorkspaceTopLevelFactory()
public void handleParameters(Map<String,String> parameters)
FileSystemItemFactoryfileSystemItemFactory contribution.handleParameters in interface FileSystemItemFactoryhandleParameters in class AbstractFileSystemItemFactorypublic boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
FileSystemItemFactoryDocumentModel is adaptable as a FileSystemItem.
If includeDeleted is true no filter is applied on the "deleted" life cycle state, else if the document is
in this state it is not considered as adaptable as a FileSystemItem, thus the method returns false.
If relaxSyncRootConstraint is true no filter is applied on the synchronization root aspect for the
current user.
isFileSystemItem in interface FileSystemItemFactoryisFileSystemItem in class AbstractFileSystemItemFactoryprotected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint)
AbstractFileSystemItemFactoryDocumentModel to a FileSystemItem.adaptDocument in class AbstractFileSystemItemFactory#getFileSystemItem(DocumentModel, boolean, String, boolean)public FolderItem getVirtualFolderItem(Principal principal)
VirtualFolderItemFactoryFolderItem.getVirtualFolderItem in interface VirtualFolderItemFactorypublic String getFolderName()
getFolderName in interface VirtualFolderItemFactorypublic void setFolderName(String folderName)
setFolderName in interface VirtualFolderItemFactorypublic FolderItem getTopLevelFolderItem(Principal principal)
getTopLevelFolderItem in interface TopLevelFolderItemFactoryCopyright © 2016 Nuxeo SA. All rights reserved.