@Dependent public class DataSourceDefEditor extends org.uberfire.ext.editor.commons.client.BaseEditor<DataSourceDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata> implements DataSourceDefEditorView.Presenter
baseView, changeTitleNotification, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, fileNameValidator, isReadOnly, isValidationRunning, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, saveAndRenameCommandBuilder, versionRecordManager| Constructor and Description |
|---|
DataSourceDefEditor(DataSourceDefEditorView view,
DataSourceDefMainPanel mainPanel,
DataSourceDefEditorHelper editorHelper,
DatabaseStructureExplorer dbStructureExplorer,
PopupsUtil popupsUtil,
org.uberfire.client.mvp.PlaceManager placeManager,
DataSourceDefType 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<DataSourceDefEditorService> editorService,
org.jboss.errai.common.client.api.Caller<DataSourceRuntimeManagerClientService> dataSourceManagerClient) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_save()
Performs the formal save of the data source.
|
protected void |
delete(org.uberfire.backend.vfs.ObservablePath currentPath)
Performs the formal deletion of the data source.
|
protected void |
executeSafeUpdateCommand(String onDependantsMessageKey,
org.uberfire.mvp.Command defaultCommand,
org.uberfire.mvp.Command yesCommand,
org.uberfire.mvp.Command noCommand)
Checks current data source status prior to execute an update operation.
|
protected DataSourceDefEditorContent |
getContent() |
org.uberfire.mvp.ParameterizedCommand<Throwable> |
getLoadDriversErrorCommand() |
org.uberfire.mvp.Command |
getLoadDriversSuccessCommand() |
com.google.gwt.user.client.ui.IsWidget |
getTitle() |
String |
getTitleText() |
com.google.gwt.user.client.ui.IsWidget |
getWidget() |
protected void |
init() |
protected void |
loadContent() |
boolean |
mayClose(Integer currentHash) |
void |
onCancel() |
protected void |
onContentLoaded(DataSourceDefEditorContent editorContent) |
void |
onDelete() |
boolean |
onMayClose() |
void |
onSave() |
void |
onShowContent() |
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 data source by checking it's status and asking user confirmation if needed.
|
protected void |
safeSave()
Executes a safe saving of the data source by checking it's status and asking user confirmation if needed.
|
protected void |
save() |
protected void |
setContent(DataSourceDefEditorContent editorContent) |
addDownloadMenuItem, buildMenuBar, disableMenuItem, downloadMenuItem, enableMenuItem, getContentSupplier, getCopyServiceCaller, getCopyValidator, getCurrentContentHash, getDeleteServiceCaller, getMetadataSupplier, getPathSupplier, getRenameServiceCaller, getRenameValidator, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveAndRenameServiceCaller, getSaveSuccessCallback, getValidateCommand, getVersionRecordManager, init, init, init, isDirty, isDirtySupplier, makeMenuBar, onAfterValidate, onBeforeValidate, onRename, onRestore, onSuccess, onValidate, reload, setMetadataOriginalHash, setOriginalHash, showConcurrentUpdatePopup, showVersions@Inject public DataSourceDefEditor(DataSourceDefEditorView view, DataSourceDefMainPanel mainPanel, DataSourceDefEditorHelper editorHelper, DatabaseStructureExplorer dbStructureExplorer, PopupsUtil popupsUtil, org.uberfire.client.mvp.PlaceManager placeManager, DataSourceDefType 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<DataSourceDefEditorService> editorService, org.jboss.errai.common.client.api.Caller<DataSourceRuntimeManagerClientService> dataSourceManagerClient)
@PostConstruct protected void init()
public void onStartup(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place)
public com.google.gwt.user.client.ui.IsWidget getTitle()
getTitle in class org.uberfire.ext.editor.commons.client.BaseEditor<DataSourceDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public String getTitleText()
getTitleText in class org.uberfire.ext.editor.commons.client.BaseEditor<DataSourceDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public com.google.gwt.user.client.ui.IsWidget getWidget()
@OnMayClose public boolean onMayClose()
protected void loadContent()
loadContent in class org.uberfire.ext.editor.commons.client.BaseEditor<DataSourceDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public boolean mayClose(Integer currentHash)
mayClose in class org.uberfire.ext.editor.commons.client.BaseEditor<DataSourceDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public void onSave()
onSave in interface DefEditorActionsPanelView.PresenteronSave in class org.uberfire.ext.editor.commons.client.BaseEditor<DataSourceDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public void onCancel()
onCancel in interface DefEditorActionsPanelView.Presenterpublic void onDelete()
onDelete in interface DefEditorActionsPanelView.Presenterprotected void save()
save in class org.uberfire.ext.editor.commons.client.BaseEditor<DataSourceDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>protected void safeSave()
protected void _save()
protected void safeDelete(org.uberfire.backend.vfs.ObservablePath currentPath)
protected void delete(org.uberfire.backend.vfs.ObservablePath currentPath)
protected void executeSafeUpdateCommand(String onDependantsMessageKey, org.uberfire.mvp.Command defaultCommand, org.uberfire.mvp.Command yesCommand, org.uberfire.mvp.Command noCommand)
protected void onContentLoaded(DataSourceDefEditorContent editorContent)
protected DataSourceDefEditorContent getContent()
protected void setContent(DataSourceDefEditorContent editorContent)
public org.uberfire.mvp.Command getLoadDriversSuccessCommand()
public org.uberfire.mvp.ParameterizedCommand<Throwable> getLoadDriversErrorCommand()
public void onShowContent()
onShowContent in interface DataSourceDefEditorView.PresenterCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.