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, 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:
  • Field Details

    • WEBHOOK_CONFIG_PARAM

      protected static final String WEBHOOK_CONFIG_PARAM
      See Also:
    • WEBHOOK_SEND_BUTTON

      protected static final String WEBHOOK_SEND_BUTTON
      See Also:
    • PING_WEBHOOK_CONFIG_SUCCESS

      protected static final String PING_WEBHOOK_CONFIG_SUCCESS
      See Also:
    • PING_WEBHOOK_CONFIG_FAILURE

      protected static final String PING_WEBHOOK_CONFIG_FAILURE
      See Also:
    • SELECT_ENTITY_ERROR

      protected static final String SELECT_ENTITY_ERROR
      See Also:
    • ITEM_FILTERED_OUT_WARNING

      protected static final String ITEM_FILTERED_OUT_WARNING
      See Also:
    • REFERENCE

      protected static final String REFERENCE
      See Also:
    • ERROR_400

      protected static final String ERROR_400
      See Also:
    • ERROR_401

      protected static final String ERROR_401
      See Also:
    • ERROR_403

      protected static final String ERROR_403
      See Also:
    • ERROR_404

      protected static final String ERROR_404
      See Also:
    • ERROR_405

      protected static final String ERROR_405
      See Also:
    • ERROR_500

      protected static final String ERROR_500
      See Also:
    • ERROR_503

      protected static final String ERROR_503
      See Also:
    • ERROR_DEFAULT

      protected static final String ERROR_DEFAULT
      See Also:
    • ERROR_SOCKET_TIME_OUT

      protected static final String ERROR_SOCKET_TIME_OUT
      See Also:
    • ERROR_EMPTY_PAYLOAD

      protected static final String ERROR_EMPTY_PAYLOAD
      See Also:
    • HTTP_ERROR_CODE_MAP

      protected static final Map<Integer,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
    • defaultWebhookFilterService

      protected transient WebhookFilterService defaultWebhookFilterService
    • webhookbackofficeJsonTextBox

      protected org.zkoss.zul.Textbox webhookbackofficeJsonTextBox
    • webhookbackofficeJsonTextDestinationPathBox

      protected org.zkoss.zul.Textbox webhookbackofficeJsonTextDestinationPathBox
    • webhookbackofficeIODestinationPathBox

      protected org.zkoss.zul.Textbox webhookbackofficeIODestinationPathBox
    • 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
  • Constructor Details

    • PingWebhookConfigModalController

      public PingWebhookConfigModalController()
  • Method Details

    • loadTestWebhookConfigurationModal

      public void loadTestWebhookConfigurationModal(WebhookConfigurationModel webhookConfigurationModel)
    • sendWebhookPayload

      public void sendWebhookPayload()
    • getFallbackMessage

      protected String getFallbackMessage(int statusCode)