Class QuickUploadController

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

      • FEED_MODEL_PARAMETER

        protected static final java.lang.String FEED_MODEL_PARAMETER
        See Also:
        Constant Field Values
      • TYPE_MODEL_PARAMETER

        protected static final java.lang.String TYPE_MODEL_PARAMETER
        See Also:
        Constant Field Values
      • COMPOSE_POOL_MODEL_PARAMETER

        protected static final java.lang.String COMPOSE_POOL_MODEL_PARAMETER
        See Also:
        Constant Field Values
      • PUBLISH_POOL_MODEL_PARAMETER

        protected static final java.lang.String PUBLISH_POOL_MODEL_PARAMETER
        See Also:
        Constant Field Values
      • TARGET_SYSTEMS_MODEL_PARAMETER

        protected static final java.lang.String TARGET_SYSTEMS_MODEL_PARAMETER
        See Also:
        Constant Field Values
      • UPLOADED_MEDIA_MODEL_PARAMETER

        protected static final java.lang.String UPLOADED_MEDIA_MODEL_PARAMETER
        See Also:
        Constant Field Values
      • DATAHUB_INFO_MODEL_PARAMETER

        protected static final java.lang.String DATAHUB_INFO_MODEL_PARAMETER
        See Also:
        Constant Field Values
      • TEXTAREA_CONTENT_MODEL_PARAMETER

        protected static final java.lang.String TEXTAREA_CONTENT_MODEL_PARAMETER
        See Also:
        Constant Field Values
      • DATAHUB_FEED_TYPECODE

        protected static final java.lang.String DATAHUB_FEED_TYPECODE
        See Also:
        Constant Field Values
      • DATAHUB_TARGET_SYSTEM_TYPECODE

        protected static final java.lang.String DATAHUB_TARGET_SYSTEM_TYPECODE
        See Also:
        Constant Field Values
      • DATAHUB_CANONICAL_ITEM_TYPECODE

        protected static final java.lang.String DATAHUB_CANONICAL_ITEM_TYPECODE
        See Also:
        Constant Field Values
      • COMPONENT_CLEAR_BTN

        protected static final java.lang.String COMPONENT_CLEAR_BTN
        See Also:
        Constant Field Values
      • COMPONENT_LOAD_BTN

        protected static final java.lang.String COMPONENT_LOAD_BTN
        See Also:
        Constant Field Values
      • COMPONENT_COMPOSE_BTN

        protected static final java.lang.String COMPONENT_COMPOSE_BTN
        See Also:
        Constant Field Values
      • COMPONENT_PUBLISH_BTN

        protected static final java.lang.String COMPONENT_PUBLISH_BTN
        See Also:
        Constant Field Values
      • COMPONENT_UPLOAD_BTN

        protected static final java.lang.String COMPONENT_UPLOAD_BTN
        See Also:
        Constant Field Values
      • COMPONENT_TEXTAREA

        protected static final java.lang.String COMPONENT_TEXTAREA
        See Also:
        Constant Field Values
      • COMPONENT_PROCESS

        protected static final java.lang.String COMPONENT_PROCESS
        See Also:
        Constant Field Values
      • composeContent

        protected org.zkoss.zul.Div composeContent
      • publishContent

        protected org.zkoss.zul.Div publishContent
      • loadSelectors

        protected org.zkoss.zul.Div loadSelectors
      • url

        protected org.zkoss.zul.Textbox url
      • filename

        protected org.zkoss.zul.Textbox filename
      • textarea

        protected org.zkoss.zul.Textbox textarea
      • uploadFile

        protected org.zkoss.zul.Button uploadFile
      • uploadedFileContent

        protected org.zkoss.zul.Div uploadedFileContent
      • loadBtn

        protected org.zkoss.zul.Radio loadBtn
      • radioGroup

        protected org.zkoss.zul.Radiogroup radioGroup
      • main

        protected org.zkoss.zul.Div main
      • widgetTitle

        protected org.zkoss.zul.Label widgetTitle
      • feedSelector

        protected com.hybris.cockpitng.components.Editor feedSelector
      • typeSelector

        protected com.hybris.cockpitng.components.Editor typeSelector
      • composePoolSelector

        protected com.hybris.cockpitng.components.Editor composePoolSelector
      • publishPoolSelector

        protected com.hybris.cockpitng.components.Editor publishPoolSelector
      • targetSystemSelector

        protected com.hybris.cockpitng.components.Editor targetSystemSelector
    • Constructor Detail

      • QuickUploadController

        public QuickUploadController()
    • Method Detail

      • initialize

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

        public void refreshWhenDatahubInstanceChanged​(DataHubServer dataHub)
      • prepareWidgetModel

        protected void prepareWidgetModel​(DataHubServer dataHub)
      • contextDataHubServer

        protected DataHubServer contextDataHubServer()
      • getWidgetId

        public java.lang.String getWidgetId()
      • clearButtonPressed

        public void clearButtonPressed()
      • activateLoadRow

        public void activateLoadRow()
      • activateComposeRow

        public void activateComposeRow()
      • activatePublishRow

        public void activatePublishRow()
      • uploadFile

        public void uploadFile​(org.zkoss.zk.ui.event.UploadEvent uploadEvent)
      • onTextAreaChange

        public void onTextAreaChange​(org.zkoss.zk.ui.event.InputEvent event)
      • processSelected

        public void processSelected()
      • getSelectedProcessKey

        protected java.lang.String getSelectedProcessKey()
      • isProcessSelected

        protected boolean isProcessSelected()
      • createWidgetTitle

        protected void createWidgetTitle()
      • createCtx

        protected java.util.Map<java.lang.String,​java.lang.Object> createCtx()
      • renderContent

        protected void renderContent()
      • clearLoadRowData

        protected void clearLoadRowData()
      • enableLoadRow

        protected void enableLoadRow​(boolean enabled)
      • enableComposeRow

        protected void enableComposeRow​(boolean enable)
      • enablePublishRow

        protected void enablePublishRow​(boolean enable)
      • clearLoadRow

        protected void clearLoadRow()
      • clearComposeRow

        protected void clearComposeRow()
      • clearPublishRow

        protected void clearPublishRow()
      • createRecalculateUrlEventListener

        protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createRecalculateUrlEventListener()
      • createClearWrongValueEditorListener

        protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createClearWrongValueEditorListener()
      • populateLoadRowSelectors

        protected void populateLoadRowSelectors​(org.zkoss.zk.ui.Component parent)
      • buildComposeRow

        protected void buildComposeRow​(org.zkoss.zk.ui.Component parent)
      • buildPublishRow

        protected void buildPublishRow​(org.zkoss.zk.ui.Component parent)
      • recalculateUrl

        protected void recalculateUrl()
      • clearBinaryMedia

        protected void clearBinaryMedia()
      • lookupMatchingStrategy

        protected ProcessingStrategy lookupMatchingStrategy​(java.lang.String key)
      • appendLocalNotifier

        protected void appendLocalNotifier()
      • removeLocalNotifier

        protected void removeLocalNotifier()
      • createTypeEditor

        protected com.hybris.cockpitng.components.Editor createTypeEditor​(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener)
      • markEditorError

        public void markEditorError​(java.lang.String id)
      • createEditor

        protected com.hybris.cockpitng.components.Editor createEditor​(java.lang.String type,
                                                                      java.lang.String property,
                                                                      org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener,
                                                                      boolean multi)
      • setProcessingStrategies

        public void setProcessingStrategies​(java.util.List<ProcessingStrategy> strategies)
      • setNotificationService

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

        public com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService()