Class FraudCheckButtonCellRenderer

java.lang.Object
de.hybris.platform.omsbackoffice.renderers.FraudCheckButtonCellRenderer
All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,FraudReportModel>

public class FraudCheckButtonCellRenderer extends Object implements com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,FraudReportModel>
This cell renderer displays a accept potentially fraudulent order button and handles the button click.
  • Field Details

  • Constructor Details

    • FraudCheckButtonCellRenderer

      public FraudCheckButtonCellRenderer()
  • Method Details

    • render

      public void render(org.zkoss.zul.Listcell parent, com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn columnConfiguration, FraudReportModel object, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManger)
      Specified by:
      render in interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,FraudReportModel>
    • rejectPotentiallyFraudulentOrder

      protected void rejectPotentiallyFraudulentOrder(OrderModel order)
      Reject the order which had a fraud notice
      Parameters:
      order - a OrderModel
    • acceptPotentiallyFraudulentOrder

      protected void acceptPotentiallyFraudulentOrder(OrderModel order)
      Accept the order which had a fraud notice.
      Parameters:
      order - a OrderModel
    • canPerformOperation

      protected boolean canPerformOperation(OrderModel order)
      check if the fraud can be rejected or accepted.
      Parameters:
      order - the OrderModel
      Returns:
      true if the operation can be executed.
    • executeFraudulentOperation

      protected void executeFraudulentOperation(OrderModel order)
      Save the order with the new attribute value for fraudulent.
      Send the event to business process service
      Parameters:
      order - an OrderModel
      Throws:
      ModelSavingException - a ModelSavingException
    • getBusinessProcessService

      protected BusinessProcessService getBusinessProcessService()
    • setBusinessProcessService

      public void setBusinessProcessService(BusinessProcessService businessProcessService)
    • getModelService

      protected ModelService getModelService()
    • setModelService

      public void setModelService(ModelService modelService)
    • getNotificationService

      protected com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()
    • setNotificationService

      public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)
    • getWidgetInstanceManager

      public com.hybris.cockpitng.engine.WidgetInstanceManager getWidgetInstanceManager()
    • setWidgetInstanceManager

      public void setWidgetInstanceManager(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)