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 using
getParentItem(DocumentModel). |
FileSystemItem |
getFileSystemItem(DocumentModel doc,
boolean includeDeleted,
boolean relaxSyncRootConstraint)
Force parent using
getParentItem(DocumentModel). |
FileSystemItem |
getFileSystemItem(DocumentModel doc,
boolean includeDeleted,
boolean relaxSyncRootConstraint,
boolean getLockInfo)
Force parent using
getParentItem(DocumentModel). |
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 trash, unless includeDeleted is true
AND it is a synchronization root registered for the current user, unless relaxSyncRootConstraint is
true
|
adaptDocument, adaptDocument, canHandleFileSystemItemId, exists, getDocumentById, getFileSystemItem, 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)
public boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
DocumentModel is adaptable as a FileSystemItem if:
includeDeleted is truerelaxSyncRootConstraint is
truepublic FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted)
getParentItem(DocumentModel).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)
getParentItem(DocumentModel).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)
getParentItem(DocumentModel).getFileSystemItem in interface FileSystemItemFactorygetFileSystemItem in class AbstractFileSystemItemFactoryFileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItemFileSystemItemFactory.isFileSystemItem(DocumentModel, boolean, boolean)Copyright © 2019 Nuxeo. All rights reserved.