Class ProductconfigConditionsEditorViewModel
java.lang.Object
de.hybris.platform.rulebuilderbackoffice.editors.AbstractEditorViewModel<String>
de.hybris.platform.rulebuilderbackoffice.editors.conditionseditor.ConditionsEditorViewModel
de.hybris.platform.sap.productconfig.rules.backoffice.editors.conditionseditor.ProductconfigConditionsEditorViewModel
- All Implemented Interfaces:
Serializable
Implementation of the product configuration specific logic in the condition editor view model
- See Also:
-
Field Summary
Fields inherited from class de.hybris.platform.rulebuilderbackoffice.editors.conditionseditor.ConditionsEditorViewModel
CATEGORIES_OPERATOR, CONDITION_BREADCRUMBS, CUSTOMER_GROUPS_OPERATOR, EXCLUDED_CATEGORIES, EXCLUDED_CUSTOMER_GROUPS, EXCLUDED_CUSTOMERS, EXCLUDED_PARAM_NAMES, EXCLUDED_PRODUCTS, NOT_CONTAINSFields inherited from class de.hybris.platform.rulebuilderbackoffice.editors.AbstractEditorViewModel
BEGIN_VALUE_CHANGE_EVENT, INITIAL_VALUE, READ_ONLY, RULE_COMPILER_PROBLEMS, RULE_TYPE, UUID_PREFIX, VALUE_CHANGED_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCustomAttributeToParameter(ParameterModel parameter, String attributeId, Serializable attributeValue) protected voidadjustCsticValueParameter(ParameterModel masterParameter, Collection<ParameterModel> treeNodeParameters) voidchangeTreeNodeParameter(TreeNodeModel<ConditionModel> treeNode, String parameterId, Serializable parameterValue) protected voidclearDependentParameterValues(TreeNodeModel<ConditionModel> treeNode, String parameterId) protected voidclearParameterValue(ConditionModel condition, String parameterId) protected StringgetProductCode(Map<String, ParameterModel> parameters) getProductList(TreeListModel<ConditionModel> conditionModelList) voidinit(org.zkoss.zk.ui.Execution execution, org.zkoss.zk.ui.Component component) voidremoveCondition(TreeNodeModel<ConditionModel> treeNode) protected SerializableretrieveParameterValue(ParameterModel parameter) protected ParameterModelretrieveTreeNodeParameter(Collection<ParameterModel> treeNodeParameters, String parameterId) protected voidprotected List<ParameterModel>updateDependentParameters(ParameterModel masterParameter, Collection<ParameterModel> treeNodeParameters) Methods inherited from class de.hybris.platform.rulebuilderbackoffice.editors.conditionseditor.ConditionsEditorViewModel
convertConditionsToTree, convertConditionToTreeNode, convertTreeNodeToRuleCondition, convertTreeToRuleConditions, createRuleConditionFromTreeNode, createTreeNodeFromCondition, createTreeNodeFromConditionDefinition, disableExcludeParameters, dropCondition, enableExcludeParameters, fillGroupsModel, getConditionBreadcrumbs, getConditionDefinitions, getConditions, getRuleConditionsRegistry, getRuleConditionsService, handleSourceObject, loadConditionDefinitions, loadConditions, loadData, setConditionBreadcrumbs, setConditionDefinitions, setConditions, setRuleConditionsRegistry, setRuleConditionsService, updateConditions, updateExcludeParamsAndRecreateNodeMethods inherited from class de.hybris.platform.rulebuilderbackoffice.editors.AbstractEditorViewModel
beginValueUpdate, convertParametersToRuleParameters, convertRuleParametersToParameters, getBackofficeRuleParameterTypeFormatter, getComponent, getCustomAttributeName, getDependentParameters, getFiltersForMasterFieldFilter, getI18NService, getRuleCompilerProblems, getRuleParameterFilterValueProvider, getRuleParametersService, getRuleParameterValueMapperStrategy, getRuleType, getSessionService, getValue, isReadOnly, join, loadParameterValidationInfos, parameterHasFilter, recreateTreeNode, setBackofficeRuleParameterTypeFormatter, setI18NService, setReadOnly, setRuleParameterFilterValueProvider, setRuleParametersService, setRuleParameterValueMapperStrategy, setSessionService, setValue, updateDependentParametersForTreeNode
-
Constructor Details
-
ProductconfigConditionsEditorViewModel
public ProductconfigConditionsEditorViewModel()
-
-
Method Details
-
init
public void init(org.zkoss.zk.ui.Execution execution, org.zkoss.zk.ui.Component component) - Overrides:
initin classAbstractEditorViewModel<String>
-
updateDependentParameters
protected List<ParameterModel> updateDependentParameters(ParameterModel masterParameter, Collection<ParameterModel> treeNodeParameters) - Overrides:
updateDependentParametersin classAbstractEditorViewModel<String>
-
changeTreeNodeParameter
public void changeTreeNodeParameter(TreeNodeModel<ConditionModel> treeNode, String parameterId, Serializable parameterValue) throws EditorException - Overrides:
changeTreeNodeParameterin classConditionsEditorViewModel- Throws:
EditorException
-
removeCondition
- Overrides:
removeConditionin classConditionsEditorViewModel- Throws:
EditorException
-
adjustCsticValueParameter
protected void adjustCsticValueParameter(ParameterModel masterParameter, Collection<ParameterModel> treeNodeParameters) -
retrieveTreeNodeParameter
protected ParameterModel retrieveTreeNodeParameter(Collection<ParameterModel> treeNodeParameters, String parameterId) -
retrieveParameterValue
-
addCustomAttributeToParameter
protected void addCustomAttributeToParameter(ParameterModel parameter, String attributeId, Serializable attributeValue) -
clearDependentParameterValues
protected void clearDependentParameterValues(TreeNodeModel<ConditionModel> treeNode, String parameterId) -
clearParameterValue
-
triggerActionUpdate
protected void triggerActionUpdate() -
getProductList
-
getProductCode
-