Class SystemSetupCollectorImpl
- java.lang.Object
-
- de.hybris.platform.core.initialization.impl.SystemSetupCollectorImpl
-
- All Implemented Interfaces:
SystemSetupCollector,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SystemSetupCollectorImpl extends java.lang.Object implements SystemSetupCollector, org.springframework.context.ApplicationContextAware
-
-
Constructor Summary
Constructors Constructor Description SystemSetupCollectorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteMethods(SystemSetupContext ctx)Executes methods from the dataPool created before, according to the givenSystemSetupContextjava.util.List<SystemSetupCollectorResult>getApplicablePatches(java.lang.String extensionName)Returns all applicable patches for given extension.java.util.Map<java.lang.String,java.lang.String[]>getDefaultParameterMap(java.lang.String extensionName)java.util.List<SystemSetupParameter>getParameterMap(java.lang.String extensionName)Returns allSystemSetupParameterin a list for the given extension.booleanhasEssentialData(java.lang.String extensionName)booleanhasParameter(java.lang.String extensionName)booleanhasProjectData(java.lang.String extensionName)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetSystemSetupAuditDAO(SystemSetupAuditDAO systemSetupAuditDAO)
-
-
-
Method Detail
-
hasProjectData
public boolean hasProjectData(java.lang.String extensionName)
- Specified by:
hasProjectDatain interfaceSystemSetupCollector- Returns:
- true, if the given extension has annotated methods for the project data creation
-
hasEssentialData
public boolean hasEssentialData(java.lang.String extensionName)
- Specified by:
hasEssentialDatain interfaceSystemSetupCollector- Returns:
- true, if the given extension has annotated methods for the essential data creation
-
hasParameter
public boolean hasParameter(java.lang.String extensionName)
- Specified by:
hasParameterin interfaceSystemSetupCollector- Returns:
- true, if the given extension has annotated methods returning
SystemSetupParameter
-
getParameterMap
public java.util.List<SystemSetupParameter> getParameterMap(java.lang.String extensionName)
Description copied from interface:SystemSetupCollectorReturns allSystemSetupParameterin a list for the given extension.- Specified by:
getParameterMapin interfaceSystemSetupCollector- Returns:
nullif nothing exists.
-
getDefaultParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getDefaultParameterMap(java.lang.String extensionName)
- Specified by:
getDefaultParameterMapin interfaceSystemSetupCollector- Returns:
- returns a default parameter Map with the parameter key as key and the default value as
-
executeMethods
public void executeMethods(SystemSetupContext ctx)
Description copied from interface:SystemSetupCollectorExecutes methods from the dataPool created before, according to the givenSystemSetupContext- Specified by:
executeMethodsin interfaceSystemSetupCollector- Parameters:
ctx-SystemSetupContext
-
getApplicablePatches
public java.util.List<SystemSetupCollectorResult> getApplicablePatches(java.lang.String extensionName)
Description copied from interface:SystemSetupCollectorReturns all applicable patches for given extension.- Specified by:
getApplicablePatchesin interfaceSystemSetupCollector- Returns:
- List of patch data or empty list if there are no pending patches to apply
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setSystemSetupAuditDAO
public void setSystemSetupAuditDAO(SystemSetupAuditDAO systemSetupAuditDAO)
-
-