Class DefaultPerspectiveInfoService
- java.lang.Object
-
- com.hybris.backoffice.services.impl.DefaultPerspectiveInfoService
-
- All Implemented Interfaces:
PerspectiveInfoService,java.io.Serializable
public class DefaultPerspectiveInfoService extends java.lang.Object implements PerspectiveInfoService, java.io.Serializable
Default implementation of thePerspectiveInfoService.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringSELECTED_ID_ATTRIBUTE_NAMEName of attribute, in Cockpit session service, which stores identifier of selected perspective.
-
Constructor Summary
Constructors Constructor Description DefaultPerspectiveInfoService()DefaultPerspectiveInfoService(CockpitSessionService sessionService)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 no longer used.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSelectedId()Returns identifier of the perspective selected by the user ornullif service does not store that information.CockpitSessionServicegetSessionService()booleanhasSelectedId()Tests whether service stores identifier of the perspective selected by the user.voidsetSelectedId(java.lang.String id)Sets identifier of the perspective selected by the user.
-
-
-
Constructor Detail
-
DefaultPerspectiveInfoService
@Deprecated(since="6.7", forRemoval=true) public DefaultPerspectiveInfoService(CockpitSessionService sessionService)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 no longer used. Please use setter injectionConstructs a new instance.- Parameters:
sessionService- the Cockpit session service (cannot benull).
-
DefaultPerspectiveInfoService
public DefaultPerspectiveInfoService()
-
-
Method Detail
-
hasSelectedId
public boolean hasSelectedId()
Description copied from interface:PerspectiveInfoServiceTests whether service stores identifier of the perspective selected by the user.- Specified by:
hasSelectedIdin interfacePerspectiveInfoService- Returns:
truewhether service stores identifier, otherwisefalse.
-
getSelectedId
public java.lang.String getSelectedId()
Description copied from interface:PerspectiveInfoServiceReturns identifier of the perspective selected by the user ornullif service does not store that information.- Specified by:
getSelectedIdin interfacePerspectiveInfoService- Returns:
- selected perspective identifier or
null. - See Also:
PerspectiveInfoService.hasSelectedId()
-
setSelectedId
public void setSelectedId(java.lang.String id)
Description copied from interface:PerspectiveInfoServiceSets identifier of the perspective selected by the user. This method does not change state for view or model.- Specified by:
setSelectedIdin interfacePerspectiveInfoService- Parameters:
id- the chosen perspective id.
-
getSessionService
public CockpitSessionService getSessionService()
-
-