Class PrintShippingLabelAction
java.lang.Object
de.hybris.platform.warehousingbackoffice.actions.printshippinglabel.PrintShippingLabelAction
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,ConsignmentModel>
public class PrintShippingLabelAction
extends Object
implements com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,ConsignmentModel>
Action responsible for generating a
ConsignmentModel.SHIPPINGLABEL-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPerform(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext) getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext) protected ConsignmentPrintDocumentStrategyprotected ModelServicebooleanneedsConfirmation(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext) com.hybris.cockpitng.actions.ActionResult<ConsignmentModel>perform(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext) protected voidprintShippingLabel(ConsignmentModel consignment) Generates a shipping label forConsignmentModelbased on theConsignmentPrintDocumentStrategyprotected voidprocessMessageboxEvent(org.zkoss.zk.ui.event.Event clickEvent, com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext, Map<String, Object> parentWidgetMap) Handles the message box popup action when the object is modified.
-
Field Details
-
POPUP_UNSAVED_CONSIGNMENT_MESSAGE
- See Also:
-
POPUP_UNSAVED_CONSIGNMENT_TITLE
- See Also:
-
-
Constructor Details
-
PrintShippingLabelAction
public PrintShippingLabelAction()
-
-
Method Details
-
perform
public com.hybris.cockpitng.actions.ActionResult<ConsignmentModel> perform(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext) - Specified by:
performin interfacecom.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,ConsignmentModel>
-
canPerform
public boolean canPerform(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext) - Specified by:
canPerformin interfacecom.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,ConsignmentModel>
-
needsConfirmation
public boolean needsConfirmation(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext) - Specified by:
needsConfirmationin interfacecom.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,ConsignmentModel>
-
getConfirmationMessage
public String getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext) - Specified by:
getConfirmationMessagein interfacecom.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,ConsignmentModel>
-
processMessageboxEvent
protected void processMessageboxEvent(org.zkoss.zk.ui.event.Event clickEvent, com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext, Map<String, Object> parentWidgetMap) Handles the message box popup action when the object is modified. Saves theConsignmentModelon YES. Refreshes theConsignmentModelon NO. Reloads theConsignmentModelin backoffice.- Parameters:
clickEvent- the event that contains the button clickedconsignmentModelActionContext- the action context that contains the consignment
-
printShippingLabel
Generates a shipping label forConsignmentModelbased on theConsignmentPrintDocumentStrategy- Parameters:
consignment- the consignment
-
getConsignmentPrintShippingLabelStrategy
-
getModelService
-