public class UserSyncRootParentFactory extends AbstractFileSystemItemFactory implements VirtualFolderItemFactory
FileSystemItemFactory for the parent FolderItem of the user's
 synchronization roots.| Modifier and Type | Field and Description | 
|---|---|
protected static String | 
FOLDER_NAME_PARAM  | 
protected String | 
folderName  | 
name| Constructor and Description | 
|---|
UserSyncRootParentFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected FileSystemItem | 
adaptDocument(DocumentModel doc,
             boolean forceParentItem,
             FolderItem parentItem,
             boolean relaxSyncRootConstraint,
             boolean getLockInfo)
Adapts the given  
DocumentModel to a FileSystemItem. | 
FileSystemItem | 
getFileSystemItem(DocumentModel doc,
                 boolean includeDeleted)
Force parent item using  
getTopLevelFolderItem(NuxeoPrincipal). | 
FileSystemItem | 
getFileSystemItem(DocumentModel doc,
                 boolean includeDeleted,
                 boolean relaxSyncRootConstraint)
Gets the  
FileSystemItem for the given DocumentModel. | 
FileSystemItem | 
getFileSystemItem(DocumentModel doc,
                 boolean includeDeleted,
                 boolean relaxSyncRootConstraint,
                 boolean getLockInfo)
Gets the  
FileSystemItem for the given DocumentModel. | 
String | 
getFolderName()  | 
protected FolderItem | 
getTopLevelFolderItem(NuxeoPrincipal principal)  | 
FolderItem | 
getVirtualFolderItem(NuxeoPrincipal 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, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanHandleFileSystemItemId, exists, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, setNameprotected static final String FOLDER_NAME_PARAM
protected String folderName
public UserSyncRootParentFactory()
public void handleParameters(Map<String,String> parameters)
FileSystemItemFactoryfileSystemItemFactory contribution.handleParameters in interface FileSystemItemFactorypublic boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
FileSystemItemFactoryDocumentModel is adaptable as a FileSystemItem.
 
 If includeDeleted is true no filter is applied on the "trashed" 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 FileSystemItemFactoryprotected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo)
AbstractFileSystemItemFactoryDocumentModel to a FileSystemItem.public FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted)
getTopLevelFolderItem(NuxeoPrincipal).getFileSystemItem in interface FileSystemItemFactorygetFileSystemItem in class AbstractFileSystemItemFactoryFileSystemItem or null if the DocumentModel is not adaptable as a
         FileSystemItemFileSystemItemFactory.isFileSystemItem(DocumentModel, boolean)public FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
FileSystemItemFactoryFileSystemItem for the given DocumentModel.
 
 If includeDeleted is true no filter is applied on the "trashed" state, else if the document is in this
 state it is not considered as adaptable as a FileSystemItem, thus the method returns null.
 
 If relaxSyncRootConstraint is true no filter is applied on the synchronization root aspect for the
 current user.
getFileSystemItem in interface FileSystemItemFactorygetFileSystemItem in class AbstractFileSystemItemFactoryFileSystemItem or null if the DocumentModel is not adaptable as a
         FileSystemItemFileSystemItemFactory.isFileSystemItem(DocumentModel, boolean, boolean)public FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo)
FileSystemItemFactoryFileSystemItem for the given DocumentModel.
 
 If includeDeleted is true no filter is applied on the "trashed" state, else if the document is in this
 state it is not considered as adaptable as a FileSystemItem, thus the method returns null.
 
 If relaxSyncRootConstraint is true no filter is applied on the synchronization root aspect for the
 current user.
 
 If getLockInfo is true the Lock is fetched from the DocumentModel and set on the returned
 FileSystemItem.
getFileSystemItem in interface FileSystemItemFactorygetFileSystemItem in class AbstractFileSystemItemFactoryFileSystemItem or null if the DocumentModel is not adaptable as a
         FileSystemItemFileSystemItemFactory.isFileSystemItem(DocumentModel, boolean, boolean)public FolderItem getVirtualFolderItem(NuxeoPrincipal principal)
VirtualFolderItemFactoryFolderItem.getVirtualFolderItem in interface VirtualFolderItemFactorypublic String getFolderName()
getFolderName in interface VirtualFolderItemFactorypublic void setFolderName(String folderName)
setFolderName in interface VirtualFolderItemFactoryprotected FolderItem getTopLevelFolderItem(NuxeoPrincipal principal)
Copyright © 2019 Nuxeo. All rights reserved.