Class DefaultContextInformationLoader
java.lang.Object
de.hybris.platform.commercewebservices.core.context.impl.DefaultContextInformationLoader
- All Implemented Interfaces:
ContextInformationLoader
Default context information loader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<LanguageModel>getStoresLanguages(BaseStoreModel currentBaseStore) protected voidrecalculateCart(String currencyString) Recalculates cart when currency has changedvoidsetActivateBaseSiteInSessionStrategy(ActivateBaseSiteInSessionStrategy activateBaseSiteInSessionStrategy) voidsetBaseSiteResourceExceptions(Set<String> baseSiteResourceExceptions) voidsetBaseSiteService(BaseSiteService baseSiteService) voidsetBaseStoreService(BaseStoreService baseStoreService) voidsetCalculationService(CalculationService calculationService) voidsetCartService(CartService cartService) voidsetCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService) voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetConfigurationService(ConfigurationService configurationService) setCurrencyFromRequest(javax.servlet.http.HttpServletRequest request) Method set current currency based on information from request and recalculate cart for current sessionsetLanguageFromRequest(javax.servlet.http.HttpServletRequest request) Method set current language base on information from request
-
Constructor Details
-
DefaultContextInformationLoader
public DefaultContextInformationLoader()
-
-
Method Details
-
setLanguageFromRequest
public LanguageModel setLanguageFromRequest(javax.servlet.http.HttpServletRequest request) throws UnsupportedLanguageException Description copied from interface:ContextInformationLoaderMethod set current language base on information from request- Specified by:
setLanguageFromRequestin interfaceContextInformationLoader- Parameters:
request- - request from which we should get language information- Returns:
- language set as current
- Throws:
UnsupportedLanguageException
-
getStoresLanguages
-
setCurrencyFromRequest
public CurrencyModel setCurrencyFromRequest(javax.servlet.http.HttpServletRequest request) throws UnsupportedCurrencyException, RecalculationException Description copied from interface:ContextInformationLoaderMethod set current currency based on information from request and recalculate cart for current session- Specified by:
setCurrencyFromRequestin interfaceContextInformationLoader- Parameters:
request- - request from which we should get currency information- Returns:
- currency set as current
- Throws:
UnsupportedCurrencyExceptionRecalculationException
-
recalculateCart
Recalculates cart when currency has changed- Throws:
RecalculationException
-
getConfigurationService
-
setConfigurationService
-
getBaseSiteResourceExceptions
-
setBaseSiteResourceExceptions
-
getBaseSiteService
-
setBaseSiteService
-
getActivateBaseSiteInSessionStrategy
-
setActivateBaseSiteInSessionStrategy
public void setActivateBaseSiteInSessionStrategy(ActivateBaseSiteInSessionStrategy activateBaseSiteInSessionStrategy) -
getCommonI18NService
-
setCommonI18NService
-
getCommerceCommonI18NService
-
setCommerceCommonI18NService
-
getBaseStoreService
-
setBaseStoreService
-
getCartService
-
setCartService
-
getCalculationService
-
setCalculationService
-