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