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)
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 "deleted" life cycle state, unless includeDeleted is true
AND it is a synchronization root registered for the current user, unless relaxSyncRootConstraint is
true
|
getParentItem
getFileSystemItem, getFileSystemItem, handleParameters
adaptDocument, canHandleFileSystemItemId, exists, getDocumentByFileSystemId, getDocumentById, 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)
AbstractFileSystemItemFactory
DocumentModel
to a FileSystemItem
.adaptDocument
in class DefaultSyncRootFolderItemFactory
#getFileSystemItem(DocumentModel, boolean, String, boolean)
Copyright © 2015 Nuxeo SA. All rights reserved.