Class SystemSetupContext
- java.lang.Object
-
- de.hybris.platform.core.initialization.SystemSetupContext
-
public class SystemSetupContext extends java.lang.ObjectThis class represents the context of the current SystemSetup which is used
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFILTERED_PATCHES_FLAG
-
Constructor Summary
Constructors Constructor Description SystemSetupContext(java.util.Map<java.lang.String,java.lang.String[]> parameterMap, SystemSetup.Type type, SystemSetup.Process process, java.lang.String extensionName)SystemSetupContext(java.util.Map<java.lang.String,java.lang.String[]> parameterMap, SystemSetup.Type type, java.lang.String extensionName)Deprecated.since ages - Use SystemSetupContext(final MapparameterMap, final Type type, final Process process, final String extensionName) instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExtensionName()JspContextgetJspContext()returns the Jsp Context if set, otherwise nulljava.lang.StringgetParameter(java.lang.String key)java.util.Map<java.lang.String,java.lang.String[]>getParameterMap()java.lang.String[]getParameters(java.lang.String key)java.util.List<java.lang.String>getPatchHashesToApply(java.lang.String extensionName)SystemSetup.ProcessgetProcess()SystemSetup.TypegetType()booleanisFilteredPatches()voidsetJspContext(JspContext jspc)Use this method to set a user-defined JspContextvoidsetParameterMap(java.util.Map<java.lang.String,java.lang.String[]> parameterMap)If the parameterMap has changed, it can be updated here.
-
-
-
Field Detail
-
FILTERED_PATCHES_FLAG
public static final java.lang.String FILTERED_PATCHES_FLAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SystemSetupContext
@Deprecated public SystemSetupContext(java.util.Map<java.lang.String,java.lang.String[]> parameterMap, SystemSetup.Type type, java.lang.String extensionName)Deprecated.since ages - Use SystemSetupContext(final MapparameterMap, final Type type, final Process process, final String extensionName) instead - Parameters:
parameterMap- normally the HttpServletRequest.getParameterMap(), can be used to set user-defined variablestype- defines theSystemSetup.Typefor the current context
-
SystemSetupContext
public SystemSetupContext(java.util.Map<java.lang.String,java.lang.String[]> parameterMap, SystemSetup.Type type, SystemSetup.Process process, java.lang.String extensionName)
-
-
Method Detail
-
getExtensionName
public java.lang.String getExtensionName()
-
getParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
- Returns:
- parameterMap normally the HttpServletRequest.getParameterMap(), can be used to get user-defined variables
-
setParameterMap
public void setParameterMap(java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
If the parameterMap has changed, it can be updated here. Normally it is set within the constructor of the class.
-
getParameter
public java.lang.String getParameter(java.lang.String key)
- Returns:
- parameter can be used to get user-defined variables
-
getParameters
public java.lang.String[] getParameters(java.lang.String key)
- Returns:
- returns an array of strings filled with the parameters of the parameter map
-
isFilteredPatches
public boolean isFilteredPatches()
-
getPatchHashesToApply
public java.util.List<java.lang.String> getPatchHashesToApply(java.lang.String extensionName)
-
getType
public SystemSetup.Type getType()
- Returns:
- returns the current used
SystemSetup.Type
-
getProcess
public SystemSetup.Process getProcess()
- Returns:
- returns the current used
SystemSetup.Process
-
setJspContext
public void setJspContext(JspContext jspc)
Use this method to set a user-defined JspContext
-
getJspContext
public JspContext getJspContext()
returns the Jsp Context if set, otherwise null
-
-