Class DefaultCatalogFacade
- java.lang.Object
-
- de.hybris.platform.commercefacades.catalog.impl.DefaultCatalogFacade
-
- All Implemented Interfaces:
CatalogFacade
public class DefaultCatalogFacade extends java.lang.Object implements CatalogFacade
Default implementation ofCatalogFacade
-
-
Constructor Summary
Constructors Constructor Description DefaultCatalogFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CatalogData>getAllCatalogsWithOptions(java.util.Set<CatalogOption> opts)Returns catalog DTOs for all catalogs and options (BASIC, PRODUCTS, CATEGORIES)java.util.List<CatalogData>getAllProductCatalogsForCurrentSite(java.util.Set<CatalogOption> opts)Returns product catalogs for the current base siteprotected BaseSiteServicegetBaseSiteService()CatalogDatagetCatalogByIdAndOptions(java.lang.String id, java.util.Set<CatalogOption> options)Returns catalog DTO for catalog id and options (BASIC, PRODUCTS, CATEGORIES)protected ConfigurablePopulator<CatalogModel,CatalogData,CatalogOption>getCatalogHierarchyPopulator()protected CatalogServicegetCatalogService()CatalogVersionDatagetCatalogVersionByIdAndOptions(java.lang.String catalogId, java.lang.String catalogVersionId, java.util.Set<CatalogOption> opts)Returns catalog version DTO for catalog id, catalog version id and options (BASIC, PRODUCTS, CATEGORIES)protected ConfigurablePopulator<CatalogVersionModel,CatalogVersionData,CatalogOption>getCatalogVersionPopulator()protected CatalogVersionServicegetCatalogVersionService()CategoryHierarchyDatagetCategoryById(java.lang.String catalogId, java.lang.String catalogVersionId, java.lang.String categoryId, PageOption page, java.util.Set<CatalogOption> opts)Returns category DTO for catalog id, catalog version id and category code and options (BASIC, PRODUCTS)protected PageablePopulator<CategoryModel,CategoryHierarchyData,CatalogOption>getCategoryHierarchyPopulator()protected CategoryServicegetCategoryService()CatalogDatagetProductCatalogForCurrentSite(java.lang.String catalogId, java.util.Set<CatalogOption> opts)Returns current base site product catalog by idprotected CatalogModelgetProductCatalogModelForBaseSite(java.lang.String catalogId)protected java.util.List<CatalogModel>getProductCatalogModelsForBaseSite()CatalogVersionDatagetProductCatalogVersionForTheCurrentSite(java.lang.String catalogId, java.lang.String catalogVersionId, java.util.Set<CatalogOption> opts)Returns catalog version DTO for catalog id, catalog version id, current base site and options (BASIC, PRODUCTS, CATEGORIES)protected CatalogVersionModelgetProductCatalogVersionModelForBaseSite(java.lang.String catalogId, java.lang.String catalogVersionId)voidsetBaseSiteService(BaseSiteService baseSiteService)voidsetCatalogHierarchyPopulator(ConfigurablePopulator<CatalogModel,CatalogData,CatalogOption> catalogHierarchyPopulator)voidsetCatalogService(CatalogService catalogService)voidsetCatalogVersionPopulator(ConfigurablePopulator<CatalogVersionModel,CatalogVersionData,CatalogOption> catalogVersionPopulator)voidsetCatalogVersionService(CatalogVersionService catalogVersionService)voidsetCategoryHierarchyPopulator(PageablePopulator<CategoryModel,CategoryHierarchyData,CatalogOption> categoryHierarchyPopulator)voidsetCategoryService(CategoryService categoryService)
-
-
-
Method Detail
-
getAllCatalogsWithOptions
public java.util.List<CatalogData> getAllCatalogsWithOptions(java.util.Set<CatalogOption> opts)
Description copied from interface:CatalogFacadeReturns catalog DTOs for all catalogs and options (BASIC, PRODUCTS, CATEGORIES)- Specified by:
getAllCatalogsWithOptionsin interfaceCatalogFacade- Parameters:
opts- the catalog options- Returns:
- the
ListofCatalogData
-
getCatalogByIdAndOptions
public CatalogData getCatalogByIdAndOptions(java.lang.String id, java.util.Set<CatalogOption> options)
Description copied from interface:CatalogFacadeReturns catalog DTO for catalog id and options (BASIC, PRODUCTS, CATEGORIES)- Specified by:
getCatalogByIdAndOptionsin interfaceCatalogFacade- Parameters:
id- the catalog idoptions- the catalog options- Returns:
- the catalog
-
getCatalogVersionByIdAndOptions
public CatalogVersionData getCatalogVersionByIdAndOptions(java.lang.String catalogId, java.lang.String catalogVersionId, java.util.Set<CatalogOption> opts)
Description copied from interface:CatalogFacadeReturns catalog version DTO for catalog id, catalog version id and options (BASIC, PRODUCTS, CATEGORIES)- Specified by:
getCatalogVersionByIdAndOptionsin interfaceCatalogFacade- Parameters:
catalogId- the catalog idcatalogVersionId- the catalog version idopts- the catalog options- Returns:
- the catalog version
-
getCategoryById
public CategoryHierarchyData getCategoryById(java.lang.String catalogId, java.lang.String catalogVersionId, java.lang.String categoryId, PageOption page, java.util.Set<CatalogOption> opts)
Description copied from interface:CatalogFacadeReturns category DTO for catalog id, catalog version id and category code and options (BASIC, PRODUCTS)- Specified by:
getCategoryByIdin interfaceCatalogFacade- Parameters:
catalogId- the catalog idcatalogVersionId- the catalog version idcategoryId- the category idpage- the page optionsopts- the catalog options- Returns:
- the category represented by an instance of
CategoryHierarchyData
-
getAllProductCatalogsForCurrentSite
public java.util.List<CatalogData> getAllProductCatalogsForCurrentSite(java.util.Set<CatalogOption> opts)
Description copied from interface:CatalogFacadeReturns product catalogs for the current base site- Specified by:
getAllProductCatalogsForCurrentSitein interfaceCatalogFacade- Parameters:
opts- the catalog options- Returns:
- the
ListofCatalogData
-
getProductCatalogForCurrentSite
public CatalogData getProductCatalogForCurrentSite(java.lang.String catalogId, java.util.Set<CatalogOption> opts)
Description copied from interface:CatalogFacadeReturns current base site product catalog by id- Specified by:
getProductCatalogForCurrentSitein interfaceCatalogFacade- Parameters:
catalogId- the catalog idopts- the catalog options- Returns:
- the product catalog
-
getProductCatalogVersionForTheCurrentSite
public CatalogVersionData getProductCatalogVersionForTheCurrentSite(java.lang.String catalogId, java.lang.String catalogVersionId, java.util.Set<CatalogOption> opts)
Description copied from interface:CatalogFacadeReturns catalog version DTO for catalog id, catalog version id, current base site and options (BASIC, PRODUCTS, CATEGORIES)- Specified by:
getProductCatalogVersionForTheCurrentSitein interfaceCatalogFacade- Parameters:
catalogId- the catalog idcatalogVersionId- the catalog version idopts- the catalog options- Returns:
- the product catalog version
-
getProductCatalogModelsForBaseSite
protected java.util.List<CatalogModel> getProductCatalogModelsForBaseSite()
-
getProductCatalogModelForBaseSite
protected CatalogModel getProductCatalogModelForBaseSite(java.lang.String catalogId)
-
getProductCatalogVersionModelForBaseSite
protected CatalogVersionModel getProductCatalogVersionModelForBaseSite(java.lang.String catalogId, java.lang.String catalogVersionId)
-
setCatalogHierarchyPopulator
public void setCatalogHierarchyPopulator(ConfigurablePopulator<CatalogModel,CatalogData,CatalogOption> catalogHierarchyPopulator)
-
setCatalogService
public void setCatalogService(CatalogService catalogService)
-
setCatalogVersionPopulator
public void setCatalogVersionPopulator(ConfigurablePopulator<CatalogVersionModel,CatalogVersionData,CatalogOption> catalogVersionPopulator)
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
setCategoryService
public void setCategoryService(CategoryService categoryService)
-
setCategoryHierarchyPopulator
public void setCategoryHierarchyPopulator(PageablePopulator<CategoryModel,CategoryHierarchyData,CatalogOption> categoryHierarchyPopulator)
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService baseSiteService)
-
getCatalogService
protected CatalogService getCatalogService()
-
getCategoryService
protected CategoryService getCategoryService()
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
getCatalogHierarchyPopulator
protected ConfigurablePopulator<CatalogModel,CatalogData,CatalogOption> getCatalogHierarchyPopulator()
-
getCatalogVersionPopulator
protected ConfigurablePopulator<CatalogVersionModel,CatalogVersionData,CatalogOption> getCatalogVersionPopulator()
-
getCategoryHierarchyPopulator
protected PageablePopulator<CategoryModel,CategoryHierarchyData,CatalogOption> getCategoryHierarchyPopulator()
-
getBaseSiteService
protected BaseSiteService getBaseSiteService()
-
-