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, setName
public AbstractSyncRootFolderItemFactory()
protected abstract FolderItem getParentItem(DocumentModel doc)
FileSystemItem
.public void handleParameters(Map<String,String> parameters)
handleParameters
in interface FileSystemItemFactory
handleParameters
in class AbstractFileSystemItemFactory
public boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
DocumentModel
is adaptable as a FileSystemItem
if:
includeDeleted
is truerelaxSyncRootConstraint
is
trueisFileSystemItem
in interface FileSystemItemFactory
isFileSystemItem
in class AbstractFileSystemItemFactory
public FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted)
getParentItem(DocumentModel)
.getFileSystemItem
in interface FileSystemItemFactory
getFileSystemItem
in class AbstractFileSystemItemFactory
FileSystemItem
or null if the DocumentModel
is not adaptable as a
FileSystemItem
FileSystemItemFactory.isFileSystemItem(DocumentModel, boolean)
public FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
getParentItem(DocumentModel)
.getFileSystemItem
in interface FileSystemItemFactory
getFileSystemItem
in class AbstractFileSystemItemFactory
FileSystemItem
or null if the DocumentModel
is not adaptable as a
FileSystemItem
FileSystemItemFactory.isFileSystemItem(DocumentModel, boolean, boolean)
public FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo)
getParentItem(DocumentModel)
.getFileSystemItem
in interface FileSystemItemFactory
getFileSystemItem
in class AbstractFileSystemItemFactory
FileSystemItem
or null if the DocumentModel
is not adaptable as a
FileSystemItem
FileSystemItemFactory.isFileSystemItem(DocumentModel, boolean, boolean)
Copyright © 2016 Nuxeo SA. All rights reserved.