Class SearchProfileContextViewModel
- java.lang.Object
-
- de.hybris.platform.adaptivesearchbackoffice.widgets.AbstractWidgetViewModel
-
- de.hybris.platform.adaptivesearchbackoffice.widgets.searchprofilecontext.SearchProfileContextViewModel
-
public class SearchProfileContextViewModel extends AbstractWidgetViewModel
Controller for the context widget.
-
-
Field Summary
Fields Modifier and Type Field Description protected AsSearchConfigurationService
asSearchConfigurationService
protected AsSearchProfileContextFactory
asSearchProfileContextFactory
protected AsSearchProfileService
asSearchProfileService
protected static java.lang.String
CATALOG_SYNC_JOB
protected CatalogVersionService
catalogVersionService
protected I18NService
i18nService
protected static java.lang.String
IN_SYNC
protected com.hybris.cockpitng.labels.LabelService
labelService
protected ModelService
modelService
protected static java.lang.String
SEARCH_PROFILE_INFO
protected SessionService
sessionService
protected SynchronizationFacade
synchronizationFacade
-
Constructor Summary
Constructors Constructor Description SearchProfileContextViewModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
buildSearchProfileLabel(AbstractAsSearchProfileModel searchProfile, AsSearchConfigurationInfoData searchConfigurationInfo)
NavigationContextData
getNavigationContext()
SearchProfileInfoModel
getSearchProfileInfo()
boolean
isInSync()
void
processFinished(com.hybris.cockpitng.core.events.CockpitEvent cockpitEvent)
protected java.util.Optional<AbstractAsSearchProfileModel>
resolveSearchProfile()
protected void
setInSync(boolean isInSync)
void
setNavigationContext(NavigationContextData navigationContext)
protected void
setSearchProfileInfo(SearchProfileInfoModel searchProfileInfo)
void
synchronize()
void
update(SearchResultData searchResult)
protected void
updateSearchProfileInfo(SearchResultData searchResult)
void
updateSyncStatus()
-
Methods inherited from class de.hybris.platform.adaptivesearchbackoffice.widgets.AbstractWidgetViewModel
format, getModel, getWidgetInstanceManager, getWidgetSettings, getWidgetslot, sendOutput
-
-
-
-
Field Detail
-
SEARCH_PROFILE_INFO
protected static final java.lang.String SEARCH_PROFILE_INFO
- See Also:
- Constant Field Values
-
IN_SYNC
protected static final java.lang.String IN_SYNC
- See Also:
- Constant Field Values
-
CATALOG_SYNC_JOB
protected static final java.lang.String CATALOG_SYNC_JOB
- See Also:
- Constant Field Values
-
modelService
protected ModelService modelService
-
sessionService
protected SessionService sessionService
-
i18nService
protected I18NService i18nService
-
catalogVersionService
protected CatalogVersionService catalogVersionService
-
asSearchProfileService
protected AsSearchProfileService asSearchProfileService
-
asSearchConfigurationService
protected AsSearchConfigurationService asSearchConfigurationService
-
asSearchProfileContextFactory
protected AsSearchProfileContextFactory asSearchProfileContextFactory
-
labelService
protected com.hybris.cockpitng.labels.LabelService labelService
-
synchronizationFacade
protected SynchronizationFacade synchronizationFacade
-
-
Method Detail
-
update
public void update(SearchResultData searchResult)
-
updateSearchProfileInfo
protected void updateSearchProfileInfo(SearchResultData searchResult)
-
buildSearchProfileLabel
protected java.lang.String buildSearchProfileLabel(AbstractAsSearchProfileModel searchProfile, AsSearchConfigurationInfoData searchConfigurationInfo)
-
updateSyncStatus
public void updateSyncStatus()
-
synchronize
public void synchronize()
-
processFinished
public void processFinished(com.hybris.cockpitng.core.events.CockpitEvent cockpitEvent)
-
resolveSearchProfile
protected java.util.Optional<AbstractAsSearchProfileModel> resolveSearchProfile()
-
getNavigationContext
public NavigationContextData getNavigationContext()
-
setNavigationContext
public void setNavigationContext(NavigationContextData navigationContext)
-
getSearchProfileInfo
public SearchProfileInfoModel getSearchProfileInfo()
-
setSearchProfileInfo
protected void setSearchProfileInfo(SearchProfileInfoModel searchProfileInfo)
-
isInSync
public boolean isInSync()
-
setInSync
protected void setInSync(boolean isInSync)
-
-