public interface UISession
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSPECTIVE_ATTRIBUTE |
static final String PERSPECTIVE_ATTRIBUTE
void addSessionListener(UISessionListener listener)
listener - the new listenervoid removeSessionListener(UISessionListener listener)
listener - the listener to removeString getLanguageIso()
getLocale() instead, if you want the locale
before creating your own locale objectString getGlobalDataLanguageIso()
getGlobalDataLocale() instead, if you want the
locale before creating your own locale objectLocale getLocale()
Locale getGlobalDataLocale()
void setGlobalDataLanguageIso(String iso)
UserModel getUser()
void login(UserModel user)
void logout()
void setUser(UserModel currentUser)
currentUser - the new session uservoid setUserByUID(String uid)
uid - UICockpitPerspective getCurrentPerspective()
void setCurrentPerspective(UICockpitPerspective perspective)
getAvailablePerspectives(). Triggers
UISessionListener.perspectiveChanged(UICockpitPerspective, UICockpitPerspective).perspective - the new perspective beanvoid setCurrentPerspective(UICockpitPerspective perspective, Map<String,? extends Object> params)
List<UICockpitPerspective> getAvailablePerspectives()
boolean isPerspectiveAvailable(String uid)
UICockpitPerspective getPerspective(String uid) throws IllegalArgumentException
IllegalArgumentExceptionvoid setSelectedCatalogVersions(List<CatalogVersionModel> catalogVersions)
List<CatalogVersionModel> getSelectedCatalogVersions()
SystemService getSystemService()
TypeService getTypeService()
NewItemService getNewItemService()
ObjectValueHandlerRegistry getValueHandlerRegistry()
LabelService getLabelService()
SearchService getSearchService()
SavedQueryService getSavedQueryService()
UIConfigurationService getUiConfigurationService()
ModelService getModelService()
UndoManager getUndoManager()
void sendGlobalEvent(CockpitEvent event)
event - the event to be processedvoid sendGlobalEvent(CockpitEvent event, boolean immediate)
event - the event to be processedimmediate - force to send event immediately (not "on later")boolean isUsingTestIDs()
boolean isDragOverPerspectivesEnabled()
boolean isCachePerspectivesEnabled()
void setRequestHandler(RequestHandler reqHandler)
RequestHandler getRequestHandler()
void setPushContainers(List<PushCreationContainer> pushContainers)
List<PushCreationContainer> getPushContainers()
UIAccessRightService getUiAccessRightService()
JasperReportsRefresh getJasperReportsRefresh()
Copyright © 2017 SAP SE. All Rights Reserved.