Package de.hybris.platform.site.impl
Class DefaultBaseSiteService
- java.lang.Object
-
- de.hybris.platform.site.impl.DefaultBaseSiteService
-
- All Implemented Interfaces:
BaseSiteService
public class DefaultBaseSiteService extends java.lang.Object implements BaseSiteService
Default implementation ofBaseSiteServiceinterface.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCURRENTSITE
-
Constructor Summary
Constructors Constructor Description DefaultBaseSiteService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActivateBaseSiteInSessionStrategy<BaseSiteModel>getActivateBaseSiteInSessionStrategy()java.util.Collection<BaseSiteModel>getAllBaseSites()Returns allBaseSiteinstances.protected BaseSiteDaogetBaseSiteDao()BaseSiteModelgetBaseSiteForUID(java.lang.String siteUid)Returns site for the given site uid.BaseSiteModelgetCurrentBaseSite()Returns current site from the session for current user.protected BaseSiteModelgetCurrentBaseSiteImpl()java.util.List<CatalogModel>getProductCatalogs(BaseSiteModel site)Gets the product catalogs forBaseSiteModelobject.protected SessionServicegetSessionService()protected 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(java.lang.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 Detail
-
CURRENTSITE
protected static final java.lang.String CURRENTSITE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActivateBaseSiteInSessionStrategy
protected ActivateBaseSiteInSessionStrategy<BaseSiteModel> getActivateBaseSiteInSessionStrategy()
-
setActivateBaseSiteInSessionStrategy
public void setActivateBaseSiteInSessionStrategy(ActivateBaseSiteInSessionStrategy<BaseSiteModel> activateBaseSiteInSessionStrategy)
-
getAllBaseSites
public java.util.Collection<BaseSiteModel> getAllBaseSites()
Description copied from interface:BaseSiteServiceReturns allBaseSiteinstances.- Specified by:
getAllBaseSitesin interfaceBaseSiteService- Returns:
- all BaseSite instances
-
getBaseSiteForUID
public BaseSiteModel getBaseSiteForUID(java.lang.String siteUid)
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
protected BaseSiteModel getCurrentBaseSiteImpl()
-
getCurrentBaseSite
public BaseSiteModel getCurrentBaseSite()
Description copied from interface:BaseSiteServiceReturns current site from the session for current user.- Specified by:
getCurrentBaseSitein interfaceBaseSiteService- Returns:
- the current site
-
getProductCatalogs
public java.util.List<CatalogModel> getProductCatalogs(BaseSiteModel site)
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
public void setCurrentBaseSite(java.lang.String siteUid, 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:
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
protected boolean isPlainCatalogModel(CatalogModel catalog)
-
setCurrentBaseSiteImpl
protected void setCurrentBaseSiteImpl(BaseSiteModel newBaseSite)
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getBaseSiteDao
protected BaseSiteDao getBaseSiteDao()
-
setBaseSiteDao
public void setBaseSiteDao(BaseSiteDao baseSiteDao)
-
-