Class 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 java.lang.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.
    • Constructor Detail

      • FraudCheckButtonCellRenderer

        public FraudCheckButtonCellRenderer()
    • Method Detail

      • 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.
      • 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)