public class UserSyncRootParentFactory extends AbstractFileSystemItemFactory implements VirtualFolderItemFactory
FileSystemItemFactory for the
parent FolderItem of the user's synchronization roots.| Constructor and Description |
|---|
UserSyncRootParentFactory() |
| Modifier and Type | Method and Description |
|---|---|
FileSystemItem |
getFileSystemItem(DocumentModel doc,
boolean includeDeleted)
Force parent item using
getTopLevelFolderItem(Principal). |
String |
getFolderName() |
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)
Returns true if the given
DocumentModel is adaptable as a
FileSystemItem. |
void |
setFolderName(String folderName) |
canHandleFileSystemItemId, exists, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getName, isFileSystemItem, setNameequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanHandleFileSystemItemId, exists, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getName, isFileSystemItem, setNamepublic void handleParameters(Map<String,String> parameters) throws ClientException
FileSystemItemFactoryfileSystemItemFactory contribution.handleParameters in interface FileSystemItemFactoryhandleParameters in class AbstractFileSystemItemFactoryClientExceptionpublic boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted) throws ClientException
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.isFileSystemItem in interface FileSystemItemFactoryisFileSystemItem in class AbstractFileSystemItemFactoryClientExceptionpublic FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted) throws ClientException
getTopLevelFolderItem(Principal).getFileSystemItem in interface FileSystemItemFactorygetFileSystemItem in class AbstractFileSystemItemFactoryFileSystemItem or null if the DocumentModel
is not adaptable as a FileSystemItemClientException#isFileSystemItem(DocumentModel, boolean))public FolderItem getVirtualFolderItem(Principal principal) throws ClientException
VirtualFolderItemFactoryFolderItem.getVirtualFolderItem in interface VirtualFolderItemFactoryClientExceptionpublic String getFolderName()
getFolderName in interface VirtualFolderItemFactorypublic void setFolderName(String folderName)
setFolderName in interface VirtualFolderItemFactoryCopyright © 2013 Nuxeo SA. All Rights Reserved.