Package de.hybris.platform.util
Class SystemSetupUtils
java.lang.Object
de.hybris.platform.util.SystemSetupUtils
Utility class that allows to check if initialization or update running system is performed currently.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisHAC()Method checks if execution type in current HttpSession is HAC.static booleanisInit(SystemSetupContext context) Method checks if current processType is INIT.static voidsetInitMethodInHttpSession(String initMethod) Method adds init method (INIT or UPDATE) and execution type (HAC) information to current HttpSession (if available).
-
Method Details
-
setInitMethodInHttpSession
Method adds init method (INIT or UPDATE) and execution type (HAC) information to current HttpSession (if available). -
isInit
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)
-