Package com.hybris.backoffice.editorarea
Class BackofficeEditorAreaLogicHandler
- java.lang.Object
-
- com.hybris.cockpitng.widgets.baseeditorarea.DefaultEditorAreaLogicHandler
-
- com.hybris.backoffice.editorarea.BackofficeEditorAreaLogicHandler
-
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.baseeditorarea.EditorAreaLogicHandler
public class BackofficeEditorAreaLogicHandler extends com.hybris.cockpitng.widgets.baseeditorarea.DefaultEditorAreaLogicHandlerLogic handler which checks if sync is running for an item being saved.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringLABEL_BTN_CANCELprotected static java.lang.StringLABEL_BTN_IGNORE_AND_SAVEprotected static java.lang.StringLABEL_SYNC_IN_PROGRESS_MSG_NO_SAVEprotected static java.lang.StringLABEL_SYNC_IN_PROGRESS_MSG_SAVEprotected static java.lang.StringLABEL_SYNC_IN_PROGRESS_TITLEprotected static java.lang.StringSETTING_DISABLE_SAVE_ON_SYNC
-
Constructor Summary
Constructors Constructor Description BackofficeEditorAreaLogicHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteSaveWithConfirmation(com.hybris.cockpitng.engine.WidgetInstanceManager wim, com.hybris.cockpitng.core.Executable save, java.lang.Object currentObject)protected booleanisSyncInProgress(java.lang.Object currentObject)voidsetSynchronizationFacade(SynchronizationFacade synchronizationFacade)protected voidshowMessageBox(java.lang.String title, java.lang.String message, org.zkoss.zul.Messagebox.Button[] buttons, java.lang.String[] btnLabels, org.zkoss.zk.ui.event.EventListener<org.zkoss.zul.Messagebox.ClickEvent> clickEventListener)protected voidshowSyncInProgressConfirmation(com.hybris.cockpitng.engine.WidgetInstanceManager wim, com.hybris.cockpitng.core.Executable onIgnoreAndSave)
-
-
-
Field Detail
-
SETTING_DISABLE_SAVE_ON_SYNC
protected static final java.lang.String SETTING_DISABLE_SAVE_ON_SYNC
- See Also:
- Constant Field Values
-
LABEL_SYNC_IN_PROGRESS_MSG_SAVE
protected static final java.lang.String LABEL_SYNC_IN_PROGRESS_MSG_SAVE
- See Also:
- Constant Field Values
-
LABEL_SYNC_IN_PROGRESS_MSG_NO_SAVE
protected static final java.lang.String LABEL_SYNC_IN_PROGRESS_MSG_NO_SAVE
- See Also:
- Constant Field Values
-
LABEL_SYNC_IN_PROGRESS_TITLE
protected static final java.lang.String LABEL_SYNC_IN_PROGRESS_TITLE
- See Also:
- Constant Field Values
-
LABEL_BTN_CANCEL
protected static final java.lang.String LABEL_BTN_CANCEL
- See Also:
- Constant Field Values
-
LABEL_BTN_IGNORE_AND_SAVE
protected static final java.lang.String LABEL_BTN_IGNORE_AND_SAVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
executeSaveWithConfirmation
public void executeSaveWithConfirmation(com.hybris.cockpitng.engine.WidgetInstanceManager wim, com.hybris.cockpitng.core.Executable save, java.lang.Object currentObject)
-
isSyncInProgress
protected boolean isSyncInProgress(java.lang.Object currentObject)
-
showSyncInProgressConfirmation
protected void showSyncInProgressConfirmation(com.hybris.cockpitng.engine.WidgetInstanceManager wim, com.hybris.cockpitng.core.Executable onIgnoreAndSave)
-
showMessageBox
protected void showMessageBox(java.lang.String title, java.lang.String message, org.zkoss.zul.Messagebox.Button[] buttons, java.lang.String[] btnLabels, org.zkoss.zk.ui.event.EventListener<org.zkoss.zul.Messagebox.ClickEvent> clickEventListener)
-
setSynchronizationFacade
public void setSynchronizationFacade(SynchronizationFacade synchronizationFacade)
-
-