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 Details

  • 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:
      perform in interface com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,ConsignmentModel>
    • canPerform

      public boolean canPerform(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext)
      Specified by:
      canPerform in interface com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,ConsignmentModel>
    • needsConfirmation

      public boolean needsConfirmation(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext)
      Specified by:
      needsConfirmation in interface com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,ConsignmentModel>
    • getConfirmationMessage

      public String getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext)
      Specified by:
      getConfirmationMessage in interface com.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 the ConsignmentModel on YES. Refreshes the ConsignmentModel on NO. Reloads the ConsignmentModel in backoffice.
      Parameters:
      clickEvent - the event that contains the button clicked
      consignmentModelActionContext - the action context that contains the consignment
    • printShippingLabel

      protected void printShippingLabel(ConsignmentModel consignment)
      Generates a shipping label for ConsignmentModel based on the ConsignmentPrintDocumentStrategy
      Parameters:
      consignment - the consignment
    • getConsignmentPrintShippingLabelStrategy

      protected ConsignmentPrintDocumentStrategy getConsignmentPrintShippingLabelStrategy()
    • getModelService

      protected ModelService getModelService()