Class SubscriptionServicesSystemSetup
- java.lang.Object
-
- de.hybris.platform.commerceservices.setup.CommerceServicesSystemSetup
-
- de.hybris.platform.subscriptionservices.setup.SubscriptionServicesSystemSetup
-
@SystemSetup(extension="subscriptionservices") public class SubscriptionServicesSystemSetup extends CommerceServicesSystemSetup
This class provides hooks into the system's initialization and update processes.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringBOOLEAN_FALSEprotected static java.lang.StringBOOLEAN_TRUE
-
Constructor Summary
Constructors Constructor Description SubscriptionServicesSystemSetup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SystemSetupParametercreateBooleanSystemSetupParameter(java.lang.String key, java.lang.String label, boolean defaultValue)Helper method for creating a Boolean setup parameter.voidcreateSampleData(SystemSetupContext context)protected booleangetBooleanSystemSetupParameter(SystemSetupContext context, java.lang.String key)Helper method for checking setting of a Boolean setup parameter.protected booleangetDefaultValueForBooleanSystemSetupParameter(java.lang.String key)Helper method for getting default value of a Boolean setup parameter.java.util.List<SystemSetupParameter>getInitializationOptions()Generates the Dropdown and Multi-select boxes for the project data import.-
Methods inherited from class de.hybris.platform.commerceservices.setup.CommerceServicesSystemSetup
createEssentialData, getCommonI18NService, getFileEncoding, getImpexExt, getImportService, importImpexFile, importImpexFile, setCommonI18NService, setFileEncoding, setFlexibleSearchService, setImpexExt, setImportService, setModelService, updateSolrIndexedPropertyVisibleFlag
-
-
-
-
Field Detail
-
BOOLEAN_TRUE
protected static final java.lang.String BOOLEAN_TRUE
- See Also:
- Constant Field Values
-
BOOLEAN_FALSE
protected static final java.lang.String BOOLEAN_FALSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInitializationOptions
@SystemSetupParameterMethod public java.util.List<SystemSetupParameter> getInitializationOptions()
Generates the Dropdown and Multi-select boxes for the project data import.
-
createSampleData
@SystemSetup(extension="subscriptionservices", type=PROJECT, process=ALL) public void createSampleData(SystemSetupContext context)
-
getBooleanSystemSetupParameter
protected boolean getBooleanSystemSetupParameter(SystemSetupContext context, java.lang.String key)
Helper method for checking setting of a Boolean setup parameter.- Parameters:
context-key-- Returns:
- true if parameter is set to Yes
-
createBooleanSystemSetupParameter
protected SystemSetupParameter createBooleanSystemSetupParameter(java.lang.String key, java.lang.String label, boolean defaultValue)
Helper method for creating a Boolean setup parameter.- Parameters:
key-label-defaultValue-
-
getDefaultValueForBooleanSystemSetupParameter
protected boolean getDefaultValueForBooleanSystemSetupParameter(java.lang.String key)
Helper method for getting default value of a Boolean setup parameter.- Parameters:
key-- Returns:
- the default value
-
-