Class CreateWebhookConfigurationModalController
- java.lang.Object
-
- org.zkoss.zk.ui.event.GenericEventListener
-
- org.zkoss.zk.ui.util.GenericComposer<T>
-
- org.zkoss.zk.ui.util.GenericAutowireComposer<T>
-
- org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
-
- com.hybris.cockpitng.util.ViewAnnotationAwareComposer
-
- com.hybris.cockpitng.util.DefaultWidgetController
-
- de.hybris.platform.webhookbackoffice.widgets.modals.controllers.CreateWebhookConfigurationModalController
-
- All Implemented Interfaces:
com.hybris.cockpitng.core.WidgetController,com.hybris.cockpitng.dnd.WidgetDragAndDropAware,com.hybris.cockpitng.engine.WidgetInstanceManagerAware,java.io.Serializable,org.zkoss.zk.ui.event.EventListener,org.zkoss.zk.ui.event.SerializableEventListener,org.zkoss.zk.ui.util.ComponentActivationListener,org.zkoss.zk.ui.util.ComponentCloneListener,org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>
public class CreateWebhookConfigurationModalController extends com.hybris.cockpitng.util.DefaultWidgetController- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected com.hybris.cockpitng.core.events.CockpitEventQueuecockpitEventQueueprotected com.hybris.cockpitng.components.EditorconsumedDestinationEditorprotected org.zkoss.zul.ButtoncreateButtonprotected org.zkoss.zul.ComboboxeventTypesComboBoxprotected org.zkoss.zul.ComboboxfilterLocationComboBoxprotected org.zkoss.zul.ComboboxintegrationObjectComboBoxprotected com.hybris.cockpitng.util.notifications.NotificationServicenotificationServiceprotected ReadServicereadServiceprotected WebhookConfigBackofficeServicewebhookConfigBackofficeService
-
Constructor Summary
Constructors Constructor Description CreateWebhookConfigurationModalController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumedDestinationEditorOnChange()java.lang.StringconvertExceptionToResourceMsg(InterceptorException exception)return error message in resource bundle from exception's className.java.lang.StringconvertExceptionToResourceTitle(InterceptorException exception)return error message title in resource bundle from exception's className.voidcreateWebhookConfiguration()voidintegrationObjectComboBoxOnChange()voidloadCreateWebhookConfigurationModal(java.lang.String openModal)protected voidshowErrorMessageBox(java.lang.String msgKey, java.lang.String titleKey)-
Methods inherited from class com.hybris.cockpitng.util.DefaultWidgetController
doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initialize, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitle
-
Methods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
scanEventListeners
-
Methods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivate
-
-
-
-
Field Detail
-
readService
protected transient ReadService readService
-
webhookConfigBackofficeService
protected transient WebhookConfigBackofficeService webhookConfigBackofficeService
-
cockpitEventQueue
protected transient com.hybris.cockpitng.core.events.CockpitEventQueue cockpitEventQueue
-
notificationService
protected transient com.hybris.cockpitng.util.notifications.NotificationService notificationService
-
integrationObjectComboBox
protected org.zkoss.zul.Combobox integrationObjectComboBox
-
consumedDestinationEditor
protected com.hybris.cockpitng.components.Editor consumedDestinationEditor
-
filterLocationComboBox
protected org.zkoss.zul.Combobox filterLocationComboBox
-
eventTypesComboBox
protected org.zkoss.zul.Combobox eventTypesComboBox
-
createButton
protected org.zkoss.zul.Button createButton
-
-
Method Detail
-
loadCreateWebhookConfigurationModal
public void loadCreateWebhookConfigurationModal(java.lang.String openModal)
-
integrationObjectComboBoxOnChange
public void integrationObjectComboBoxOnChange()
-
consumedDestinationEditorOnChange
public void consumedDestinationEditorOnChange()
-
createWebhookConfiguration
public void createWebhookConfiguration()
-
convertExceptionToResourceMsg
public java.lang.String convertExceptionToResourceMsg(InterceptorException exception)
return error message in resource bundle from exception's className.- Parameters:
exception- An exception, subclass of InterceptionException includingWebhookConfigEventNotSupportedExceptionWebhookConfigNoEventTypeExceptionWebhookConfigNoEventConfigExceptionWebhookConfigNotRegisteredEventExceptionWebhookConfigNotValidLocationException- Returns:
- error message
-
convertExceptionToResourceTitle
public java.lang.String convertExceptionToResourceTitle(InterceptorException exception)
return error message title in resource bundle from exception's className.- Parameters:
exception- An exception, subclass of InterceptionException includingWebhookConfigEventNotSupportedExceptionWebhookConfigNoEventTypeExceptionWebhookConfigNoEventConfigExceptionWebhookConfigNotRegisteredEventExceptionWebhookConfigNotValidLocationException- Returns:
- error message title
-
showErrorMessageBox
protected void showErrorMessageBox(java.lang.String msgKey, java.lang.String titleKey)
-
-