Package de.hybris.platform.site
Interface BaseSiteService
-
- All Known Implementing Classes:
DefaultBaseSiteService
public interface BaseSiteServiceCMS unaware site related service- Since:
- 4.5
- Spring Bean ID:
- baseSiteService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<BaseSiteModel>getAllBaseSites()Returns allBaseSiteinstances.BaseSiteModelgetBaseSiteForUID(java.lang.String siteUid)Returns site for the given site uid.BaseSiteModelgetCurrentBaseSite()Returns current site from the session for current user.java.util.List<CatalogModel>getProductCatalogs(BaseSiteModel site)Gets the product catalogs forBaseSiteModelobject.voidsetCurrentBaseSite(BaseSiteModel baseSiteModel, boolean activateAdditionalSessionAdjustments)Sets the given site as current and possibly performs an additionalActivateBaseSiteInSessionStrategy.activate(BaseSiteModel)logicvoidsetCurrentBaseSite(java.lang.String siteUid, boolean activateAdditionalSessionAdjustments)Sets the given site as current and possibly performs an additionalActivateBaseSiteInSessionStrategy.activate(BaseSiteModel)logic
-
-
-
Method Detail
-
getAllBaseSites
java.util.Collection<BaseSiteModel> getAllBaseSites()
Returns allBaseSiteinstances.- Returns:
- all BaseSite instances
-
getBaseSiteForUID
BaseSiteModel getBaseSiteForUID(java.lang.String siteUid)
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
void setCurrentBaseSite(BaseSiteModel baseSiteModel, boolean activateAdditionalSessionAdjustments)
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
void setCurrentBaseSite(java.lang.String siteUid, boolean activateAdditionalSessionAdjustments)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
java.util.List<CatalogModel> getProductCatalogs(BaseSiteModel site)
Gets the product catalogs forBaseSiteModelobject.- Parameters:
site- theBaseSiteModelobject for which catalogs will be obtained.- Returns:
- the list of
CatalogModelobjects.
-
-