Interface CatalogFacade
-
- All Known Implementing Classes:
DefaultCatalogFacade
public interface CatalogFacadeCatalog facade interface. Its main purpose is to retrieve catalog related DTOs using existing services.
-
-
Method Summary
All Methods Instance Methods Abstract 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 siteCatalogDatagetCatalogByIdAndOptions(java.lang.String id, java.util.Set<CatalogOption> options)Returns catalog DTO for catalog id and options (BASIC, PRODUCTS, CATEGORIES)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)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)CatalogDatagetProductCatalogForCurrentSite(java.lang.String catalogId, java.util.Set<CatalogOption> opts)Returns current base site product catalog by idCatalogVersionDatagetProductCatalogVersionForTheCurrentSite(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)
-
-
-
Method Detail
-
getCatalogByIdAndOptions
CatalogData getCatalogByIdAndOptions(java.lang.String id, java.util.Set<CatalogOption> options)
Returns catalog DTO for catalog id and options (BASIC, PRODUCTS, CATEGORIES)- Parameters:
id- the catalog idoptions- the catalog options- Returns:
- the catalog
-
getCatalogVersionByIdAndOptions
CatalogVersionData getCatalogVersionByIdAndOptions(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)- Parameters:
catalogId- the catalog idcatalogVersionId- the catalog version idopts- the catalog options- Returns:
- the catalog version
-
getAllCatalogsWithOptions
java.util.List<CatalogData> getAllCatalogsWithOptions(java.util.Set<CatalogOption> opts)
Returns catalog DTOs for all catalogs and options (BASIC, PRODUCTS, CATEGORIES)- Parameters:
opts- the catalog options- Returns:
- the
ListofCatalogData
-
getCategoryById
CategoryHierarchyData getCategoryById(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)- 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
java.util.List<CatalogData> getAllProductCatalogsForCurrentSite(java.util.Set<CatalogOption> opts)
Returns product catalogs for the current base site- Parameters:
opts- the catalog options- Returns:
- the
ListofCatalogData
-
getProductCatalogForCurrentSite
CatalogData getProductCatalogForCurrentSite(java.lang.String catalogId, java.util.Set<CatalogOption> opts)
Returns current base site product catalog by id- Parameters:
catalogId- the catalog idopts- the catalog options- Returns:
- the product catalog
-
getProductCatalogVersionForTheCurrentSite
CatalogVersionData getProductCatalogVersionForTheCurrentSite(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)- Parameters:
catalogId- the catalog idcatalogVersionId- the catalog version idopts- the catalog options- Returns:
- the product catalog version
-
-