public class PermissionSyncRootFactory extends AbstractSyncRootFolderItemFactory
FileSystemItemFactory
for a synchronization root FolderItem
.Modifier and Type | Field and Description |
---|---|
protected static String |
REQUIRED_PERMISSION_PARAM |
protected String |
requiredPermission |
protected static String |
SHARED_SYNC_ROOT_PARENT_FACTORY_PARAM |
protected String |
sharedSyncRootParentFactoryName |
protected static String |
USER_SYNC_ROOT_PARENT_FACTORY_PARAM |
protected String |
userSyncRootParentFactoryName |
name
Constructor and Description |
---|
PermissionSyncRootFactory() |
Modifier and Type | Method and Description |
---|---|
protected FileSystemItem |
adaptDocument(DocumentModel doc,
boolean forceParentId,
FolderItem parentItem,
boolean relaxSyncRootConstraint)
Adapts the given
DocumentModel to a FileSystemItem . |
protected FileSystemItemAdapterService |
getFileSystemAdapterService() |
protected 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)
Checks if the given
DocumentModel is adaptable as a FileSystemItem . |
getFileSystemItem, getFileSystemItem
adaptDocument, canHandleFileSystemItemId, exists, getDocumentByFileSystemId, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setName
protected static final String REQUIRED_PERMISSION_PARAM
protected static final String USER_SYNC_ROOT_PARENT_FACTORY_PARAM
protected static final String SHARED_SYNC_ROOT_PARENT_FACTORY_PARAM
protected String requiredPermission
protected String userSyncRootParentFactoryName
protected String sharedSyncRootParentFactoryName
public PermissionSyncRootFactory()
public void handleParameters(Map<String,String> parameters)
AbstractSyncRootFolderItemFactory
handleParameters
in interface FileSystemItemFactory
handleParameters
in class AbstractSyncRootFolderItemFactory
public boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
DocumentModel
is adaptable as a FileSystemItem
. The permission
synchronization root factory considers that a DocumentModel
is adaptable as a FileSystemItem
if:
includeDeleted
is truerelaxSyncRootConstraint
is
true#getRequiredPermission()
permission on the documentisFileSystemItem
in interface FileSystemItemFactory
isFileSystemItem
in class AbstractSyncRootFolderItemFactory
protected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentId, FolderItem parentItem, boolean relaxSyncRootConstraint)
AbstractFileSystemItemFactory
DocumentModel
to a FileSystemItem
.adaptDocument
in class AbstractFileSystemItemFactory
#getFileSystemItem(DocumentModel, boolean, String, boolean)
protected FolderItem getParentItem(DocumentModel doc)
AbstractSyncRootFolderItemFactory
FileSystemItem
.getParentItem
in class AbstractSyncRootFolderItemFactory
protected FileSystemItemAdapterService getFileSystemAdapterService()
Copyright © 2015 Nuxeo SA. All rights reserved.