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
|
getParentItem
getFileSystemItem, getFileSystemItem, getFileSystemItem, handleParameters
adaptDocument, canHandleFileSystemItemId, exists, getDocumentByFileSystemId, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setName
public 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 FileSystemItemFactory
isFileSystemItem
in class AbstractSyncRootFolderItemFactory
protected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo)
AbstractFileSystemItemFactory
DocumentModel
to a FileSystemItem
.Copyright © 2018 Nuxeo. All rights reserved.