Class DefaultCatalogFacade
- java.lang.Object
-
- de.hybris.platform.cmssmarteditwebservices.catalogs.impl.DefaultCatalogFacade
-
- All Implemented Interfaces:
CatalogFacade
public class DefaultCatalogFacade extends java.lang.Object implements CatalogFacade
Default implementation ofCatalogFacadeto retrieve information about catalogs which the current user has access (read and/or write) to.
-
-
Constructor Summary
Constructors Constructor Description DefaultCatalogFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BaseSiteServicegetBaseSiteService()protected CMSAdminSiteServicegetCmsAdminSiteService()protected CMSCatalogVersionServicegetCmsCatalogVersionService()protected ContentCatalogLevelComparatorgetContentCatalogLevelComparator()java.util.List<CatalogData>getContentCatalogs(java.lang.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<java.util.Map.Entry<CatalogModel,java.util.Set<CatalogVersionModel>>,CatalogData>getEntryToCatalogDataConverter()protected Converter<java.util.Map.Entry<CatalogModel,java.util.Set<CatalogVersionModel>>,CatalogData>getEntryToContentCatalogDataConverter()java.util.List<CatalogData>getProductCatalogs(java.lang.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<java.util.Map.Entry<CatalogModel,java.util.Set<CatalogVersionModel>>,CatalogData> entryToCatalogDataConverter)voidsetEntryToContentCatalogDataConverter(Converter<java.util.Map.Entry<CatalogModel,java.util.Set<CatalogVersionModel>>,CatalogData> entryToContentCatalogDataConverter)
-
-
-
Method Detail
-
getContentCatalogs
public java.util.List<CatalogData> getContentCatalogs(java.lang.String siteId)
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
public java.util.List<CatalogData> getProductCatalogs(java.lang.String siteId)
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
protected BaseSiteService getBaseSiteService()
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService baseSiteService)
-
getCmsAdminSiteService
protected CMSAdminSiteService getCmsAdminSiteService()
-
setCmsAdminSiteService
public void setCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService)
-
getCmsCatalogVersionService
protected CMSCatalogVersionService getCmsCatalogVersionService()
-
setCmsCatalogVersionService
public void setCmsCatalogVersionService(CMSCatalogVersionService cmsCatalogVersionService)
-
getEntryToCatalogDataConverter
protected Converter<java.util.Map.Entry<CatalogModel,java.util.Set<CatalogVersionModel>>,CatalogData> getEntryToCatalogDataConverter()
-
setEntryToCatalogDataConverter
public void setEntryToCatalogDataConverter(Converter<java.util.Map.Entry<CatalogModel,java.util.Set<CatalogVersionModel>>,CatalogData> entryToCatalogDataConverter)
-
getEntryToContentCatalogDataConverter
protected Converter<java.util.Map.Entry<CatalogModel,java.util.Set<CatalogVersionModel>>,CatalogData> getEntryToContentCatalogDataConverter()
-
setEntryToContentCatalogDataConverter
public void setEntryToContentCatalogDataConverter(Converter<java.util.Map.Entry<CatalogModel,java.util.Set<CatalogVersionModel>>,CatalogData> entryToContentCatalogDataConverter)
-
getContentCatalogLevelComparator
protected ContentCatalogLevelComparator getContentCatalogLevelComparator()
-
setContentCatalogLevelComparator
public void setContentCatalogLevelComparator(ContentCatalogLevelComparator contentCatalogLevelComparator)
-
-