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 "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, 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)
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 © 2018 Nuxeo. All rights reserved.