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 Object
implements ActivateBaseSiteInSessionStrategy<T>
Base implementation for the activating attributes in session. Attributes collected
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdjusts a session state based on the given site information.protected Collection<CatalogVersionModel>collectCatalogVersions(T site) Collects aCatalogVersionModels for a given site.protected Set<CatalogModel>collectContentCatalogs(T site) Collects aCatalogModels using a base information forBaseStoreModel.getCatalogs()protected CatalogVersionServicevoidsetCatalogVersionService(CatalogVersionService catalogVersionService)
-
Constructor Details
-
DefaultActivateBaseSiteInSessionStrategy
public DefaultActivateBaseSiteInSessionStrategy()
-
-
Method Details
-
setCatalogVersionService
-
getCatalogVersionService
-
activate
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
Collects aCatalogVersionModels for a given site. -
collectContentCatalogs
Collects aCatalogModels using a base information forBaseStoreModel.getCatalogs()
-