public interface FileSystemItemAdapterService
FileSystemItem adapter depending on the DocumentModel type or facet.
Factories can be contributed to implement a specific behavior for the FileSystemItem adapter creation.
FileSystemItemAdapterServiceImplFileSystemItem getFileSystemItem(DocumentModel doc)
FileSystemItem for the given DocumentModel. If the document is in the trash it is not
considered as adaptable as a FileSystemItem, thus the method returns null.FileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItemFileSystemItemFactory.getFileSystemItem(DocumentModel)FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted)
FileSystemItem for the given DocumentModel. If includeDeleted is true no filter
is applied on the "trashed" state, else if the document is in the trash it is not considered as adaptable as a
FileSystemItem, thus the method returns null.FileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItemFileSystemItemFactory.getFileSystemItem(DocumentModel, boolean)FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
FileSystemItem for the given DocumentModel.
If includeDeleted is true no filter is applied on the "trashed" state, else if the document is in the
trash it is not considered as adaptable as a FileSystemItem, thus the method returns null.
If relaxSyncRootConstraint is true no filter is applied on the synchronization root aspect for the
current user.
FileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItemFileSystemItemFactory.getFileSystemItem(DocumentModel, boolean, boolean)FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo)
FileSystemItem for the given DocumentModel.
If includeDeleted is true no filter is applied on the "trashed" state, else if the document is in the
trash it is not considered as adaptable as a FileSystemItem, thus the method returns null.
If relaxSyncRootConstraint is true no filter is applied on the synchronization root aspect for the
current user.
If getLockInfo is true the Lock is fetched from the DocumentModel and set on the returned
FileSystemItem.
FileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItemFileSystemItemFactory.getFileSystemItem(DocumentModel, boolean, boolean, boolean)FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem)
FileSystemItem for the given DocumentModel forcing its parent with the given
parentItem. If the document is in the trash it is not considered as adaptable as a
FileSystemItem, thus the method returns null.FileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItemFileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem)FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted)
FileSystemItem for the given DocumentModel forcing its parent with the given
parentItem. If includeDeleted is true no filter is applied on the "trashed" state, else if the
document is in the trash it is not considered as adaptable as a FileSystemItem, thus the method returns
null.FileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItemFileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem, boolean)FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted, boolean relaxSyncRootConstraint)
FileSystemItem for the given DocumentModel forcing its parent with the given
parentItem.
If includeDeleted is true no filter is applied on the "trashed" state, else if the document is in the
trash it is not considered as adaptable as a FileSystemItem, thus the method returns null.
If relaxSyncRootConstraint is true no filter is applied on the synchronization root aspect for the
current user.
FileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItemFileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem, boolean, boolean)FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo)
FileSystemItem for the given DocumentModel forcing its parent with the given
parentItem.
If includeDeleted is true no filter is applied on the "trashed" state, else if the document is in the
trash it is not considered as adaptable as a FileSystemItem, thus the method returns null.
If relaxSyncRootConstraint is true no filter is applied on the synchronization root aspect for the
current user.
If getLockInfo is true the Lock is fetched from the DocumentModel and set on the returned
FileSystemItem.
FileSystemItem or null if the DocumentModel is not adaptable as a
FileSystemItemFileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem, boolean, boolean, boolean)FileSystemItemFactory getFileSystemItemFactoryForId(String id)
FileSystemItemFactory that can handle the the given FileSystemItem id.TopLevelFolderItemFactory getTopLevelFolderItemFactory()
TopLevelFolderItemFactory.VirtualFolderItemFactory getVirtualFolderItemFactory(String factoryName)
VirtualFolderItemFactory for the given factory name.Set<String> getActiveFileSystemItemFactories()
FileSystemItem factory names.Semaphore getScrollBatchSemaphore()
FolderItem.scrollDescendants(String, int, long).Copyright © 2019 Nuxeo. All rights reserved.