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,
             boolean getLockInfo)
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, getFileSystemItemadaptDocument, canHandleFileSystemItemId, exists, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setNameprotected 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)
AbstractSyncRootFolderItemFactoryhandleParameters in interface FileSystemItemFactoryhandleParameters in class AbstractSyncRootFolderItemFactorypublic 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 FileSystemItemFactoryisFileSystemItem in class AbstractSyncRootFolderItemFactoryprotected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentId, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo)
AbstractFileSystemItemFactoryDocumentModel to a FileSystemItem.protected FolderItem getParentItem(DocumentModel doc)
AbstractSyncRootFolderItemFactoryFileSystemItem.getParentItem in class AbstractSyncRootFolderItemFactoryprotected FileSystemItemAdapterService getFileSystemAdapterService()
Copyright © 2019 Nuxeo. All rights reserved.