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
de.hybris.platform.customersupportbackoffice.widgets.sessioncontext.SessionContextController
All Implemented Interfaces:
com.hybris.cockpitng.core.WidgetController, com.hybris.cockpitng.dnd.WidgetDragAndDropAware, com.hybris.cockpitng.engine.WidgetInstanceManagerAware, 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:
  • Field Details

    • USER_ANCHOR_COMPONENT_ID

      protected static final String USER_ANCHOR_COMPONENT_ID
      See Also:
    • TICKET_ANCHOR_COMPONENT_ID

      protected static final String TICKET_ANCHOR_COMPONENT_ID
      See Also:
    • ORDER_ANCHOR_COMPONENT_ID

      protected static final String ORDER_ANCHOR_COMPONENT_ID
      See Also:
    • END_SESSION_BUTTON_COMPONENT_ID

      protected static final String END_SESSION_BUTTON_COMPONENT_ID
      See Also:
    • SESSION_CALL_BUTTON_COMPONENT_ID

      protected static final String SESSION_CALL_BUTTON_COMPONENT_ID
      See Also:
    • ASM_LAUNCH_BUTTON_COMPONENT_ID

      protected static final String ASM_LAUNCH_BUTTON_COMPONENT_ID
      See Also:
    • START_CALL_LABEL_KEY

      protected static final String START_CALL_LABEL_KEY
      See Also:
    • END_CALL_LABEL_KEY

      protected static final String END_CALL_LABEL_KEY
      See Also:
    • CURRENT_SESSION_CALL_MODE

      protected static final String CURRENT_SESSION_CALL_MODE
      See Also:
    • IN_CALL_MODE

      protected static final String IN_CALL_MODE
      See Also:
    • FREE_CALL_MODE

      protected static final String FREE_CALL_MODE
      See Also:
    • START_CALL_CSS_CLASS

      protected static final String START_CALL_CSS_CLASS
      See Also:
    • END_CALL_CSS_CLASS

      protected static final String END_CALL_CSS_CLASS
      See Also:
    • ANCHOR_CSS_CLASS

      protected static final String ANCHOR_CSS_CLASS
      See Also:
    • ANCHOR_CSS_COLOR_CLASS

      protected static final String ANCHOR_CSS_COLOR_CLASS
      See Also:
    • dateTimeFormat

      protected final 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
    • baseSiteService

      protected transient BaseSiteService baseSiteService
    • cockpitSessionService

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

    • SessionContextController

      public SessionContextController()
  • Method Details

    • 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(Object msg)
    • customerSelected

      protected String customerSelected(CustomerModel customer, SessionContextModel currentContextSession)
    • currentTicketSelected

      protected String currentTicketSelected(CsTicketModel currentTicket, SessionContextModel currentContextSession)
    • currentOrderSelected

      protected String currentOrderSelected(Object msg, SessionContextModel currentContextSession)
    • endCurrentSession

      public void endCurrentSession()
    • itemCreated

      public void itemCreated(Object msg)
    • applyAnchorValueSelected

      protected void applyAnchorValueSelected(org.zkoss.zul.A anchor, String labelValue)
    • applyAnchorValueUnSelected

      protected void applyAnchorValueUnSelected(org.zkoss.zul.A anchor)
    • 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