Package com.hybris.cockpitng.admin
Class ImpersonationPreviewHelper
- java.lang.Object
-
- com.hybris.cockpitng.admin.ImpersonationPreviewHelper
-
public class ImpersonationPreviewHelper extends java.lang.ObjectChecks is the "Impersonated role preview mode" is enabled for the current session. It allows to set/unset the flag for the user session.
-
-
Constructor Summary
Constructors Constructor Description ImpersonationPreviewHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableImpersonatedPreview()Disables "Impersonated role preview mode".voidenableImpersonatedPreview()Enables "Impersonated role preview mode".booleanisImpersonatedPreviewEnabled()Checks is the "Impersonated role preview mode" is enabled for the current session.voidsetCockpitSessionService(CockpitSessionService cockpitSessionService)voidsetImpersonatedPreviewFlag(boolean value)
-
-
-
Method Detail
-
isImpersonatedPreviewEnabled
public boolean isImpersonatedPreviewEnabled()
Checks is the "Impersonated role preview mode" is enabled for the current session.- Returns:
- boolean
-
enableImpersonatedPreview
public void enableImpersonatedPreview()
Enables "Impersonated role preview mode".
-
disableImpersonatedPreview
public void disableImpersonatedPreview()
Disables "Impersonated role preview mode".
-
setImpersonatedPreviewFlag
public void setImpersonatedPreviewFlag(boolean value)
- Parameters:
value- boolean if the role preview is enabled or not
-
setCockpitSessionService
public void setCockpitSessionService(CockpitSessionService cockpitSessionService)
- Parameters:
cockpitSessionService- the cockpitSessionService to set
-
-