Interface FileSystemItemAdapterService
-
- All Known Implementing Classes:
FileSystemItemAdapterServiceImpl
public interface FileSystemItemAdapterServiceService for creating the rightFileSystemItemadapter depending on theDocumentModeltype or facet.Factories can be contributed to implement a specific behavior for the
FileSystemItemadapter creation.- Author:
- Antoine Taillefer
- See Also:
FileSystemItemAdapterServiceImpl
-
-
Method Summary
-
-
-
Method Detail
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc)
Gets theFileSystemItemfor the givenDocumentModel. If the document is in the trash it is not considered as adaptable as aFileSystemItem, thus the method returns null.- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted)
Gets theFileSystemItemfor the givenDocumentModel. IfincludeDeletedis true no filter is applied on the "trashed" state, else if the document is in the trash it is not considered as adaptable as aFileSystemItem, thus the method returns null.- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, boolean)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
Gets theFileSystemItemfor the givenDocumentModel.If
includeDeletedis true no filter is applied on the "trashed" state, else if the document is in the trash it is not considered as adaptable as aFileSystemItem, thus the method returns null.If
relaxSyncRootConstraintis true no filter is applied on the synchronization root aspect for the current user.- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, boolean, boolean)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo)
Gets theFileSystemItemfor the givenDocumentModel.If
includeDeletedis true no filter is applied on the "trashed" state, else if the document is in the trash it is not considered as adaptable as aFileSystemItem, thus the method returns null.If
relaxSyncRootConstraintis true no filter is applied on the synchronization root aspect for the current user.If
getLockInfois true theLockis fetched from theDocumentModeland set on the returnedFileSystemItem.- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - Since:
- 8.3
- See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, boolean, boolean, boolean)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem)
Gets theFileSystemItemfor the givenDocumentModelforcing its parent with the givenparentItem. If the document is in the trash it is not considered as adaptable as aFileSystemItem, thus the method returns null.- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted)
Gets theFileSystemItemfor the givenDocumentModelforcing its parent with the givenparentItem. IfincludeDeletedis true no filter is applied on the "trashed" state, else if the document is in the trash it is not considered as adaptable as aFileSystemItem, thus the method returns null.- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem, boolean)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted, boolean relaxSyncRootConstraint)
Gets theFileSystemItemfor the givenDocumentModelforcing its parent with the givenparentItem.If
includeDeletedis true no filter is applied on the "trashed" state, else if the document is in the trash it is not considered as adaptable as aFileSystemItem, thus the method returns null.If
relaxSyncRootConstraintis true no filter is applied on the synchronization root aspect for the current user.- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem, boolean, boolean)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo)
Gets theFileSystemItemfor the givenDocumentModelforcing its parent with the givenparentItem.If
includeDeletedis true no filter is applied on the "trashed" state, else if the document is in the trash it is not considered as adaptable as aFileSystemItem, thus the method returns null.If
relaxSyncRootConstraintis true no filter is applied on the synchronization root aspect for the current user.If
getLockInfois true theLockis fetched from theDocumentModeland set on the returnedFileSystemItem.- Returns:
- the
FileSystemItemor null if theDocumentModelis not adaptable as aFileSystemItem - Since:
- 8.3
- See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem, boolean, boolean, boolean)
-
getFileSystemItemFactoryForId
FileSystemItemFactory getFileSystemItemFactoryForId(String id)
Gets theFileSystemItemFactorythat can handle the the givenFileSystemItemid.
-
getTopLevelFolderItemFactory
TopLevelFolderItemFactory getTopLevelFolderItemFactory()
Gets theTopLevelFolderItemFactory.
-
getVirtualFolderItemFactory
VirtualFolderItemFactory getVirtualFolderItemFactory(String factoryName)
Gets theVirtualFolderItemFactoryfor the given factory name.
-
getActiveFileSystemItemFactories
Set<String> getActiveFileSystemItemFactories()
Gets the activeFileSystemItemfactory names.
-
getScrollBatchSemaphore
Semaphore getScrollBatchSemaphore()
Allows to limit the number of concurrent scrolls run byFolderItem.scrollDescendants(String, int, long).- Since:
- 8.3
-
-