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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbulkChangeLock(Collection<?> collection) booleancanPerform(com.hybris.cockpitng.actions.ActionContext<Object> ctx) protected voidchangeLock(ItemModel data, boolean lock) getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<Object> ctx) protected com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisherprotected ItemLockingServiceprotected com.hybris.backoffice.widgets.notificationarea.NotificationServicebooleanneedsConfirmation(com.hybris.cockpitng.actions.ActionContext<Object> ctx) com.hybris.cockpitng.actions.ActionResult<Object>protected voidvoidsetEventPublisher(com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisher eventPublisher) voidsetItemLockingService(ItemLockingService itemLockingService) voidsetNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService) protected voidshowNotifications(com.hybris.cockpitng.actions.ActionContext<Object> ctx, ItemModel data) protected voidshowNotifications(com.hybris.cockpitng.actions.ActionContext<Object> ctx, Collection<?> dataList) Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstance
-
Field Details
-
GLOBAL_EVENT_ITEM_LOCKED_STATE_CHANGED
- See Also:
-
LOCK_CONFIRMATION_MESSAGE
- See Also:
-
UNLOCK_CONFIRMATION_MESSAGE
- See Also:
-
LOCK_CONFIRMATION_MESSAGE_MULTI
- See Also:
-
UNLOCK_CONFIRMATION_MESSAGE_MULTI
- See Also:
-
-
Constructor Details
-
ToggleItemLockAction
public ToggleItemLockAction()
-
-
Method Details
-
perform
-
bulkChangeLock
-
changeLock
-
showNotifications
-
showNotifications
protected void showNotifications(com.hybris.cockpitng.actions.ActionContext<Object> ctx, Collection<?> dataList) -
canPerform
-
needsConfirmation
-
getConfirmationMessage
-
publishGlobalNotificationOnLockingStateChange
-
getItemLockingService
-
setItemLockingService
-
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)
-