Interface FileSystemItemAdapterService
- All Known Implementing Classes:
FileSystemItemAdapterServiceImpl
FileSystemItem adapter depending on the DocumentModel type or facet.
Factories can be contributed to implement a specific behavior for the FileSystemItem adapter creation.
- Author:
- Antoine Taillefer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the activeFileSystemItemfactory names.Gets theFileSystemItemfor the givenDocumentModel.getFileSystemItem(DocumentModel doc, boolean includeDeleted) Gets theFileSystemItemfor the givenDocumentModel.getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint) Gets theFileSystemItemfor the givenDocumentModel.getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo) Gets theFileSystemItemfor the givenDocumentModel.getFileSystemItem(DocumentModel doc, FolderItem parentItem) getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted) getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted, boolean relaxSyncRootConstraint) getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo) Gets theFileSystemItemFactorythat can handle the the givenFileSystemItemid.Allows to limit the number of concurrent scrolls run byFolderItem.scrollDescendants(String, int, long).Gets theTopLevelFolderItemFactory.getVirtualFolderItemFactory(String factoryName) Gets theVirtualFolderItemFactoryfor the given factory name.
-
Method Details
-
getFileSystemItem
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:
-
getFileSystemItem
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:
-
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:
-
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:
-
getFileSystemItem
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:
-
getFileSystemItem
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:
-
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:
-
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:
-
getFileSystemItemFactoryForId
Gets theFileSystemItemFactorythat can handle the the givenFileSystemItemid.- See Also:
-
getTopLevelFolderItemFactory
TopLevelFolderItemFactory getTopLevelFolderItemFactory()Gets theTopLevelFolderItemFactory. -
getVirtualFolderItemFactory
Gets theVirtualFolderItemFactoryfor the given factory name. -
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
-