Class SelectiveSyncController
- java.lang.Object
-
- org.zkoss.zk.ui.event.GenericEventListener
-
- org.zkoss.zk.ui.util.GenericComposer<T>
-
- org.zkoss.zk.ui.util.GenericAutowireComposer<T>
-
- org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
-
- com.hybris.cockpitng.util.ViewAnnotationAwareComposer
-
- com.hybris.cockpitng.util.DefaultWidgetController
-
- com.hybris.backoffice.widgets.selectivesync.SelectiveSyncController
-
- All Implemented Interfaces:
com.hybris.cockpitng.core.WidgetController
,com.hybris.cockpitng.dnd.WidgetDragAndDropAware
,com.hybris.cockpitng.engine.WidgetInstanceManagerAware
,java.io.Serializable
,org.zkoss.zk.ui.event.EventListener
,org.zkoss.zk.ui.event.SerializableEventListener
,org.zkoss.zk.ui.util.ComponentActivationListener
,org.zkoss.zk.ui.util.ComponentCloneListener
,org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>
,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>
public class SelectiveSyncController extends com.hybris.cockpitng.util.DefaultWidgetController
Controller for Selective Synchronization management- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
COMP_ID_CANCEL_BTN
protected static java.lang.String
COMP_ID_SAVE_BTN
static java.lang.String
MODEL_CURRENT_OBJECT
static java.lang.String
MODEL_VALUE_CHANGED
protected static java.lang.String
SOCKET_INPUT_OBJECT
protected static java.lang.String
SOCKET_OUTPUT_CANCEL
protected static java.lang.String
SOCKET_OUTPUT_OBJECT_SAVED
-
Constructor Summary
Constructors Constructor Description SelectiveSyncController()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
createTreeLegend()
org.zkoss.zul.Button
getCancelButton()
org.zkoss.zul.Div
getContentDiv()
protected CatalogVersionSyncJobModel
getCurrentObject()
org.zkoss.zul.Div
getLegendDiv()
protected com.hybris.backoffice.widgets.notificationarea.NotificationService
getNotificationService()
protected java.lang.String
getNotificationSource()
Deprecated.since 6.7, useNotificationService.getWidgetNotificationSource(com.hybris.cockpitng.engine.WidgetInstanceManager)
instead.com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade
getObjectFacade()
org.zkoss.zul.Button
getSaveButton()
SelectiveSyncRenderer
getSelectiveSyncRenderer()
void
handleCancelButtonClick()
void
handleInputObject(CatalogVersionSyncJobModel inputObject)
protected void
handleNotFoundException(CatalogVersionSyncJobModel model, com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectNotFoundException e)
protected void
handleObjectSavingSuccess(java.lang.Object savedObject)
void
handleSaveButtonClick()
void
initialize(org.zkoss.zk.ui.Component comp)
protected boolean
isCurrentObjectAvailable()
protected void
renderCurrentObject()
protected void
setCurrentObject(CatalogVersionSyncJobModel model)
void
setNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService)
void
setObjectFacade(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade)
void
setSelectiveSyncRenderer(SelectiveSyncRenderer selectiveSyncRenderer)
-
Methods inherited from class com.hybris.cockpitng.util.DefaultWidgetController
doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitle
-
Methods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
scanEventListeners
-
Methods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivate
-
-
-
-
Field Detail
-
MODEL_CURRENT_OBJECT
public static final java.lang.String MODEL_CURRENT_OBJECT
- See Also:
- Constant Field Values
-
MODEL_VALUE_CHANGED
public static final java.lang.String MODEL_VALUE_CHANGED
- See Also:
- Constant Field Values
-
COMP_ID_CANCEL_BTN
protected static final java.lang.String COMP_ID_CANCEL_BTN
- See Also:
- Constant Field Values
-
COMP_ID_SAVE_BTN
protected static final java.lang.String COMP_ID_SAVE_BTN
- See Also:
- Constant Field Values
-
SOCKET_INPUT_OBJECT
protected static final java.lang.String SOCKET_INPUT_OBJECT
- See Also:
- Constant Field Values
-
SOCKET_OUTPUT_OBJECT_SAVED
protected static final java.lang.String SOCKET_OUTPUT_OBJECT_SAVED
- See Also:
- Constant Field Values
-
SOCKET_OUTPUT_CANCEL
protected static final java.lang.String SOCKET_OUTPUT_CANCEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp)
- Overrides:
initialize
in classcom.hybris.cockpitng.util.DefaultWidgetController
-
createTreeLegend
protected void createTreeLegend()
-
renderCurrentObject
protected void renderCurrentObject()
-
handleInputObject
public void handleInputObject(CatalogVersionSyncJobModel inputObject)
-
handleNotFoundException
protected void handleNotFoundException(CatalogVersionSyncJobModel model, com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectNotFoundException e)
-
handleCancelButtonClick
public void handleCancelButtonClick()
-
handleSaveButtonClick
public void handleSaveButtonClick()
-
handleObjectSavingSuccess
protected void handleObjectSavingSuccess(java.lang.Object savedObject)
-
getCurrentObject
protected CatalogVersionSyncJobModel getCurrentObject()
-
setCurrentObject
protected void setCurrentObject(CatalogVersionSyncJobModel model)
-
isCurrentObjectAvailable
protected boolean isCurrentObjectAvailable()
-
getNotificationSource
@Deprecated protected java.lang.String getNotificationSource()
Deprecated.since 6.7, useNotificationService.getWidgetNotificationSource(com.hybris.cockpitng.engine.WidgetInstanceManager)
instead.
-
getContentDiv
public org.zkoss.zul.Div getContentDiv()
-
getLegendDiv
public org.zkoss.zul.Div getLegendDiv()
-
getSaveButton
public org.zkoss.zul.Button getSaveButton()
-
getCancelButton
public org.zkoss.zul.Button getCancelButton()
-
getObjectFacade
public com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade getObjectFacade()
-
setObjectFacade
public void setObjectFacade(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade)
-
getSelectiveSyncRenderer
public SelectiveSyncRenderer getSelectiveSyncRenderer()
-
setSelectiveSyncRenderer
public void setSelectiveSyncRenderer(SelectiveSyncRenderer selectiveSyncRenderer)
-
getNotificationService
protected com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService()
-
setNotificationService
public void setNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService)
-
-