Class SystemSetupUtils


  • public final class SystemSetupUtils
    extends java.lang.Object
    Utility 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 boolean isHAC()
      Method checks if execution type in current HttpSession is HAC.
      static boolean isInit​(SystemSetupContext context)
      Method checks if current processType is INIT.
      static void setInitMethodInHttpSession​(java.lang.String initMethod)
      Method adds init method (INIT or UPDATE) and execution type (HAC) information to current HttpSession (if available).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 - 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)