Class PingWebhookConfigModalController
- 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.PingWebhookConfigModalController
-
- 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 PingWebhookConfigModalController extends com.hybris.cockpitng.util.DefaultWidgetControllerController to load mocked JSON and send to destination.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected WebhookValidationServicedefaultWebhookValidationServiceprotected static java.lang.StringERROR_400protected static java.lang.StringERROR_401protected static java.lang.StringERROR_403protected static java.lang.StringERROR_404protected static java.lang.StringERROR_405protected static java.lang.StringERROR_500protected static java.lang.StringERROR_503protected static java.lang.StringERROR_DEFAULTprotected static java.lang.StringERROR_EMPTY_PAYLOADprotected static java.lang.StringERROR_SOCKET_TIME_OUTprotected static java.util.Map<java.lang.Integer,java.lang.String>HTTP_ERROR_CODE_MAPprotected com.hybris.cockpitng.components.EditoritemModelInstanceEditorprotected com.hybris.cockpitng.util.notifications.NotificationServicenotificationServiceprotected IntegrationObjectJsonGeneratoroutboundIntegrationObjectJsonGeneratorprotected static java.lang.StringPING_WEBHOOK_CONFIG_FAILUREprotected static java.lang.StringPING_WEBHOOK_CONFIG_SUCCESSprotected static java.lang.StringREFERENCEprotected static java.lang.StringSELECT_ENTITY_ERRORprotected static java.lang.StringWEBHOOK_CONFIG_PARAMprotected static java.lang.StringWEBHOOK_SEND_BUTTONprotected org.zkoss.zul.TabwebhookbackofficeIntegrationObjectInstanceTabprotected org.zkoss.zul.TabwebhookbackofficeJsonTabprotected org.zkoss.zul.TextboxwebhookbackofficeJsonTextBoxprotected org.zkoss.zul.TabboxwebhookbackofficeMetadataTabboxprotected org.zkoss.zul.ButtonwebhookbackofficeMockedJsonSendButtonprotected WebhookConfigurationModelwebhookConfiguration
-
Constructor Summary
Constructors Constructor Description PingWebhookConfigModalController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetFallbackMessage(int statusCode)voidloadTestWebhookConfigurationModal(WebhookConfigurationModel webhookConfigurationModel)voidsendWebhookPayload()-
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
-
WEBHOOK_CONFIG_PARAM
protected static final java.lang.String WEBHOOK_CONFIG_PARAM
- See Also:
- Constant Field Values
-
WEBHOOK_SEND_BUTTON
protected static final java.lang.String WEBHOOK_SEND_BUTTON
- See Also:
- Constant Field Values
-
PING_WEBHOOK_CONFIG_SUCCESS
protected static final java.lang.String PING_WEBHOOK_CONFIG_SUCCESS
- See Also:
- Constant Field Values
-
PING_WEBHOOK_CONFIG_FAILURE
protected static final java.lang.String PING_WEBHOOK_CONFIG_FAILURE
- See Also:
- Constant Field Values
-
SELECT_ENTITY_ERROR
protected static final java.lang.String SELECT_ENTITY_ERROR
- See Also:
- Constant Field Values
-
REFERENCE
protected static final java.lang.String REFERENCE
- See Also:
- Constant Field Values
-
ERROR_400
protected static final java.lang.String ERROR_400
- See Also:
- Constant Field Values
-
ERROR_401
protected static final java.lang.String ERROR_401
- See Also:
- Constant Field Values
-
ERROR_403
protected static final java.lang.String ERROR_403
- See Also:
- Constant Field Values
-
ERROR_404
protected static final java.lang.String ERROR_404
- See Also:
- Constant Field Values
-
ERROR_405
protected static final java.lang.String ERROR_405
- See Also:
- Constant Field Values
-
ERROR_500
protected static final java.lang.String ERROR_500
- See Also:
- Constant Field Values
-
ERROR_503
protected static final java.lang.String ERROR_503
- See Also:
- Constant Field Values
-
ERROR_DEFAULT
protected static final java.lang.String ERROR_DEFAULT
- See Also:
- Constant Field Values
-
ERROR_SOCKET_TIME_OUT
protected static final java.lang.String ERROR_SOCKET_TIME_OUT
- See Also:
- Constant Field Values
-
ERROR_EMPTY_PAYLOAD
protected static final java.lang.String ERROR_EMPTY_PAYLOAD
- See Also:
- Constant Field Values
-
HTTP_ERROR_CODE_MAP
protected static final java.util.Map<java.lang.Integer,java.lang.String> HTTP_ERROR_CODE_MAP
-
outboundIntegrationObjectJsonGenerator
protected transient IntegrationObjectJsonGenerator outboundIntegrationObjectJsonGenerator
-
defaultWebhookValidationService
protected transient WebhookValidationService defaultWebhookValidationService
-
notificationService
protected transient com.hybris.cockpitng.util.notifications.NotificationService notificationService
-
webhookbackofficeJsonTextBox
protected org.zkoss.zul.Textbox webhookbackofficeJsonTextBox
-
webhookbackofficeMockedJsonSendButton
protected org.zkoss.zul.Button webhookbackofficeMockedJsonSendButton
-
itemModelInstanceEditor
protected com.hybris.cockpitng.components.Editor itemModelInstanceEditor
-
webhookbackofficeMetadataTabbox
protected org.zkoss.zul.Tabbox webhookbackofficeMetadataTabbox
-
webhookbackofficeJsonTab
protected org.zkoss.zul.Tab webhookbackofficeJsonTab
-
webhookbackofficeIntegrationObjectInstanceTab
protected org.zkoss.zul.Tab webhookbackofficeIntegrationObjectInstanceTab
-
webhookConfiguration
protected WebhookConfigurationModel webhookConfiguration
-
-
Method Detail
-
loadTestWebhookConfigurationModal
public void loadTestWebhookConfigurationModal(WebhookConfigurationModel webhookConfigurationModel)
-
sendWebhookPayload
public void sendWebhookPayload()
-
getFallbackMessage
protected java.lang.String getFallbackMessage(int statusCode)
-
-