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 SummaryModifier 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- 
getFileSystemItemGets 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:
 
- 
getFileSystemItemGets 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:
 
- 
getFileSystemItemFileSystemItem 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:
 
- 
getFileSystemItemFileSystemItem 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:
 
- 
getFileSystemItemGets 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:
 
- 
getFileSystemItemGets 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:
 
- 
getFileSystemItemFileSystemItem 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:
 
- 
getFileSystemItemFileSystemItem 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:
 
- 
getFileSystemItemFactoryForIdGets theFileSystemItemFactorythat can handle the the givenFileSystemItemid.
- 
getTopLevelFolderItemFactoryTopLevelFolderItemFactory getTopLevelFolderItemFactory()Gets theTopLevelFolderItemFactory.
- 
getVirtualFolderItemFactoryGets theVirtualFolderItemFactoryfor the given factory name.
- 
getActiveFileSystemItemFactoriesGets the activeFileSystemItemfactory names.
- 
getScrollBatchSemaphoreSemaphore getScrollBatchSemaphore()Allows to limit the number of concurrent scrolls run byFolderItem.scrollDescendants(String, int, long).- Since:
- 8.3
 
 
-