Class SessionContextController
- 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,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.DefaultWidgetControllercontroller class for handling Session Context widget interactions- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringANCHOR_CSS_CLASSprotected static java.lang.StringASM_LAUNCH_BUTTON_COMPONENT_IDprotected org.zkoss.zul.ButtonasmBtnprotected org.zkoss.zul.ComboboxavailableSitesprotected BaseSiteServicebaseSiteServiceprotected org.zkoss.zul.ButtoncallContextBtnprotected com.hybris.cockpitng.util.CockpitSessionServicecockpitSessionServiceprotected static java.lang.StringCURRENT_SESSION_CALL_MODEprotected org.zkoss.zul.LabelcustomerPlaceholderprotected java.text.SimpleDateFormatdateTimeFormatprotected static java.lang.StringEND_CALL_CSS_CLASSprotected static java.lang.StringEND_CALL_LABEL_KEYprotected static java.lang.StringEND_SESSION_BUTTON_COMPONENT_IDprotected org.zkoss.zul.ButtonendSessionBtnprotected static java.lang.StringFREE_CALL_MODEprotected static java.lang.StringIN_CALL_MODEprotected static java.lang.StringORDER_ANCHOR_COMPONENT_IDprotected org.zkoss.zul.AorderAnchorprotected org.zkoss.zul.ImageorderImageprotected org.zkoss.zul.LabelorderPlaceholderprotected static java.lang.StringSESSION_CALL_BUTTON_COMPONENT_IDprotected org.zkoss.zul.DivsessionTimerDivprotected static java.lang.StringSTART_CALL_CSS_CLASSprotected static java.lang.StringSTART_CALL_LABEL_KEYprotected com.hybris.cockpitng.components.StopwatchstopWatchprotected static java.lang.StringTICKET_ANCHOR_COMPONENT_IDprotected org.zkoss.zul.AticketAnchorprotected org.zkoss.zul.ImageticketImageprotected org.zkoss.zul.LabelticketPlaceholderprotected static java.lang.StringUSER_ANCHOR_COMPONENT_IDprotected org.zkoss.zul.AuserAnchorprotected org.zkoss.zul.ImageuserImage
-
Constructor Summary
Constructors Constructor Description SessionContextController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcurrentOrderSelected(java.lang.Object msg, SessionContextModel currentContextSession)protected java.lang.StringcurrentTicketSelected(CsTicketModel currentTicket, SessionContextModel currentContextSession)protected java.lang.StringcustomerSelected(CustomerModel customer, SessionContextModel currentContextSession)voidendCurrentSession()protected org.zkoss.zul.ListModelList<BaseSiteModel>getAvailableSites()return current available sites in the systemvoidgetOrderDetails()voidgetTicketDetails()voidgetUserDetails()voidhandleSessionCall()protected voidhandleSessionCallMode()protected voidhandleSiteUpdate(BaseSiteModel baseSiteModel)protected voidhandleUIComponents()show/hide UI componentsvoidinitialize(org.zkoss.zk.ui.Component comp)voiditemCreated(java.lang.Object msg)voiditemSelected(java.lang.Object msg)voidlaunchASM()protected voidresetToDefault()protected voidrestartTimer()booleanshowASMButton()-
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
-
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
-
IN_CALL_MODE
protected static final java.lang.String IN_CALL_MODE
- See Also:
- Constant Field Values
-
FREE_CALL_MODE
protected static final java.lang.String FREE_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
-
baseSiteService
protected transient BaseSiteService baseSiteService
-
cockpitSessionService
protected transient com.hybris.cockpitng.util.CockpitSessionService cockpitSessionService
-
-
Method Detail
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp)
- Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
getUserDetails
public void getUserDetails()
-
getTicketDetails
public void getTicketDetails()
-
getOrderDetails
public void getOrderDetails()
-
itemSelected
public void itemSelected(java.lang.Object msg)
-
customerSelected
protected java.lang.String customerSelected(CustomerModel customer, SessionContextModel currentContextSession)
-
currentTicketSelected
protected java.lang.String currentTicketSelected(CsTicketModel currentTicket, SessionContextModel currentContextSession)
-
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
-
-