public abstract class AbstractSyncRootFolderItemFactory extends AbstractFileSystemItemFactory
FileSystemItemFactory for a synchronization root FolderItem.name| Constructor and Description |
|---|
AbstractSyncRootFolderItemFactory() |
| Modifier and Type | Method and Description |
|---|---|
FileSystemItem |
getFileSystemItem(DocumentModel doc,
boolean includeDeleted)
Force parent id using
#getParentId(String). |
FileSystemItem |
getFileSystemItem(DocumentModel doc,
boolean includeDeleted,
boolean relaxSyncRootConstraint)
Force parent id using
#getParentId(String). |
protected abstract FolderItem |
getParentItem(DocumentModel doc)
Returns the parent
FileSystemItem. |
void |
handleParameters(Map<String,String> parameters)
No parameters by default.
|
boolean |
isFileSystemItem(DocumentModel doc,
boolean includeDeleted,
boolean relaxSyncRootConstraint)
The factory considers that a
DocumentModel is adaptable as a FileSystemItem if:
It is Folderish
AND it is not a version nor a proxy
AND it is not HiddenInNavigation
AND it is not in the "deleted" life cycle state, unless includeDeleted is true
AND it is a synchronization root registered for the current user, unless relaxSyncRootConstraint is
true
|
adaptDocument, adaptDocument, canHandleFileSystemItemId, exists, getDocumentByFileSystemId, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setNamepublic AbstractSyncRootFolderItemFactory()
protected abstract FolderItem getParentItem(DocumentModel doc)
FileSystemItem.public void handleParameters(Map<String,String> parameters)
handleParameters in interface FileSystemItemFactoryhandleParameters in class AbstractFileSystemItemFactorypublic 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 AbstractFileSystemItemFactorypublic FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted)
#getParentId(String).getFileSystemItem in interface FileSystemItemFactorygetFileSystemItem in class AbstractFileSystemItemFactoryFileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItem#isFileSystemItem(DocumentModel, boolean))public FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
#getParentId(String).getFileSystemItem in interface FileSystemItemFactorygetFileSystemItem in class AbstractFileSystemItemFactoryFileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItem#isFileSystemItem(DocumentModel, boolean, boolean))Copyright © 2015 Nuxeo SA. All rights reserved.