Class SessionContextController

  • 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 SessionContextController
    extends com.hybris.cockpitng.util.DefaultWidgetController
    controller class for handling Session Context widget interactions
    See Also:
    Serialized Form
    • Field Detail

      • USER_ANCHOR_COMPONENT_ID

        protected static final java.lang.String USER_ANCHOR_COMPONENT_ID
        See Also:
        Constant Field Values
      • TICKET_ANCHOR_COMPONENT_ID

        protected static final java.lang.String TICKET_ANCHOR_COMPONENT_ID
        See Also:
        Constant Field Values
      • ORDER_ANCHOR_COMPONENT_ID

        protected static final java.lang.String ORDER_ANCHOR_COMPONENT_ID
        See Also:
        Constant Field Values
      • END_SESSION_BUTTON_COMPONENT_ID

        protected static final java.lang.String END_SESSION_BUTTON_COMPONENT_ID
        See Also:
        Constant Field Values
      • SESSION_CALL_BUTTON_COMPONENT_ID

        protected static final java.lang.String SESSION_CALL_BUTTON_COMPONENT_ID
        See Also:
        Constant Field Values
      • ASM_LAUNCH_BUTTON_COMPONENT_ID

        protected static final java.lang.String ASM_LAUNCH_BUTTON_COMPONENT_ID
        See Also:
        Constant Field Values
      • START_CALL_LABEL_KEY

        protected static final java.lang.String START_CALL_LABEL_KEY
        See Also:
        Constant Field Values
      • END_CALL_LABEL_KEY

        protected static final java.lang.String END_CALL_LABEL_KEY
        See Also:
        Constant Field Values
      • CURRENT_SESSION_CALL_MODE

        protected static final java.lang.String CURRENT_SESSION_CALL_MODE
        See Also:
        Constant Field Values
      • START_CALL_CSS_CLASS

        protected static final java.lang.String START_CALL_CSS_CLASS
        See Also:
        Constant Field Values
      • END_CALL_CSS_CLASS

        protected static final java.lang.String END_CALL_CSS_CLASS
        See Also:
        Constant Field Values
      • ANCHOR_CSS_CLASS

        protected static final java.lang.String ANCHOR_CSS_CLASS
        See Also:
        Constant Field Values
      • dateTimeFormat

        protected final java.text.SimpleDateFormat dateTimeFormat
      • userAnchor

        protected org.zkoss.zul.A userAnchor
      • ticketAnchor

        protected org.zkoss.zul.A ticketAnchor
      • orderAnchor

        protected org.zkoss.zul.A orderAnchor
      • endSessionBtn

        protected org.zkoss.zul.Button endSessionBtn
      • asmBtn

        protected org.zkoss.zul.Button asmBtn
      • callContextBtn

        protected org.zkoss.zul.Button callContextBtn
      • customerPlaceholder

        protected org.zkoss.zul.Label customerPlaceholder
      • ticketPlaceholder

        protected org.zkoss.zul.Label ticketPlaceholder
      • orderPlaceholder

        protected org.zkoss.zul.Label orderPlaceholder
      • userImage

        protected org.zkoss.zul.Image userImage
      • ticketImage

        protected org.zkoss.zul.Image ticketImage
      • orderImage

        protected org.zkoss.zul.Image orderImage
      • availableSites

        protected org.zkoss.zul.Combobox availableSites
      • stopWatch

        protected com.hybris.cockpitng.components.Stopwatch stopWatch
      • sessionTimerDiv

        protected org.zkoss.zul.Div sessionTimerDiv
      • cockpitSessionService

        protected transient com.hybris.cockpitng.util.CockpitSessionService cockpitSessionService
    • Constructor Detail

      • SessionContextController

        public SessionContextController()
    • Method Detail

      • initialize

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

        public void getUserDetails()
      • getTicketDetails

        public void getTicketDetails()
      • getOrderDetails

        public void getOrderDetails()
      • itemSelected

        public void itemSelected​(java.lang.Object msg)
      • currentOrderSelected

        protected java.lang.String currentOrderSelected​(java.lang.Object msg,
                                                        SessionContextModel currentContextSession)
      • endCurrentSession

        public void endCurrentSession()
      • itemCreated

        public void itemCreated​(java.lang.Object msg)
      • restartTimer

        protected void restartTimer()
      • resetToDefault

        protected void resetToDefault()
      • handleSiteUpdate

        protected void handleSiteUpdate​(BaseSiteModel baseSiteModel)
      • handleSessionCall

        public void handleSessionCall()
      • launchASM

        public void launchASM()
      • showASMButton

        public boolean showASMButton()
      • handleUIComponents

        protected void handleUIComponents()
        show/hide UI components
      • handleSessionCallMode

        protected void handleSessionCallMode()
      • getAvailableSites

        protected org.zkoss.zul.ListModelList<BaseSiteModel> getAvailableSites()
        return current available sites in the system
        Returns:
        list of sites