Class ToggleItemLockAction

java.lang.Object
com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
com.hybris.backoffice.widgets.actions.locking.ToggleItemLockAction
All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<Object,Object>, com.hybris.cockpitng.engine.ComponentWidgetAdapterAware

public class ToggleItemLockAction extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware implements com.hybris.cockpitng.actions.CockpitAction<Object,Object>
Action allows to lock and unlock an item or items. It is impossible to delete, edit or save locked items.
  • Field Details

  • Constructor Details

    • ToggleItemLockAction

      public ToggleItemLockAction()
  • Method Details

    • perform

      public com.hybris.cockpitng.actions.ActionResult<Object> perform(com.hybris.cockpitng.actions.ActionContext<Object> ctx)
      Specified by:
      perform in interface com.hybris.cockpitng.actions.CockpitAction<Object,Object>
    • bulkChangeLock

      protected void bulkChangeLock(Collection<?> collection)
    • changeLock

      protected void changeLock(ItemModel data, boolean lock)
    • showNotifications

      protected void showNotifications(com.hybris.cockpitng.actions.ActionContext<Object> ctx, ItemModel data)
    • showNotifications

      protected void showNotifications(com.hybris.cockpitng.actions.ActionContext<Object> ctx, Collection<?> dataList)
    • canPerform

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

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

      public String getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<Object> ctx)
      Specified by:
      getConfirmationMessage in interface com.hybris.cockpitng.actions.CockpitAction<Object,Object>
    • publishGlobalNotificationOnLockingStateChange

      protected void publishGlobalNotificationOnLockingStateChange(Collection<?> data)
    • getItemLockingService

      protected ItemLockingService getItemLockingService()
    • setItemLockingService

      public void setItemLockingService(ItemLockingService itemLockingService)
    • getEventPublisher

      protected com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisher getEventPublisher()
    • setEventPublisher

      public void setEventPublisher(com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisher eventPublisher)
    • getNotificationService

      protected com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService()
    • setNotificationService

      public void setNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService)