Class SyncPopupController

  • 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 SyncPopupController
    extends com.hybris.cockpitng.util.DefaultWidgetController
    See Also:
    Serialized Form
    • Field Detail

      • SOCKET_IN_INPUT_OBJECT

        protected static final java.lang.String SOCKET_IN_INPUT_OBJECT
        See Also:
        Constant Field Values
      • SOCKET_IN_INPUT_OBJECTS

        protected static final java.lang.String SOCKET_IN_INPUT_OBJECTS
        See Also:
        Constant Field Values
      • SOCKET_OUT_EXECUTED_SYNC_TASK

        protected static final java.lang.String SOCKET_OUT_EXECUTED_SYNC_TASK
        See Also:
        Constant Field Values
      • SOCKET_OUTPUT_CANCEL

        protected static final java.lang.String SOCKET_OUTPUT_CANCEL
        See Also:
        Constant Field Values
      • SETTING_SEARCH_VISIBILITY_THRESHOLD

        protected static final java.lang.String SETTING_SEARCH_VISIBILITY_THRESHOLD
        See Also:
        Constant Field Values
      • SETTING_LISTITEM_RENDERER

        protected static final java.lang.String SETTING_LISTITEM_RENDERER
        See Also:
        Constant Field Values
      • LABEL_TITLE_SINGLE

        protected static final java.lang.String LABEL_TITLE_SINGLE
        See Also:
        Constant Field Values
      • LABEL_TITLE_WINDOW

        protected static final java.lang.String LABEL_TITLE_WINDOW
        See Also:
        Constant Field Values
      • LABEL_TITLE_MANY

        protected static final java.lang.String LABEL_TITLE_MANY
        See Also:
        Constant Field Values
      • CANCEL_BUTTON_ID

        protected static final java.lang.String CANCEL_BUTTON_ID
        See Also:
        Constant Field Values
      • MODEL_SYNC_ITEMS

        protected static final java.lang.String MODEL_SYNC_ITEMS
        See Also:
        Constant Field Values
      • SOCKET_STARTED_SYNC_CRON_JOB

        public static final java.lang.String SOCKET_STARTED_SYNC_CRON_JOB
        See Also:
        Constant Field Values
      • labelService

        protected transient com.hybris.cockpitng.labels.LabelService labelService
    • Constructor Detail

      • SyncPopupController

        public SyncPopupController()
    • Method Detail

      • initialize

        public void initialize​(org.zkoss.zk.ui.Component comp)
        Overrides:
        initialize in class com.hybris.cockpitng.util.DefaultWidgetController
      • initializeLists

        protected void initializeLists()
      • setupRenderers

        protected void setupRenderers()
      • getSyncItems

        protected java.util.List<ItemModel> getSyncItems()
      • prepareView

        protected void prepareView​(java.util.List<ItemModel> itemsToSync)
      • adjustTitle

        protected void adjustTitle​(java.util.List<ItemModel> itemsToSync)
      • setSearchboxVisibility

        protected void setSearchboxVisibility()
      • showWarningMessageBox

        protected void showWarningMessageBox​(java.lang.String titleKey,
                                             java.lang.String msgKey)
      • hideListIfEmpty

        protected void hideListIfEmpty()
      • onPushListSelect

        public void onPushListSelect()
      • onPullListSelect

        public void onPullListSelect()
      • closeSyncPopup

        public void closeSyncPopup()
      • onSyncButtonClick

        public void onSyncButtonClick()
      • filterLists

        public void filterLists​(org.zkoss.zk.ui.event.InputEvent event)
      • itemMatches

        protected boolean itemMatches​(java.lang.String value,
                                      org.zkoss.zul.Listitem item)
      • showSyncJobsForInputObject

        public void showSyncJobsForInputObject​(ItemModel data)
      • showSyncJobsForInputObjects

        public void showSyncJobsForInputObjects​(java.util.List<ItemModel> items)
      • loadPushJobs

        protected void loadPushJobs​(java.util.List<SyncItemJobModel> jobs)
      • loadPullJobs

        protected void loadPullJobs​(java.util.List<SyncItemJobModel> jobs)
      • clearLoadedJobs

        protected void clearLoadedJobs()
      • createSyncCtx

        protected java.util.Map<java.lang.String,​java.lang.Object> createSyncCtx()
      • getSelectedSyncJob

        protected java.util.Optional<SyncItemJobModel> getSelectedSyncJob()
      • getPullList

        public org.zkoss.zul.Listbox getPullList()
      • getPushList

        public org.zkoss.zul.Listbox getPushList()
      • getTabbox

        public org.zkoss.zul.Tabbox getTabbox()
      • getPullTab

        public org.zkoss.zul.Tab getPullTab()
      • getPushTab

        public org.zkoss.zul.Tab getPushTab()
      • getSync

        public org.zkoss.zul.Button getSync()
      • getSearchbox

        public org.zkoss.zul.Textbox getSearchbox()
      • getTitle

        public org.zkoss.zul.Label getTitle()
      • getPullListModel

        public org.zkoss.zul.ListModelList<SyncPopupViewModel> getPullListModel()
      • getPushListModel

        public org.zkoss.zul.ListModelList<SyncPopupViewModel> getPushListModel()
      • getLabelService

        protected com.hybris.cockpitng.labels.LabelService getLabelService()
      • setLabelService

        public void setLabelService​(com.hybris.cockpitng.labels.LabelService labelService)
      • setSynchronizationFacade

        public void setSynchronizationFacade​(SynchronizationFacade synchronizationFacade)
      • getNotificationService

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

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