Package de.hybris.platform.site.impl
Class DefaultBaseSiteService
java.lang.Object
de.hybris.platform.site.impl.DefaultBaseSiteService
- All Implemented Interfaces:
BaseSiteService
Default implementation of
BaseSiteService interface.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ActivateBaseSiteInSessionStrategy<BaseSiteModel>Returns allBaseSiteinstances.protected BaseSiteDaogetBaseSiteForUID(String siteUid) Returns site for the given site uid.Returns current site from the session for current user.protected BaseSiteModelGets the product catalogs forBaseSiteModelobject.protected SessionServiceprotected booleanisPlainCatalogModel(CatalogModel catalog) voidsetActivateBaseSiteInSessionStrategy(ActivateBaseSiteInSessionStrategy<BaseSiteModel> activateBaseSiteInSessionStrategy) voidsetBaseSiteDao(BaseSiteDao baseSiteDao) voidsetCurrentBaseSite(BaseSiteModel newBaseSite, boolean activateAdditionalSessionAdjustments) Sets the given site as current and possibly performs an additionalActivateBaseSiteInSessionStrategy.activate(BaseSiteModel)logicvoidsetCurrentBaseSite(String siteUid, boolean activateAdditionalSessionAdjustments) Sets the given site as current and possibly performs an additionalActivateBaseSiteInSessionStrategy.activate(BaseSiteModel)logicprotected voidsetCurrentBaseSiteImpl(BaseSiteModel newBaseSite) voidsetSessionService(SessionService sessionService)
-
Field Details
-
CURRENTSITE
- See Also:
-
-
Constructor Details
-
DefaultBaseSiteService
public DefaultBaseSiteService()
-
-
Method Details
-
getActivateBaseSiteInSessionStrategy
-
setActivateBaseSiteInSessionStrategy
public void setActivateBaseSiteInSessionStrategy(ActivateBaseSiteInSessionStrategy<BaseSiteModel> activateBaseSiteInSessionStrategy) -
getAllBaseSites
Description copied from interface:BaseSiteServiceReturns allBaseSiteinstances.- Specified by:
getAllBaseSitesin interfaceBaseSiteService- Returns:
- all BaseSite instances
-
getBaseSiteForUID
Description copied from interface:BaseSiteServiceReturns site for the given site uid.- Specified by:
getBaseSiteForUIDin interfaceBaseSiteService- Parameters:
siteUid- the site's uid- Returns:
- the current site
-
getCurrentBaseSiteImpl
-
getCurrentBaseSite
Description copied from interface:BaseSiteServiceReturns current site from the session for current user.- Specified by:
getCurrentBaseSitein interfaceBaseSiteService- Returns:
- the current site
-
getProductCatalogs
Description copied from interface:BaseSiteServiceGets the product catalogs forBaseSiteModelobject.- Specified by:
getProductCatalogsin interfaceBaseSiteService- Parameters:
site- theBaseSiteModelobject for which catalogs will be obtained.- Returns:
- the list of
CatalogModelobjects.
-
setCurrentBaseSite
Description copied from interface:BaseSiteServiceSets the given site as current and possibly performs an additionalActivateBaseSiteInSessionStrategy.activate(BaseSiteModel)logic- Specified by:
setCurrentBaseSitein interfaceBaseSiteService- Parameters:
siteUid- The base site siteUid to load and set as the current site in the sessionactivateAdditionalSessionAdjustments- - boolean indicating whether session adjustments should be applied
-
setCurrentBaseSite
public void setCurrentBaseSite(BaseSiteModel newBaseSite, boolean activateAdditionalSessionAdjustments) Description copied from interface:BaseSiteServiceSets the given site as current and possibly performs an additionalActivateBaseSiteInSessionStrategy.activate(BaseSiteModel)logic- Specified by:
setCurrentBaseSitein interfaceBaseSiteService- Parameters:
newBaseSite- The base site to set as the current site in the sessionactivateAdditionalSessionAdjustments- - boolean indicating whether session adjustments should be applied
-
isPlainCatalogModel
-
setCurrentBaseSiteImpl
-
getSessionService
-
setSessionService
-
getBaseSiteDao
-
setBaseSiteDao
-