Class DefaultCatalogFacade
java.lang.Object
de.hybris.platform.cmssmarteditwebservices.catalogs.impl.DefaultCatalogFacade
- All Implemented Interfaces:
CatalogFacade
Default implementation of
CatalogFacade to retrieve information about catalogs which the
current user has access (read and/or write) to.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseSiteServiceprotected CMSAdminSiteServiceprotected CMSCatalogVersionServiceprotected ContentCatalogLevelComparatorgetContentCatalogs(String siteId) Given a site id, this method will return a list of all content catalogs where the current user has at least a READ access to one of the catalog version of the catalog.protected Converter<Map.Entry<CatalogModel,Set<CatalogVersionModel>>, CatalogData> protected Converter<Map.Entry<CatalogModel,Set<CatalogVersionModel>>, CatalogData> getProductCatalogs(String siteId) Given a site id, this method will return a list of all product catalogs where the current user has at least a READ access to one of the catalog version of the catalog.voidsetBaseSiteService(BaseSiteService baseSiteService) voidsetCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService) voidsetCmsCatalogVersionService(CMSCatalogVersionService cmsCatalogVersionService) voidsetContentCatalogLevelComparator(ContentCatalogLevelComparator contentCatalogLevelComparator) voidsetEntryToCatalogDataConverter(Converter<Map.Entry<CatalogModel, Set<CatalogVersionModel>>, CatalogData> entryToCatalogDataConverter) voidsetEntryToContentCatalogDataConverter(Converter<Map.Entry<CatalogModel, Set<CatalogVersionModel>>, CatalogData> entryToContentCatalogDataConverter)
-
Constructor Details
-
DefaultCatalogFacade
public DefaultCatalogFacade()
-
-
Method Details
-
getContentCatalogs
Description copied from interface:CatalogFacadeGiven a site id, this method will return a list of all content catalogs where the current user has at least a READ access to one of the catalog version of the catalog.- Specified by:
getContentCatalogsin interfaceCatalogFacade- Parameters:
siteId- the site identifier- Returns:
- All catalogs that are configured for a site where the user as a least a READ access to a catalog version of the catalog; never null
-
getProductCatalogs
Description copied from interface:CatalogFacadeGiven a site id, this method will return a list of all product catalogs where the current user has at least a READ access to one of the catalog version of the catalog.- Specified by:
getProductCatalogsin interfaceCatalogFacade- Parameters:
siteId- the site identifier- Returns:
- All catalogs that are configured for a site where the user as a least a READ access to a catalog version of the catalog; never null
-
getBaseSiteService
-
setBaseSiteService
-
getCmsAdminSiteService
-
setCmsAdminSiteService
-
getCmsCatalogVersionService
-
setCmsCatalogVersionService
-
getEntryToCatalogDataConverter
protected Converter<Map.Entry<CatalogModel,Set<CatalogVersionModel>>, getEntryToCatalogDataConverter()CatalogData> -
setEntryToCatalogDataConverter
public void setEntryToCatalogDataConverter(Converter<Map.Entry<CatalogModel, Set<CatalogVersionModel>>, CatalogData> entryToCatalogDataConverter) -
getEntryToContentCatalogDataConverter
protected Converter<Map.Entry<CatalogModel,Set<CatalogVersionModel>>, getEntryToContentCatalogDataConverter()CatalogData> -
setEntryToContentCatalogDataConverter
public void setEntryToContentCatalogDataConverter(Converter<Map.Entry<CatalogModel, Set<CatalogVersionModel>>, CatalogData> entryToContentCatalogDataConverter) -
getContentCatalogLevelComparator
-
setContentCatalogLevelComparator
public void setContentCatalogLevelComparator(ContentCatalogLevelComparator contentCatalogLevelComparator)
-