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.String
EXT_PROJECT_DATA_SUFFIX
static java.lang.String
LOG_HEADER
static java.lang.String
SYSTEM_INITIALIZATION_OP_NAME
static java.lang.String
SYSTEM_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 void
changeSystemInitUpdateTimestamp()
static void
createAlternativeTestDataSources()
static void
createEssentialData(JspContext jspc)
Deprecated.since agesprotected static void
createJUnitTenant()
Deprecated.since 5.0static void
createProjectData(JspContext jspc, boolean forceAll)
Deprecated.since agesstatic boolean
doInitialize(JspContext jspc)
static boolean
forceClean(java.util.Map params)
static java.util.Map<java.lang.String,java.util.List<SystemSetupCollectorResult>>
getAllPatchesForExtensions()
static java.util.List<Extension>
getCreators()
static SystemSetupCollector
getSystemSetupCollector()
static boolean
hasProjectData(Extension creator)
Deprecated.since agesstatic boolean
hasRunningMasterTenant()
static void
initialize(java.util.Map params, Licence licence)
static boolean
initializeTestSystem()
used from ant batchstatic boolean
isAnyTenantInitializingGlobally()
static boolean
isCurrentTenantInitializing()
static boolean
isSystemLocked()
Fetch the config for *each* request, to be able to edit it in runtime.static boolean
isTenantInitializing(Tenant tenant)
static boolean
isTenantInitializingGlobally(Tenant tenant)
static boolean
isTenantInitializingLocally(Tenant tenant)
static boolean
isUpdateParameter(java.util.Map params)
static void
main(java.lang.String[] args)
protected static void
putDataSourceParams(java.util.Map params, java.lang.String dsId, java.lang.String driver, boolean slave)
protected static void
resetClusterIslandPK()
static void
updateSystem()
Deprecated.since agesstatic boolean
updateTestSystem()
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.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
-
createJUnitTenant
@Deprecated protected static void createJUnitTenant() throws ConsistencyCheckException
Deprecated.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.Exception
Deprecated.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
-
-