Class SystemSetupUtils

java.lang.Object
de.hybris.platform.util.SystemSetupUtils

public final class SystemSetupUtils extends Object
Utility class that allows to check if initialization or update running system is performed currently.
  • Method Details

    • setInitMethodInHttpSession

      public static void setInitMethodInHttpSession(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 - true is returned). Otherwise checked is Process assigned to SetupContext.
      Returns:
      true if process type is init, false otherwise
    • isHAC

      public static boolean isHAC()
      Method checks if execution type in current HttpSession is HAC. If there is no HttpSession returns false.
      Returns:
      true if execution type is HAC, false otherwise (no attribute or no HttpSession)