public class DefaultPerspectiveInfoService extends Object implements PerspectiveInfoService, Serializable
PerspectiveInfoService.| Modifier and Type | Field and Description |
|---|---|
protected static String |
SELECTED_ID_ATTRIBUTE_NAME
Name of attribute, in Cockpit session service, which stores identifier of selected perspective.
|
| Constructor and Description |
|---|
DefaultPerspectiveInfoService() |
DefaultPerspectiveInfoService(CockpitSessionService sessionService)
Deprecated.
since 6.7 no longer used. Please use setter injection
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSelectedId()
Returns identifier of the perspective selected by the user or
null if service does not store that
information. |
CockpitSessionService |
getSessionService() |
boolean |
hasSelectedId()
Tests whether service stores identifier of the perspective selected by the user.
|
void |
setSelectedId(String id)
Sets identifier of the perspective selected by the user.
|
protected static final String SELECTED_ID_ATTRIBUTE_NAME
@Deprecated public DefaultPerspectiveInfoService(CockpitSessionService sessionService)
sessionService - the Cockpit session service (cannot be null).public DefaultPerspectiveInfoService()
public boolean hasSelectedId()
PerspectiveInfoServicehasSelectedId in interface PerspectiveInfoServicetrue whether service stores identifier, otherwise false.public String getSelectedId()
PerspectiveInfoServicenull if service does not store that
information.getSelectedId in interface PerspectiveInfoServicenull.PerspectiveInfoService.hasSelectedId()public void setSelectedId(String id)
PerspectiveInfoServicesetSelectedId in interface PerspectiveInfoServiceid - the chosen perspective id.public CockpitSessionService getSessionService()
Copyright © 2018. All rights reserved.