Package de.hybris.platform.core
Class Initialization
- java.lang.Object
-
- de.hybris.platform.core.Initialization
-
public class Initialization extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXT_PROJECT_DATA_SUFFIXstatic java.lang.StringLOG_HEADERstatic java.lang.StringSYSTEM_INITIALIZATION_OP_NAMEstatic java.lang.StringSYSTEM_UPDATE_OP_NAME
-
Constructor Summary
Constructors Constructor Description Initialization()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static voidchangeSystemInitUpdateTimestamp()static voidcreateAlternativeTestDataSources()static voidcreateEssentialData(JspContext jspc)Deprecated.since agesprotected static voidcreateJUnitTenant()Deprecated.since 5.0static voidcreateProjectData(JspContext jspc, boolean forceAll)Deprecated.since agesstatic booleandoInitialize(JspContext jspc)static booleanforceClean(java.util.Map params)static java.util.Map<java.lang.String,java.util.List<SystemSetupCollectorResult>>getAllPatchesForExtensions()static java.util.List<Extension>getCreators()static SystemSetupCollectorgetSystemSetupCollector()static booleanhasProjectData(Extension creator)Deprecated.since agesstatic booleanhasRunningMasterTenant()static voidinitialize(java.util.Map params, Licence licence)static booleaninitializeTestSystem()used from ant batchstatic booleanisAnyTenantInitializingGlobally()static booleanisCurrentTenantInitializing()static booleanisSystemLocked()Fetch the config for *each* request, to be able to edit it in runtime.static booleanisTenantInitializing(Tenant tenant)static booleanisTenantInitializingGlobally(Tenant tenant)static booleanisTenantInitializingLocally(Tenant tenant)static booleanisUpdateParameter(java.util.Map params)static voidmain(java.lang.String[] args)protected static voidputDataSourceParams(java.util.Map params, java.lang.String dsId, java.lang.String driver, boolean slave)protected static voidresetClusterIslandPK()static voidupdateSystem()Deprecated.since agesstatic booleanupdateTestSystem()used from ant batch
-
-
-
Field Detail
-
LOG_HEADER
public static final java.lang.String LOG_HEADER
- See Also:
- Constant Field Values
-
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
-
-
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.Exceptionused 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.Exceptionused 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
-
createJUnitTenant
@Deprecated protected static void createJUnitTenant() throws ConsistencyCheckExceptionDeprecated.since 5.0- Throws:
ConsistencyCheckException
-
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.ExceptionDeprecated.since agesNot thread safe update system method usedoInitialize(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 agesShould 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 agesShould 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 namelicence- 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)
-
getSystemSetupCollector
public static SystemSetupCollector getSystemSetupCollector()
-
hasProjectData
@Deprecated public static boolean hasProjectData(Extension creator)
Deprecated.since agesPlease useSystemSetupCollector.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
-
-