Class DummyUISession
- java.lang.Object
-
- de.hybris.platform.cockpit.session.DummyUISession
-
-
Field Summary
-
Fields inherited from interface de.hybris.platform.cockpit.session.UISession
PERSPECTIVE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description DummyUISession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSessionListener(UISessionListener listener)Adds a session listener.java.util.List<UICockpitPerspective>getAvailablePerspectives()Returns all available perspectives.UICockpitPerspectivegetCurrentPerspective()Returns the current product cockpit perspective bean.java.lang.StringgetGlobalDataLanguageIso()Returns the isocode of the current data language.java.util.LocalegetGlobalDataLocale()JasperReportsRefreshgetJasperReportsRefresh()Returns service, which handles all page refresh requirements.LabelServicegetLabelService()java.lang.StringgetLanguageIso()Returns the isocode of the current session language.java.util.LocalegetLocale()ModelServicegetModelService()NewItemServicegetNewItemService()UICockpitPerspectivegetPerspective(java.lang.String uid)java.util.List<PushCreationContainer>getPushContainers()RequestHandlergetRequestHandler()SavedQueryServicegetSavedQueryService()SearchServicegetSearchService()java.util.List<CatalogVersionModel>getSelectedCatalogVersions()SystemServicegetSystemService()TypeServicegetTypeService()UIAccessRightServicegetUiAccessRightService()UIConfigurationServicegetUiConfigurationService()UndoManagergetUndoManager()UserModelgetUser()Returns the current ui session user.ObjectValueHandlerRegistrygetValueHandlerRegistry()booleanisCachePerspectivesEnabled()booleanisDragOverPerspectivesEnabled()booleanisPerspectiveAvailable(java.lang.String uid)booleanisUsingTestIDs()voidlogin(UserModel user)Assigns specified user to this session.voidlogout()voidremoveSessionListener(UISessionListener listener)Removes session listener.voidsendGlobalEvent(CockpitEvent event)Processes given event.voidsendGlobalEvent(CockpitEvent event, boolean immediate)Processes given event.voidsetCurrentPerspective(UICockpitPerspective perspective)Changes the current product perspective bean.voidsetCurrentPerspective(UICockpitPerspective perspective, java.util.Map<java.lang.String,? extends java.lang.Object> params)voidsetGlobalDataLanguageIso(java.lang.String iso)voidsetPushContainers(java.util.List<PushCreationContainer> pushContainers)voidsetRequestHandler(RequestHandler reqHandler)voidsetSelectedCatalogVersions(java.util.List<CatalogVersionModel> catalogVersions)booleansetSessionAttribute(java.lang.String key, java.lang.Object value)voidsetUser(UserModel currentUser)Changes the current session user.voidsetUserByUID(java.lang.String uid)Changes the current session user.
-
-
-
Method Detail
-
addSessionListener
public void addSessionListener(UISessionListener listener)
Description copied from interface:UISessionAdds a session listener.- Specified by:
addSessionListenerin interfaceUISession- Parameters:
listener- the new listener
-
removeSessionListener
public void removeSessionListener(UISessionListener listener)
Description copied from interface:UISessionRemoves session listener.- Specified by:
removeSessionListenerin interfaceUISession- Parameters:
listener- the listener to remove
-
getLanguageIso
public java.lang.String getLanguageIso()
Description copied from interface:UISessionReturns the isocode of the current session language. UseUISession.getLocale()instead, if you want the locale before creating your own locale object- Specified by:
getLanguageIsoin interfaceUISession- Returns:
- current language iso code.
-
getGlobalDataLanguageIso
public java.lang.String getGlobalDataLanguageIso()
Description copied from interface:UISessionReturns the isocode of the current data language. UseUISession.getGlobalDataLocale()instead, if you want the locale before creating your own locale object- Specified by:
getGlobalDataLanguageIsoin interfaceUISession- Returns:
- current data language iso code.
-
getLocale
public java.util.Locale getLocale()
-
getGlobalDataLocale
public java.util.Locale getGlobalDataLocale()
- Specified by:
getGlobalDataLocalein interfaceUISession- Returns:
- the locale for the currently selected data language
-
setGlobalDataLanguageIso
public void setGlobalDataLanguageIso(java.lang.String iso)
- Specified by:
setGlobalDataLanguageIsoin interfaceUISession
-
getUser
public UserModel getUser()
Description copied from interface:UISessionReturns the current ui session user.
-
login
public void login(UserModel user)
Description copied from interface:UISessionAssigns specified user to this session.
-
setUser
public void setUser(UserModel currentUser)
Description copied from interface:UISessionChanges the current session user.
-
setUserByUID
public void setUserByUID(java.lang.String uid)
Description copied from interface:UISessionChanges the current session user. This method accepts a user id and fetches the user object automatically.- Specified by:
setUserByUIDin interfaceUISession
-
getCurrentPerspective
public UICockpitPerspective getCurrentPerspective()
Description copied from interface:UISessionReturns the current product cockpit perspective bean.- Specified by:
getCurrentPerspectivein interfaceUISession
-
setCurrentPerspective
public void setCurrentPerspective(UICockpitPerspective perspective)
Description copied from interface:UISessionChanges the current product perspective bean. Accepts one out ofUISession.getAvailablePerspectives(). TriggersUISessionListener.perspectiveChanged(UICockpitPerspective, UICockpitPerspective).- Specified by:
setCurrentPerspectivein interfaceUISession- Parameters:
perspective- the new perspective bean
-
setCurrentPerspective
public void setCurrentPerspective(UICockpitPerspective perspective, java.util.Map<java.lang.String,? extends java.lang.Object> params)
- Specified by:
setCurrentPerspectivein interfaceUISession
-
getAvailablePerspectives
public java.util.List<UICockpitPerspective> getAvailablePerspectives()
Description copied from interface:UISessionReturns all available perspectives.- Specified by:
getAvailablePerspectivesin interfaceUISession
-
isPerspectiveAvailable
public boolean isPerspectiveAvailable(java.lang.String uid)
- Specified by:
isPerspectiveAvailablein interfaceUISession
-
getPerspective
public UICockpitPerspective getPerspective(java.lang.String uid) throws java.lang.IllegalArgumentException
- Specified by:
getPerspectivein interfaceUISession- Throws:
java.lang.IllegalArgumentException
-
setSelectedCatalogVersions
public void setSelectedCatalogVersions(java.util.List<CatalogVersionModel> catalogVersions)
- Specified by:
setSelectedCatalogVersionsin interfaceUISession
-
getSelectedCatalogVersions
public java.util.List<CatalogVersionModel> getSelectedCatalogVersions()
- Specified by:
getSelectedCatalogVersionsin interfaceUISession
-
getSystemService
public SystemService getSystemService()
- Specified by:
getSystemServicein interfaceUISession
-
getTypeService
public TypeService getTypeService()
- Specified by:
getTypeServicein interfaceUISession
-
getNewItemService
public NewItemService getNewItemService()
- Specified by:
getNewItemServicein interfaceUISession
-
getValueHandlerRegistry
public ObjectValueHandlerRegistry getValueHandlerRegistry()
- Specified by:
getValueHandlerRegistryin interfaceUISession
-
getLabelService
public LabelService getLabelService()
- Specified by:
getLabelServicein interfaceUISession
-
getSearchService
public SearchService getSearchService()
- Specified by:
getSearchServicein interfaceUISession
-
getSavedQueryService
public SavedQueryService getSavedQueryService()
- Specified by:
getSavedQueryServicein interfaceUISession
-
getUiConfigurationService
public UIConfigurationService getUiConfigurationService()
- Specified by:
getUiConfigurationServicein interfaceUISession
-
getModelService
public ModelService getModelService()
- Specified by:
getModelServicein interfaceUISession
-
getUndoManager
public UndoManager getUndoManager()
- Specified by:
getUndoManagerin interfaceUISession
-
sendGlobalEvent
public void sendGlobalEvent(CockpitEvent event)
Description copied from interface:UISessionProcesses given event. It will be dispatched to the current perspective.- Specified by:
sendGlobalEventin interfaceUISession- Parameters:
event- the event to be processed
-
sendGlobalEvent
public void sendGlobalEvent(CockpitEvent event, boolean immediate)
Description copied from interface:UISessionProcesses given event. It will be dispatched to the current perspective.- Specified by:
sendGlobalEventin interfaceUISession- Parameters:
event- the event to be processedimmediate- force to send event immediately (not "on later")
-
isUsingTestIDs
public boolean isUsingTestIDs()
- Specified by:
isUsingTestIDsin interfaceUISession
-
isDragOverPerspectivesEnabled
public boolean isDragOverPerspectivesEnabled()
- Specified by:
isDragOverPerspectivesEnabledin interfaceUISession
-
isCachePerspectivesEnabled
public boolean isCachePerspectivesEnabled()
- Specified by:
isCachePerspectivesEnabledin interfaceUISession
-
setRequestHandler
public void setRequestHandler(RequestHandler reqHandler)
- Specified by:
setRequestHandlerin interfaceUISession
-
getRequestHandler
public RequestHandler getRequestHandler()
- Specified by:
getRequestHandlerin interfaceUISession
-
setPushContainers
public void setPushContainers(java.util.List<PushCreationContainer> pushContainers)
- Specified by:
setPushContainersin interfaceUISession
-
getPushContainers
public java.util.List<PushCreationContainer> getPushContainers()
- Specified by:
getPushContainersin interfaceUISession
-
setSessionAttribute
public boolean setSessionAttribute(java.lang.String key, java.lang.Object value)- Specified by:
setSessionAttributein interfaceUISession
-
getUiAccessRightService
public UIAccessRightService getUiAccessRightService()
- Specified by:
getUiAccessRightServicein interfaceUISession
-
getJasperReportsRefresh
public JasperReportsRefresh getJasperReportsRefresh()
Description copied from interface:UISessionReturns service, which handles all page refresh requirements. Currently used for Jasper reports only- Specified by:
getJasperReportsRefreshin interfaceUISession
-
-