Class DefaultCatalogFacade
java.lang.Object
de.hybris.platform.commercefacades.catalog.impl.DefaultCatalogFacade
- All Implemented Interfaces:
CatalogFacade
Default implementation of
CatalogFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns catalog DTOs for all catalogs and options (BASIC, PRODUCTS, CATEGORIES)Returns product catalogs for the current base siteprotected BaseSiteServicegetCatalogByIdAndOptions(String id, Set<CatalogOption> options) Returns catalog DTO for catalog id and options (BASIC, PRODUCTS, CATEGORIES)protected CatalogServicegetCatalogVersionByIdAndOptions(String catalogId, String catalogVersionId, Set<CatalogOption> opts) Returns catalog version DTO for catalog id, catalog version id and options (BASIC, PRODUCTS, CATEGORIES)protected CatalogVersionServicegetCategoryById(String catalogId, String catalogVersionId, String categoryId, PageOption page, Set<CatalogOption> opts) Returns category DTO for catalog id, catalog version id and category code and options (BASIC, PRODUCTS)protected CategoryServicegetProductCatalogForCurrentSite(String catalogId, Set<CatalogOption> opts) Returns current base site product catalog by idprotected CatalogModelgetProductCatalogModelForBaseSite(String catalogId) protected List<CatalogModel>getProductCatalogVersionForTheCurrentSite(String catalogId, String catalogVersionId, Set<CatalogOption> opts) Returns catalog version DTO for catalog id, catalog version id, current base site and options (BASIC, PRODUCTS, CATEGORIES)protected CatalogVersionModelgetProductCatalogVersionModelForBaseSite(String catalogId, 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)
-
Constructor Details
-
DefaultCatalogFacade
public DefaultCatalogFacade()
-
-
Method Details
-
getAllCatalogsWithOptions
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
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(String catalogId, String catalogVersionId, 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(String catalogId, String catalogVersionId, String categoryId, PageOption page, 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
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
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(String catalogId, String catalogVersionId, 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
-
getProductCatalogModelForBaseSite
-
getProductCatalogVersionModelForBaseSite
protected CatalogVersionModel getProductCatalogVersionModelForBaseSite(String catalogId, String catalogVersionId) -
setCatalogHierarchyPopulator
public void setCatalogHierarchyPopulator(ConfigurablePopulator<CatalogModel, CatalogData, CatalogOption> catalogHierarchyPopulator) -
setCatalogService
-
setCatalogVersionPopulator
public void setCatalogVersionPopulator(ConfigurablePopulator<CatalogVersionModel, CatalogVersionData, CatalogOption> catalogVersionPopulator) -
setCatalogVersionService
-
setCategoryService
-
setCategoryHierarchyPopulator
public void setCategoryHierarchyPopulator(PageablePopulator<CategoryModel, CategoryHierarchyData, CatalogOption> categoryHierarchyPopulator) -
setBaseSiteService
-
getCatalogService
-
getCategoryService
-
getCatalogVersionService
-
getCatalogHierarchyPopulator
protected ConfigurablePopulator<CatalogModel,CatalogData, getCatalogHierarchyPopulator()CatalogOption> -
getCatalogVersionPopulator
protected ConfigurablePopulator<CatalogVersionModel,CatalogVersionData, getCatalogVersionPopulator()CatalogOption> -
getCategoryHierarchyPopulator
protected PageablePopulator<CategoryModel,CategoryHierarchyData, getCategoryHierarchyPopulator()CatalogOption> -
getBaseSiteService
-