Class WebdavDocumentLoadManager
java.lang.Object
io.jmix.webdavflowui.view.webdavdocument.WebdavDocumentLoadManager
Encapsulates webdav document load logic for
WebdavDocumentListView
according to current selected documents and search string.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Runnableprotected FilePathBreadCrumbsprotected WebdavDocumentprotected DataManagerprotected static final Stringprotected WebdavDocumentsManagementServiceprotected FetchPlanRepositoryprotected com.vaadin.flow.component.textfield.TextFieldprotected Messagesprotected Notificationsprotected booleanIf current documents are loaded by applying a filter.protected CollectionLoader<WebdavDocument>protected CollectionContainer<WebdavDocument> -
Constructor Summary
ConstructorsConstructorDescriptionWebdavDocumentLoadManager(WebdavDocumentsManagementService documentsManagementService, DataManager dataManager, Messages messages, FetchPlanRepository fetchPlanRepository, Notifications notifications) -
Method Summary
Modifier and TypeMethodDescriptionprotected Deque<WebdavDocument>buildFilePath(WebdavDocument document) protected StringencodeFullPath(String fullPath) booleanprotected voidonBreadCrumbsClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> clickEvent) protected voidprotected voidvoidrefresh()Refresh current documents list.voidsetAfterRefreshAction(Runnable afterRefreshAction) setBreadCrumbs(FilePathBreadCrumbs breadCrumbs) setFullPathField(com.vaadin.flow.component.textfield.TextField filePathField) setWebdavDocumentDl(CollectionLoader<WebdavDocument> webdavDocumentDl) setWebdavDocumentsDc(CollectionContainer<WebdavDocument> webdavDocumentsDc) voidvoidshowAllChildDocumentsFor(String parentPath) voidshowChildDocumentsFor(WebdavDocument parent) voidshowChildDocumentsFor(String parentPath) void
-
Field Details
-
DOCUMENT_BROWSE_FETCH_PLAN
- See Also:
-
webdavDocumentsDc
-
webdavDocumentDl
-
breadCrumbs
-
filePathField
protected com.vaadin.flow.component.textfield.TextField filePathField -
documentsManagementService
-
dataManager
-
messages
-
afterRefreshAction
-
currentParent
-
searchResultsMode
protected boolean searchResultsModeIf current documents are loaded by applying a filter. -
fetchPlanRepository
-
notifications
-
-
Constructor Details
-
WebdavDocumentLoadManager
public WebdavDocumentLoadManager(WebdavDocumentsManagementService documentsManagementService, DataManager dataManager, Messages messages, FetchPlanRepository fetchPlanRepository, Notifications notifications)
-
-
Method Details
-
setWebdavDocumentsDc
public WebdavDocumentLoadManager setWebdavDocumentsDc(CollectionContainer<WebdavDocument> webdavDocumentsDc) -
setWebdavDocumentDl
public WebdavDocumentLoadManager setWebdavDocumentDl(CollectionLoader<WebdavDocument> webdavDocumentDl) -
setBreadCrumbs
-
setFullPathField
public WebdavDocumentLoadManager setFullPathField(com.vaadin.flow.component.textfield.TextField filePathField) -
setAfterRefreshAction
-
showChildDocumentsFor
-
showChildDocumentsFor
-
showAllChildDocumentsFor
-
showAllChildDocumentsFor
-
refresh
public void refresh()Refresh current documents list. -
buildFilePath
-
showRootDocuments
public void showRootDocuments() -
onDocumentCollectionLoaded
-
onSearchFilterApplied
protected void onSearchFilterApplied() -
isSearchResultsMode
public boolean isSearchResultsMode() -
getCurrentParent
-
encodeFullPath
-
onBreadCrumbsClick
protected void onBreadCrumbsClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> clickEvent)
-