Package de.hybris.platform.util
Class SystemSetupUtils
- java.lang.Object
-
- de.hybris.platform.util.SystemSetupUtils
-
public final class SystemSetupUtils extends java.lang.ObjectUtility class that allows to check if initialization or update running system is performed currently.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisHAC()Method checks if execution type in current HttpSession is HAC.static booleanisInit(SystemSetupContext context)Method checks if current processType is INIT.static voidsetInitMethodInHttpSession(java.lang.String initMethod)Method adds init method (INIT or UPDATE) and execution type (HAC) information to current HttpSession (if available).
-
-
-
Method Detail
-
setInitMethodInHttpSession
public static void setInitMethodInHttpSession(java.lang.String initMethod)
Method adds init method (INIT or UPDATE) and execution type (HAC) information to current HttpSession (if available).
-
isInit
public static boolean isInit(SystemSetupContext context)
Method checks if current processType is INIT. If setupContext is not provided information is taken from current HttpSession (if session is not available -trueis returned). Otherwise checked is Process assigned to SetupContext.- Returns:
trueif process type is init,falseotherwise
-
isHAC
public static boolean isHAC()
Method checks if execution type in current HttpSession is HAC. If there is no HttpSession returns false.- Returns:
trueif execution type is HAC,falseotherwise (no attribute or no HttpSession)
-
-