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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAccept the order which had a fraud notice.protected booleancanPerformOperation(OrderModel order) check if the fraud can be rejected or accepted.protected voidSave the order with the new attribute value for fraudulent.protected BusinessProcessServiceprotected ModelServiceprotected com.hybris.cockpitng.util.notifications.NotificationServicecom.hybris.cockpitng.engine.WidgetInstanceManagerprotected voidReject the order which had a fraud noticevoidrender(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) voidsetBusinessProcessService(BusinessProcessService businessProcessService) voidsetModelService(ModelService modelService) voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) voidsetWidgetInstanceManager(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
addRendererListener, removeRendererListener, render
-
Field Details
-
FRAUD_BUTTON
- See Also:
-
REJECT_FRAUD_ITEM
- See Also:
-
ACCEPT_FRAUD_ITEM
- See Also:
-
ORDER_EVENT_NAME
- See Also:
-
DISABLED
- See Also:
-
-
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:
renderin interfacecom.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn, FraudReportModel>
-
rejectPotentiallyFraudulentOrder
Reject the order which had a fraud notice- Parameters:
order- aOrderModel
-
acceptPotentiallyFraudulentOrder
Accept the order which had a fraud notice.- Parameters:
order- aOrderModel
-
canPerformOperation
check if the fraud can be rejected or accepted.- Parameters:
order- theOrderModel- Returns:
- true if the operation can be executed.
-
executeFraudulentOperation
Save the order with the new attribute value for fraudulent.
Send the event to business process service- Parameters:
order- anOrderModel- Throws:
ModelSavingException- aModelSavingException
-
getBusinessProcessService
-
setBusinessProcessService
-
getModelService
-
setModelService
-
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)
-