Class AsPromotedSortsDataHandler
java.lang.Object
de.hybris.platform.adaptivesearchbackoffice.editors.configurablemultireference.AbstractDataHandler<PromotedSortEditorData,AsPromotedSortModel>
de.hybris.platform.adaptivesearchbackoffice.editors.promotedsorts.AsPromotedSortsDataHandler
- All Implemented Interfaces:
DataHandler<PromotedSortEditorData,AsPromotedSortModel>
public class AsPromotedSortsDataHandler
extends AbstractDataHandler<PromotedSortEditorData,AsPromotedSortModel>
-
Field Summary
Fields inherited from class de.hybris.platform.adaptivesearchbackoffice.editors.configurablemultireference.AbstractDataHandler
SEARCH_PROFILE_PARAM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconvertFromModel(AsPromotedSortModel source, PromotedSortEditorData target) protected voidconvertFromSearchProfileResult(AsConfigurationHolder<AsPromotedSort, AbstractAsSortConfiguration> source, PromotedSortEditorData target, AbstractAsSearchProfileModel searchProfile) protected voidconvertFromSearchResult(AsSortData source, PromotedSortEditorData target) protected PromotedSortEditorDataReturns the type code for the model.protected booleanisConfigurationFromSearchProfile(AbstractAsSortConfiguration configuration, AbstractAsSearchProfileModel searchProfile) protected voidloadDataFromInitialValue(Map<Object, PromotedSortEditorData> mapping, Collection<AsPromotedSortModel> initialValue, Map<String, Object> parameters) protected voidloadDataFromSearchResult(Map<Object, PromotedSortEditorData> mapping, SearchResultData searchResult, Map<String, Object> parameters) protected voidlocalizeSorts(SearchContextData searchContext, List<? extends AbstractSortConfigurationEditorData> sorts) protected voidpostLoadData(Collection<AsPromotedSortModel> initialValue, SearchResultData searchResult, Map<String, Object> parameters, org.zkoss.zul.ListModelList<PromotedSortEditorData> data) voidsetI18NService(I18NService i18NService) Methods inherited from class de.hybris.platform.adaptivesearchbackoffice.editors.configurablemultireference.AbstractDataHandler
getAsConfigurationService, getAsUidGenerator, getAttributeType, getAttributeValue, getItemValue, getOrCreateEditorData, getValue, loadData, setAsConfigurationService, setAsUidGenerator, setAttributeValue
-
Constructor Details
-
AsPromotedSortsDataHandler
public AsPromotedSortsDataHandler()
-
-
Method Details
-
getTypeCode
Description copied from interface:DataHandlerReturns the type code for the model.- Returns:
- the type code
-
createEditorData
- Specified by:
createEditorDatain classAbstractDataHandler<PromotedSortEditorData,AsPromotedSortModel>
-
loadDataFromSearchResult
protected void loadDataFromSearchResult(Map<Object, PromotedSortEditorData> mapping, SearchResultData searchResult, Map<String, Object> parameters) - Specified by:
loadDataFromSearchResultin classAbstractDataHandler<PromotedSortEditorData,AsPromotedSortModel>
-
loadDataFromInitialValue
protected void loadDataFromInitialValue(Map<Object, PromotedSortEditorData> mapping, Collection<AsPromotedSortModel> initialValue, Map<String, Object> parameters) - Specified by:
loadDataFromInitialValuein classAbstractDataHandler<PromotedSortEditorData,AsPromotedSortModel>
-
convertFromSearchProfileResult
protected void convertFromSearchProfileResult(AsConfigurationHolder<AsPromotedSort, AbstractAsSortConfiguration> source, PromotedSortEditorData target, AbstractAsSearchProfileModel searchProfile) -
isConfigurationFromSearchProfile
protected boolean isConfigurationFromSearchProfile(AbstractAsSortConfiguration configuration, AbstractAsSearchProfileModel searchProfile) -
convertFromSearchResult
-
convertFromModel
-
buildNameLocalizationMap
-
postLoadData
protected void postLoadData(Collection<AsPromotedSortModel> initialValue, SearchResultData searchResult, Map<String, Object> parameters, org.zkoss.zul.ListModelList<PromotedSortEditorData> data) - Overrides:
postLoadDatain classAbstractDataHandler<PromotedSortEditorData,AsPromotedSortModel>
-
localizeSorts
protected void localizeSorts(SearchContextData searchContext, List<? extends AbstractSortConfigurationEditorData> sorts) -
getI18NService
-
setI18NService
-