Class DriverDefEditor

    • Field Summary

      • Fields inherited from class org.uberfire.ext.editor.commons.client.BaseEditor

        baseView, changeTitleNotification, concurrentChangePopup, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, fileNameValidator, isReadOnly, isValidationRunning, makeMenuBarPromise, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, promises, saveAndRenameCommandBuilder, saveWithComments, versionRecordManager
    • Constructor Summary

      Constructors 
      Constructor Description
      DriverDefEditor​(DriverDefEditorView view, DriverDefMainPanel mainPanel, DriverDefEditorHelper editorHelper, PopupsUtil popupsUtil, org.uberfire.client.mvp.PlaceManager placeManager, DriverDefType type, org.uberfire.ext.editor.commons.client.file.popups.SavePopUpPresenter savePopUpPresenter, org.uberfire.ext.editor.commons.client.file.popups.DeletePopUpPresenter deletePopUpPresenter, org.jboss.errai.common.client.api.Caller<org.kie.workbench.common.screens.datasource.management.service.DriverDefEditorService> editorService, org.jboss.errai.common.client.api.Caller<org.kie.workbench.common.screens.datasource.management.service.DataSourceRuntimeManagerClientService> dataSourceManagerClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void _save()
      Performs the formal save of the driver.
      protected void delete​(org.uberfire.backend.vfs.ObservablePath currentPath)
      Performs the formal delete of the driver.
      protected void executeSafeUpdateCommand​(String onDependantsMessageKey, org.uberfire.mvp.Command defaultCommand, org.uberfire.mvp.Command yesCommand, org.uberfire.mvp.Command noCommand)
      Checks if current driver has dependant data sources prior to execute an update operation.
      protected org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent getContent()  
      com.google.gwt.user.client.ui.IsWidget getTitle()  
      String getTitleText()  
      com.google.gwt.user.client.ui.IsWidget getWidget()  
      protected void loadContent()  
      boolean mayClose​(Integer currentHash)  
      void onCancel()  
      protected void onContentLoaded​(org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent editorContent)  
      void onDelete()  
      boolean onMayClose()  
      void onSave()  
      void onStartup​(org.uberfire.backend.vfs.ObservablePath path, org.uberfire.mvp.PlaceRequest place)  
      protected void safeDelete​(org.uberfire.backend.vfs.ObservablePath currentPath)
      Executes a safe deletion of the driver by checking if there are dependant data sources that may be affected by the change.
      protected void safeSave()
      Executes a safe saving of the driver by checking if there are dependant data sources that may be affected by the change.
      protected void save()  
      protected void setContent​(org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent editorContent)  
      • Methods inherited from class org.uberfire.ext.editor.commons.client.BaseEditor

        addDownloadMenuItem, buildMenuBar, disableMenuItem, downloadMenuItem, enableMenuItem, getBeforeSaveAndRenameCommand, getContentSupplier, getCopyServiceCaller, getCopyValidator, getCurrentContentHash, getDeleteServiceCaller, getMenus, getMetadataSupplier, getPathSupplier, getRenameServiceCaller, getRenameValidator, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveAndRenameServiceCaller, getSaveSuccessCallback, getSaveValidator, getValidateCommand, getVersionRecordManager, init, init, init, isDirty, isDirtySupplier, makeMenuBar, onAfterValidate, onBeforeValidate, onRename, onRestore, onSuccess, onValidate, reload, setMetadataOriginalHash, setOriginalHash, showConcurrentUpdatePopup, showVersions
    • Constructor Detail

      • DriverDefEditor

        @Inject
        public DriverDefEditor​(DriverDefEditorView view,
                               DriverDefMainPanel mainPanel,
                               DriverDefEditorHelper editorHelper,
                               PopupsUtil popupsUtil,
                               org.uberfire.client.mvp.PlaceManager placeManager,
                               DriverDefType type,
                               org.uberfire.ext.editor.commons.client.file.popups.SavePopUpPresenter savePopUpPresenter,
                               org.uberfire.ext.editor.commons.client.file.popups.DeletePopUpPresenter deletePopUpPresenter,
                               org.jboss.errai.common.client.api.Caller<org.kie.workbench.common.screens.datasource.management.service.DriverDefEditorService> editorService,
                               org.jboss.errai.common.client.api.Caller<org.kie.workbench.common.screens.datasource.management.service.DataSourceRuntimeManagerClientService> dataSourceManagerClient)
    • Method Detail

      • onStartup

        public void onStartup​(org.uberfire.backend.vfs.ObservablePath path,
                              org.uberfire.mvp.PlaceRequest place)
      • getTitle

        public com.google.gwt.user.client.ui.IsWidget getTitle()
        Overrides:
        getTitle in class org.uberfire.ext.editor.commons.client.BaseEditor<org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent,​org.guvnor.common.services.shared.metadata.model.Metadata>
      • getTitleText

        public String getTitleText()
        Overrides:
        getTitleText in class org.uberfire.ext.editor.commons.client.BaseEditor<org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent,​org.guvnor.common.services.shared.metadata.model.Metadata>
      • getWidget

        public com.google.gwt.user.client.ui.IsWidget getWidget()
      • onMayClose

        @OnMayClose
        public boolean onMayClose()
      • loadContent

        protected void loadContent()
        Specified by:
        loadContent in class org.uberfire.ext.editor.commons.client.BaseEditor<org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent,​org.guvnor.common.services.shared.metadata.model.Metadata>
      • mayClose

        public boolean mayClose​(Integer currentHash)
        Overrides:
        mayClose in class org.uberfire.ext.editor.commons.client.BaseEditor<org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent,​org.guvnor.common.services.shared.metadata.model.Metadata>
      • onSave

        public void onSave()
        Specified by:
        onSave in interface DefEditorActionsPanelView.Presenter
        Overrides:
        onSave in class org.uberfire.ext.editor.commons.client.BaseEditor<org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent,​org.guvnor.common.services.shared.metadata.model.Metadata>
      • save

        protected void save()
        Overrides:
        save in class org.uberfire.ext.editor.commons.client.BaseEditor<org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent,​org.guvnor.common.services.shared.metadata.model.Metadata>
      • safeSave

        protected void safeSave()
        Executes a safe saving of the driver by checking if there are dependant data sources that may be affected by the change.
      • _save

        protected void _save()
        Performs the formal save of the driver.
      • executeSafeUpdateCommand

        protected void executeSafeUpdateCommand​(String onDependantsMessageKey,
                                                org.uberfire.mvp.Command defaultCommand,
                                                org.uberfire.mvp.Command yesCommand,
                                                org.uberfire.mvp.Command noCommand)
        Checks if current driver has dependant data sources prior to execute an update operation.
      • safeDelete

        protected void safeDelete​(org.uberfire.backend.vfs.ObservablePath currentPath)
        Executes a safe deletion of the driver by checking if there are dependant data sources that may be affected by the change.
      • delete

        protected void delete​(org.uberfire.backend.vfs.ObservablePath currentPath)
        Performs the formal delete of the driver.
      • onContentLoaded

        protected void onContentLoaded​(org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent editorContent)
      • getContent

        protected org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent getContent()
      • setContent

        protected void setContent​(org.kie.workbench.common.screens.datasource.management.model.DriverDefEditorContent editorContent)