Class Initialization


  • public class Initialization
    extends java.lang.Object
    • Field Detail

      • SYSTEM_INITIALIZATION_OP_NAME

        public static final java.lang.String SYSTEM_INITIALIZATION_OP_NAME
        See Also:
        Constant Field Values
      • SYSTEM_UPDATE_OP_NAME

        public static final java.lang.String SYSTEM_UPDATE_OP_NAME
        See Also:
        Constant Field Values
      • EXT_PROJECT_DATA_SUFFIX

        public static final java.lang.String EXT_PROJECT_DATA_SUFFIX
        See Also:
        Constant Field Values
    • Constructor Detail

      • Initialization

        public Initialization()
    • Method Detail

      • isSystemLocked

        public static boolean isSystemLocked()
        Fetch the config for *each* request, to be able to edit it in runtime.
      • isCurrentTenantInitializing

        public static boolean isCurrentTenantInitializing()
      • isTenantInitializing

        public static boolean isTenantInitializing​(Tenant tenant)
      • isTenantInitializingLocally

        public static boolean isTenantInitializingLocally​(Tenant tenant)
      • isTenantInitializingGlobally

        public static boolean isTenantInitializingGlobally​(Tenant tenant)
      • isAnyTenantInitializingGlobally

        public static boolean isAnyTenantInitializingGlobally()
      • hasRunningMasterTenant

        public static boolean hasRunningMasterTenant()
      • initializeTestSystem

        public static boolean initializeTestSystem()
                                            throws java.lang.Exception
        used from ant batch
        Returns:
        true when initialization can be performed, otherwise returns false.
        Throws:
        java.lang.Exception
      • updateTestSystem

        public static boolean updateTestSystem()
                                        throws java.lang.Exception
        used from ant batch
        Returns:
        true when update can be performed, otherwise returns false.
        Throws:
        java.lang.Exception
      • isUpdateParameter

        public static boolean isUpdateParameter​(java.util.Map params)
      • doInitialize

        public static boolean doInitialize​(JspContext jspc)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createAlternativeTestDataSources

        public static void createAlternativeTestDataSources()
      • putDataSourceParams

        protected static void putDataSourceParams​(java.util.Map params,
                                                  java.lang.String dsId,
                                                  java.lang.String driver,
                                                  boolean slave)
      • updateSystem

        @Deprecated
        public static void updateSystem()
                                 throws java.lang.Exception
        Deprecated.
        since ages
        Not thread safe update system method use doInitialize(JspContext) instead.
        Throws:
        java.lang.Exception
      • getAllPatchesForExtensions

        public static java.util.Map<java.lang.String,​java.util.List<SystemSetupCollectorResult>> getAllPatchesForExtensions()
      • createEssentialData

        @Deprecated
        public static void createEssentialData​(JspContext jspc)
                                        throws java.lang.Exception
        Deprecated.
        since ages
        Should not be called directly only within initialization or update
        Throws:
        java.lang.Exception
      • createProjectData

        @Deprecated
        public static void createProjectData​(JspContext jspc,
                                             boolean forceAll)
                                      throws java.lang.Exception
        Deprecated.
        since ages
        Should not be called directly only within initialization or update
        Throws:
        java.lang.Exception
      • initialize

        public static void initialize​(java.util.Map params,
                                      Licence licence)
                               throws java.lang.Exception
        Parameters:
        params - map of following parameters:
        metainformation.systempk - system primary key
        metainformation.systemname - system name
        licence - optional: the licence for the new system, if null the default licence will be set
        Throws:
        java.lang.Exception
      • resetClusterIslandPK

        protected static void resetClusterIslandPK()
      • changeSystemInitUpdateTimestamp

        protected static void changeSystemInitUpdateTimestamp()
      • forceClean

        public static boolean forceClean​(java.util.Map params)
      • hasProjectData

        @Deprecated
        public static boolean hasProjectData​(Extension creator)
        Deprecated.
        since ages
        Please use SystemSetupCollector.hasProjectData() instead!
      • getCreators

        public static java.util.List<Extension> getCreators()
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception