Class 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.DefaultWidgetController
    Controller to load mocked JSON and send to destination.
    See Also:
    Serialized Form
    • 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
      • 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
      • 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
    • Constructor Detail

      • PingWebhookConfigModalController

        public PingWebhookConfigModalController()
    • Method Detail

      • loadTestWebhookConfigurationModal

        public void loadTestWebhookConfigurationModal​(WebhookConfigurationModel webhookConfigurationModel)
      • sendWebhookPayload

        public void sendWebhookPayload()
      • getFallbackMessage

        protected java.lang.String getFallbackMessage​(int statusCode)