Class AsBoostRulesDataHandler
java.lang.Object
de.hybris.platform.adaptivesearchbackoffice.editors.configurablemultireference.AbstractDataHandler<BoostRuleEditorData,AsBoostRuleModel>
de.hybris.platform.adaptivesearchbackoffice.editors.boostrules.AsBoostRulesDataHandler
- All Implemented Interfaces:
DataHandler<BoostRuleEditorData,AsBoostRuleModel>
public class AsBoostRulesDataHandler
extends AbstractDataHandler<BoostRuleEditorData,AsBoostRuleModel>
Implementation of
DataHandler for the boost rules.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.adaptivesearchbackoffice.editors.configurablemultireference.AbstractDataHandler
SEARCH_PROFILE_PARAM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconvertFromModel(AsBoostRuleModel source, BoostRuleEditorData target) protected voidconvertFromSearchProfileResult(AsConfigurationHolder<AsBoostRule, AbstractAsBoostRuleConfiguration> source, BoostRuleEditorData target, AbstractAsSearchProfileModel searchProfile) protected BoostRuleEditorDataReturns the type code for the model.protected booleanisConfigurationFromSearchProfile(AbstractAsBoostRuleConfiguration configuration, AbstractAsSearchProfileModel searchProfile) protected voidloadDataFromInitialValue(Map<Object, BoostRuleEditorData> mapping, Collection<AsBoostRuleModel> initialValue, Map<String, Object> parameters) protected voidloadDataFromSearchResult(Map<Object, BoostRuleEditorData> mapping, SearchResultData searchResult, Map<String, Object> parameters) protected StringmapBoostOperatorToSymbol(AsBoostOperator operator) Methods inherited from class de.hybris.platform.adaptivesearchbackoffice.editors.configurablemultireference.AbstractDataHandler
getAsConfigurationService, getAsUidGenerator, getAttributeType, getAttributeValue, getItemValue, getOrCreateEditorData, getValue, loadData, postLoadData, setAsConfigurationService, setAsUidGenerator, setAttributeValue
-
Field Details
-
AS_BOOST_TYPE_ADDITIVE_SYMBOL
- See Also:
-
AS_BOOST_TYPE_MULTIPLICATIVE_SYMBOL
- See Also:
-
AS_BOOST_OPERATOR_EQUAL_SYMBOL
- See Also:
-
AS_BOOST_OPERATOR_MATCH_SYMBOL
- See Also:
-
AS_BOOST_OPERATOR_GREATER_THAN_SYMBOL
- See Also:
-
AS_BOOST_OPERATOR_GREATER_THAN_OR_EQUAL_SYMBOL
- See Also:
-
AS_BOOST_OPERATOR_LESS_THAN_SYMBOL
- See Also:
-
AS_BOOST_OPERATOR_LESS_THAN_OR_EQUAL_SYMBOL
- See Also:
-
AS_BOOST_OPERATOR_NOT_EQUAL_SYMBOL
- See Also:
-
-
Constructor Details
-
AsBoostRulesDataHandler
public AsBoostRulesDataHandler()
-
-
Method Details
-
getTypeCode
Description copied from interface:DataHandlerReturns the type code for the model.- Returns:
- the type code
-
createEditorData
- Specified by:
createEditorDatain classAbstractDataHandler<BoostRuleEditorData,AsBoostRuleModel>
-
loadDataFromSearchResult
protected void loadDataFromSearchResult(Map<Object, BoostRuleEditorData> mapping, SearchResultData searchResult, Map<String, Object> parameters) - Specified by:
loadDataFromSearchResultin classAbstractDataHandler<BoostRuleEditorData,AsBoostRuleModel>
-
loadDataFromInitialValue
protected void loadDataFromInitialValue(Map<Object, BoostRuleEditorData> mapping, Collection<AsBoostRuleModel> initialValue, Map<String, Object> parameters) - Specified by:
loadDataFromInitialValuein classAbstractDataHandler<BoostRuleEditorData,AsBoostRuleModel>
-
convertFromSearchProfileResult
protected void convertFromSearchProfileResult(AsConfigurationHolder<AsBoostRule, AbstractAsBoostRuleConfiguration> source, BoostRuleEditorData target, AbstractAsSearchProfileModel searchProfile) -
isConfigurationFromSearchProfile
protected boolean isConfigurationFromSearchProfile(AbstractAsBoostRuleConfiguration configuration, AbstractAsSearchProfileModel searchProfile) -
convertFromModel
-
mapBoostOperatorToSymbol
-