Interface FileSystemItemAdapterService
-
- All Known Implementing Classes:
FileSystemItemAdapterServiceImpl
public interface FileSystemItemAdapterService
Service for creating the rightFileSystemItem
adapter depending on theDocumentModel
type or facet.Factories can be contributed to implement a specific behavior for the
FileSystemItem
adapter creation.- Author:
- Antoine Taillefer
- See Also:
FileSystemItemAdapterServiceImpl
-
-
Method Summary
-
-
-
Method Detail
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc)
Gets theFileSystemItem
for the givenDocumentModel
. If the document is in the trash it is not considered as adaptable as aFileSystemItem
, thus the method returns null.- Returns:
- the
FileSystemItem
or null if theDocumentModel
is not adaptable as aFileSystemItem
- See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted)
Gets theFileSystemItem
for the givenDocumentModel
. IfincludeDeleted
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 aFileSystemItem
, thus the method returns null.- Returns:
- the
FileSystemItem
or null if theDocumentModel
is not adaptable as aFileSystemItem
- See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, boolean)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
Gets theFileSystemItem
for the givenDocumentModel
.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 aFileSystemItem
, thus the method returns null.If
relaxSyncRootConstraint
is true no filter is applied on the synchronization root aspect for the current user.- Returns:
- the
FileSystemItem
or null if theDocumentModel
is not adaptable as aFileSystemItem
- See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, boolean, boolean)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint, boolean getLockInfo)
Gets theFileSystemItem
for the givenDocumentModel
.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 aFileSystemItem
, 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 theLock
is fetched from theDocumentModel
and set on the returnedFileSystemItem
.- Returns:
- the
FileSystemItem
or null if theDocumentModel
is not adaptable as aFileSystemItem
- Since:
- 8.3
- See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, boolean, boolean, boolean)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem)
Gets theFileSystemItem
for the givenDocumentModel
forcing 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
FileSystemItem
or null if theDocumentModel
is not adaptable as aFileSystemItem
- See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted)
Gets theFileSystemItem
for the givenDocumentModel
forcing its parent with the givenparentItem
. IfincludeDeleted
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 aFileSystemItem
, thus the method returns null.- Returns:
- the
FileSystemItem
or null if theDocumentModel
is not adaptable as aFileSystemItem
- See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem, boolean)
-
getFileSystemItem
FileSystemItem getFileSystemItem(DocumentModel doc, FolderItem parentItem, boolean includeDeleted, boolean relaxSyncRootConstraint)
Gets theFileSystemItem
for the givenDocumentModel
forcing its parent with the givenparentItem
.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 aFileSystemItem
, thus the method returns null.If
relaxSyncRootConstraint
is true no filter is applied on the synchronization root aspect for the current user.- Returns:
- the
FileSystemItem
or null if theDocumentModel
is 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 theFileSystemItem
for the givenDocumentModel
forcing its parent with the givenparentItem
.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 aFileSystemItem
, 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 theLock
is fetched from theDocumentModel
and set on the returnedFileSystemItem
.- Returns:
- the
FileSystemItem
or null if theDocumentModel
is not adaptable as aFileSystemItem
- Since:
- 8.3
- See Also:
FileSystemItemFactory.getFileSystemItem(DocumentModel, FolderItem, boolean, boolean, boolean)
-
getFileSystemItemFactoryForId
FileSystemItemFactory getFileSystemItemFactoryForId(String id)
Gets theFileSystemItemFactory
that can handle the the givenFileSystemItem
id.
-
getTopLevelFolderItemFactory
TopLevelFolderItemFactory getTopLevelFolderItemFactory()
Gets theTopLevelFolderItemFactory
.
-
getVirtualFolderItemFactory
VirtualFolderItemFactory getVirtualFolderItemFactory(String factoryName)
Gets theVirtualFolderItemFactory
for the given factory name.
-
getActiveFileSystemItemFactories
Set<String> getActiveFileSystemItemFactories()
Gets the activeFileSystemItem
factory names.
-
getScrollBatchSemaphore
Semaphore getScrollBatchSemaphore()
Allows to limit the number of concurrent scrolls run byFolderItem.scrollDescendants(String, int, long)
.- Since:
- 8.3
-
-