Class DefaultActivateBaseSiteInSessionStrategy<T extends BaseSiteModel>
- java.lang.Object
-
- de.hybris.platform.basecommerce.strategies.impl.DefaultActivateBaseSiteInSessionStrategy<T>
-
- All Implemented Interfaces:
ActivateBaseSiteInSessionStrategy<T>
- Direct Known Subclasses:
DefaultCMSActivateBaseSiteInSessionStrategy,MarketplaceActivateBaseSiteInSessionStrategy
public class DefaultActivateBaseSiteInSessionStrategy<T extends BaseSiteModel> extends java.lang.Object implements ActivateBaseSiteInSessionStrategy<T>
Base implementation for the activating attributes in session. Attributes collected
-
-
Constructor Summary
Constructors Constructor Description DefaultActivateBaseSiteInSessionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(T site)Adjusts a session state based on the given site information.protected java.util.Collection<CatalogVersionModel>collectCatalogVersions(T site)Collects aCatalogVersionModels for a given site.protected java.util.Set<CatalogModel>collectContentCatalogs(T site)Collects aCatalogModels using a base information forBaseStoreModel.getCatalogs()protected CatalogVersionServicegetCatalogVersionService()voidsetCatalogVersionService(CatalogVersionService catalogVersionService)
-
-
-
Method Detail
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
activate
public void activate(T site)
Description copied from interface:ActivateBaseSiteInSessionStrategyAdjusts a session state based on the given site information. Depends of the context basecommerce/cms wher used a specific data is being adjusted. If activation fails for some reason aBaseSiteActivationExceptionis thrown.- Specified by:
activatein interfaceActivateBaseSiteInSessionStrategy<T extends BaseSiteModel>
-
collectCatalogVersions
protected java.util.Collection<CatalogVersionModel> collectCatalogVersions(T site)
Collects aCatalogVersionModels for a given site.
-
collectContentCatalogs
protected java.util.Set<CatalogModel> collectContentCatalogs(T site)
Collects aCatalogModels using a base information forBaseStoreModel.getCatalogs()
-
-