public class CollectionSyncRootFolderItemFactory extends DefaultSyncRootFolderItemFactory
FileSystemItemFactory for a collection synchronization root FolderItem.| Modifier and Type | Field and Description | 
|---|---|
static String | 
FACTORY_NAME  | 
name| Constructor and Description | 
|---|
CollectionSyncRootFolderItemFactory()  | 
| 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. | 
boolean | 
isFileSystemItem(DocumentModel doc,
                boolean includeDeleted,
                boolean relaxSyncRootConstraint)
The factory considers that a  
DocumentModel is adaptable as a FileSystemItem if:
 
 It is a Collection
 AND it is not HiddenInNavigation
 AND it is not in the trash, unless includeDeleted is true
 AND it is a synchronization root registered for the current user, unless relaxSyncRootConstraint is
 true
  | 
getParentItemgetFileSystemItem, getFileSystemItem, getFileSystemItem, handleParametersadaptDocument, canHandleFileSystemItemId, exists, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setNamepublic static final String FACTORY_NAME
public CollectionSyncRootFolderItemFactory()
public boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
DocumentModel is adaptable as a FileSystemItem if:
 includeDeleted is truerelaxSyncRootConstraint is
 trueisFileSystemItem in interface FileSystemItemFactoryisFileSystemItem in class AbstractSyncRootFolderItemFactoryprotected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo)
AbstractFileSystemItemFactoryDocumentModel to a FileSystemItem.Copyright © 2019 Nuxeo. All rights reserved.