Class SystemSetupParameter
- java.lang.Object
-
- de.hybris.platform.core.initialization.SystemSetupParameter
-
public class SystemSetupParameter extends java.lang.ObjectThis class represents a single parameter used by theSystemSetupAll parameters will be displayed in the administration console (hac) on the initialization/update page. If multiselect is true, it will be shown as a multiselect window, otherwise as a normal html select box. During the init/update process called out of ant, all parameters will be filled with the default parameter.
-
-
Constructor Summary
Constructors Constructor Description SystemSetupParameter(java.lang.String key)This key will be available again in the ParameterMap after the request was sent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(java.lang.String value)Adds a value to the parameter.voidaddValue(java.lang.String value, boolean selected)Adds a value to the parameter with the possibility to set the selected status.voidaddValues(java.lang.String[] values)Adds a whole string array as values to the parameter.java.lang.String[]getDefaults()java.lang.StringgetKey()java.lang.StringgetLabel()java.util.Map<java.lang.String,java.lang.Boolean>getValues()booleanisDefault(java.lang.String parameter)booleanisMultiSelect()voidsetLabel(java.lang.String label)This label will be displayed in the administration console (hac) before the select box.voidsetMultiSelect(boolean multiSelect)voidsetSelected(java.lang.String value)Tags the value to be selected (default value).
-
-
-
Method Detail
-
addValue
public void addValue(java.lang.String value, boolean selected)Adds a value to the parameter with the possibility to set the selected status.
-
setSelected
public void setSelected(java.lang.String value)
Tags the value to be selected (default value). In the normal select box (multiselect = false) the last selected item will be selected as default.
-
addValue
public void addValue(java.lang.String value)
Adds a value to the parameter.
-
addValues
public void addValues(java.lang.String[] values)
Adds a whole string array as values to the parameter.
-
getValues
public java.util.Map<java.lang.String,java.lang.Boolean> getValues()
- Returns:
- Returns a values map with the name as key and the selected status as value.
-
getKey
public java.lang.String getKey()
-
isDefault
public boolean isDefault(java.lang.String parameter)
- Returns:
- Returns
trueif the parameter is a default parameter.
-
getDefaults
public java.lang.String[] getDefaults()
- Returns:
- Returns all default parameter in a string array.
-
setLabel
public void setLabel(java.lang.String label)
This label will be displayed in the administration console (hac) before the select box. If empty, the key will be used.
-
getLabel
public java.lang.String getLabel()
- Returns:
- Returns the label of the parameter. If the label is empty, the key will be returned.
-
setMultiSelect
public void setMultiSelect(boolean multiSelect)
- Parameters:
multiSelect- the multiSelect to set
-
isMultiSelect
public boolean isMultiSelect()
- Returns:
- the multiSelect
-
-