Class ReallocateAction

  • All Implemented Interfaces:
    com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,​ConsignmentModel>, com.hybris.cockpitng.engine.ComponentWidgetAdapterAware

    public class ReallocateAction
    extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
    implements com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,​ConsignmentModel>
    Action to open a reallocate popup in order to manually or automatically reallocate all or partial part of consignment entries using the UI.
    • Field Detail

      • CAPTURE_PAYMENT_ON_CONSIGNMENT

        protected static final java.lang.String CAPTURE_PAYMENT_ON_CONSIGNMENT
        See Also:
        Constant Field Values
      • SOCKET_OUT_CONTEXT

        protected static final java.lang.String SOCKET_OUT_CONTEXT
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReallocateAction

        public ReallocateAction()
    • Method Detail

      • canPerform

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

        public java.lang.String getConfirmationMessage​(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> actionContext)
        Specified by:
        getConfirmationMessage in interface com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,​ConsignmentModel>
      • needsConfirmation

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

        protected java.util.List<ConsignmentStatus> getReallocableConsignmentStatuses()