Class Initialization

java.lang.Object
de.hybris.platform.core.Initialization

public class Initialization extends Object
  • Field Details

  • Constructor Details

    • Initialization

      public Initialization()
  • Method Details

    • 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 Exception
      used from ant batch
      Returns:
      true when initialization can be performed, otherwise returns false.
      Throws:
      Exception
    • updateTestSystem

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

      public static boolean isUpdateParameter(Map params)
    • doInitialize

      public static boolean doInitialize(JspContext jspc) throws Exception
      Throws:
      Exception
    • createJUnitTenant

      @Deprecated(since="5.0", forRemoval=true) protected static void createJUnitTenant() throws ConsistencyCheckException
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 5.0
      Throws:
      ConsistencyCheckException
    • createAlternativeTestDataSources

      public static void createAlternativeTestDataSources()
    • putDataSourceParams

      protected static void putDataSourceParams(Map params, String dsId, String driver, boolean slave)
    • updateSystem

      @Deprecated(since="ages", forRemoval=true) public static void updateSystem() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages
      Not thread safe update system method use doInitialize(JspContext) instead.
      Throws:
      Exception
    • getAllPatchesForExtensions

      public static Map<String,List<SystemSetupCollectorResult>> getAllPatchesForExtensions()
    • createEssentialData

      @Deprecated(since="ages", forRemoval=true) public static void createEssentialData(JspContext jspc) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages
      Should not be called directly only within initialization or update
      Throws:
      Exception
    • createProjectData

      @Deprecated(since="ages", forRemoval=true) public static void createProjectData(JspContext jspc, boolean forceAll) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages
      Should not be called directly only within initialization or update
      Throws:
      Exception
    • initialize

      public static void initialize(Map params, Licence licence) throws 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:
      Exception
    • resetClusterIslandPK

      protected static void resetClusterIslandPK()
    • changeSystemInitUpdateTimestamp

      protected static void changeSystemInitUpdateTimestamp()
    • forceClean

      public static boolean forceClean(Map params)
    • getSystemSetupCollector

      public static SystemSetupCollector getSystemSetupCollector()
    • hasProjectData

      @Deprecated(since="ages", forRemoval=true) public static boolean hasProjectData(Extension creator)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages
      Please use SystemSetupCollector.hasProjectData() instead!
    • getCreators

      public static List<Extension> getCreators()
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception