Class DummyUISession
java.lang.Object
de.hybris.platform.cockpit.session.DummyUISession
- All Implemented Interfaces:
UISession
-
Field Summary
Fields inherited from interface de.hybris.platform.cockpit.session.UISession
PERSPECTIVE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSessionListener(UISessionListener listener) Adds a session listener.Returns all available perspectives.Returns the current product cockpit perspective bean.Returns the isocode of the current data language.Returns service, which handles all page refresh requirements.Returns the isocode of the current session language.getPerspective(String uid) getUser()Returns the current ui session user.booleanbooleanbooleanbooleanvoidAssigns 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, Map<String, ? extends Object> params) voidvoidsetPushContainers(List<PushCreationContainer> pushContainers) voidsetRequestHandler(RequestHandler reqHandler) voidsetSelectedCatalogVersions(List<CatalogVersionModel> catalogVersions) booleansetSessionAttribute(String key, Object value) voidChanges the current session user.voidsetUserByUID(String uid) Changes the current session user.
-
Constructor Details
-
DummyUISession
public DummyUISession()
-
-
Method Details
-
addSessionListener
Description copied from interface:UISessionAdds a session listener.- Specified by:
addSessionListenerin interfaceUISession- Parameters:
listener- the new listener
-
removeSessionListener
Description copied from interface:UISessionRemoves session listener.- Specified by:
removeSessionListenerin interfaceUISession- Parameters:
listener- the listener to remove
-
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
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
-
getGlobalDataLocale
- Specified by:
getGlobalDataLocalein interfaceUISession- Returns:
- the locale for the currently selected data language
-
setGlobalDataLanguageIso
- Specified by:
setGlobalDataLanguageIsoin interfaceUISession
-
getUser
Description copied from interface:UISessionReturns the current ui session user. -
login
Description copied from interface:UISessionAssigns specified user to this session. -
logout
public void logout() -
setUser
Description copied from interface:UISessionChanges the current session user. -
setUserByUID
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
Description copied from interface:UISessionReturns the current product cockpit perspective bean.- Specified by:
getCurrentPerspectivein interfaceUISession
-
setCurrentPerspective
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, Map<String, ? extends Object> params) - Specified by:
setCurrentPerspectivein interfaceUISession
-
getAvailablePerspectives
Description copied from interface:UISessionReturns all available perspectives.- Specified by:
getAvailablePerspectivesin interfaceUISession
-
isPerspectiveAvailable
- Specified by:
isPerspectiveAvailablein interfaceUISession
-
getPerspective
- Specified by:
getPerspectivein interfaceUISession- Throws:
IllegalArgumentException
-
setSelectedCatalogVersions
- Specified by:
setSelectedCatalogVersionsin interfaceUISession
-
getSelectedCatalogVersions
- Specified by:
getSelectedCatalogVersionsin interfaceUISession
-
getSystemService
- Specified by:
getSystemServicein interfaceUISession
-
getTypeService
- Specified by:
getTypeServicein interfaceUISession
-
getNewItemService
- Specified by:
getNewItemServicein interfaceUISession
-
getValueHandlerRegistry
- Specified by:
getValueHandlerRegistryin interfaceUISession
-
getLabelService
- Specified by:
getLabelServicein interfaceUISession
-
getSearchService
- Specified by:
getSearchServicein interfaceUISession
-
getSavedQueryService
- Specified by:
getSavedQueryServicein interfaceUISession
-
getUiConfigurationService
- Specified by:
getUiConfigurationServicein interfaceUISession
-
getModelService
- Specified by:
getModelServicein interfaceUISession
-
getUndoManager
- Specified by:
getUndoManagerin interfaceUISession
-
sendGlobalEvent
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
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
- Specified by:
setRequestHandlerin interfaceUISession
-
getRequestHandler
- Specified by:
getRequestHandlerin interfaceUISession
-
setPushContainers
- Specified by:
setPushContainersin interfaceUISession
-
getPushContainers
- Specified by:
getPushContainersin interfaceUISession
-
setSessionAttribute
- Specified by:
setSessionAttributein interfaceUISession
-
getUiAccessRightService
- Specified by:
getUiAccessRightServicein interfaceUISession
-
getJasperReportsRefresh
Description copied from interface:UISessionReturns service, which handles all page refresh requirements. Currently used for Jasper reports only- Specified by:
getJasperReportsRefreshin interfaceUISession
-