Package de.hybris.platform.site
Interface BaseSiteService
- All Known Implementing Classes:
DefaultBaseSiteService
public interface BaseSiteService
CMS unaware site related service
- Since:
- 4.5
- Spring Bean ID:
- baseSiteService
-
Method Summary
Modifier and TypeMethodDescriptionReturns allBaseSiteinstances.getBaseSiteForUID(String siteUid) Returns site for the given site uid.Returns current site from the session for current user.Gets the product catalogs forBaseSiteModelobject.voidsetCurrentBaseSite(BaseSiteModel baseSiteModel, 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)logic
-
Method Details
-
getAllBaseSites
Collection<BaseSiteModel> getAllBaseSites()Returns allBaseSiteinstances.- Returns:
- all BaseSite instances
-
getBaseSiteForUID
Returns site for the given site uid.- Parameters:
siteUid- the site's uid- Returns:
- the current site
-
getCurrentBaseSite
BaseSiteModel getCurrentBaseSite()Returns current site from the session for current user.- Returns:
- the current site
-
setCurrentBaseSite
Sets the given site as current and possibly performs an additionalActivateBaseSiteInSessionStrategy.activate(BaseSiteModel)logic- Parameters:
baseSiteModel- The base site to set as the current site in the sessionactivateAdditionalSessionAdjustments- - boolean indicating whether session adjustments should be applied- Throws:
BaseSiteActivationException- if activation failed, might occur if activateAdditionalSessionAdjustments is true
-
setCurrentBaseSite
Sets the given site as current and possibly performs an additionalActivateBaseSiteInSessionStrategy.activate(BaseSiteModel)logic- 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- Throws:
BaseSiteActivationException- if activation failed, might occur if activateAdditionalSessionAdjustments is true
-
getProductCatalogs
Gets the product catalogs forBaseSiteModelobject.- Parameters:
site- theBaseSiteModelobject for which catalogs will be obtained.- Returns:
- the list of
CatalogModelobjects.
-