public class UserWorkspaceTopLevelFactory extends AbstractFileSystemItemFactory implements TopLevelFolderItemFactory
TopLevelFolderItemFactory
.Constructor and Description |
---|
UserWorkspaceTopLevelFactory() |
Modifier and Type | Method and Description |
---|---|
String |
getFolderName() |
FolderItem |
getTopLevelFolderItem(Principal principal) |
FolderItem |
getVirtualFolderItem(Principal principal)
Returns the (unique) virtual
FolderItem . |
void |
handleParameters(Map<String,String> parameters)
Handles the factory parameters contributed through the
fileSystemItemFactory contribution. |
boolean |
isFileSystemItem(DocumentModel doc,
boolean includeDeleted,
boolean relaxSyncRootConstraint)
Returns true if the given
DocumentModel is adaptable as a FileSystemItem . |
void |
setFolderName(String folderName) |
canHandleFileSystemItemId, exists, getDocumentByFileSystemId, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, setName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canHandleFileSystemItemId, exists, getDocumentByFileSystemId, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, setName
public void handleParameters(Map<String,String> parameters) throws ClientException
FileSystemItemFactory
fileSystemItemFactory
contribution.handleParameters
in interface FileSystemItemFactory
handleParameters
in class AbstractFileSystemItemFactory
ClientException
public boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) throws ClientException
FileSystemItemFactory
DocumentModel
is adaptable as a FileSystemItem
.
If includeDeleted
is true no filter is applied on the "deleted" life cycle state, else if the document is
in this state it is not considered as adaptable as a FileSystemItem
, thus the method returns false.
If relaxSyncRootConstraint
is true no filter is applied on the synchronization root aspect for the
current user.
isFileSystemItem
in interface FileSystemItemFactory
isFileSystemItem
in class AbstractFileSystemItemFactory
ClientException
public FolderItem getVirtualFolderItem(Principal principal) throws ClientException
VirtualFolderItemFactory
FolderItem
.getVirtualFolderItem
in interface VirtualFolderItemFactory
ClientException
public String getFolderName()
getFolderName
in interface VirtualFolderItemFactory
public void setFolderName(String folderName)
setFolderName
in interface VirtualFolderItemFactory
public FolderItem getTopLevelFolderItem(Principal principal) throws ClientException
getTopLevelFolderItem
in interface TopLevelFolderItemFactory
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.