java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
com.sap.retail.commercesuite.saparticlemodel.articlecomponent.dao.impl.ArticleComponentDAOImpl
All Implemented Interfaces:
ArticleComponentDAO, de.hybris.platform.servicelayer.internal.dao.Dao

public class ArticleComponentDAOImpl extends de.hybris.platform.servicelayer.internal.dao.AbstractItemDao implements ArticleComponentDAO
Data access object for structured article components.
  • Constructor Details

    • ArticleComponentDAOImpl

      public ArticleComponentDAOImpl()
  • Method Details

    • setProductService

      public void setProductService(de.hybris.platform.product.ProductService productService)
      Parameters:
      productService - the productService to set
    • setCatalogVersionService

      public void setCatalogVersionService(de.hybris.platform.catalog.CatalogVersionService catalogVersionService)
      Parameters:
      catalogVersionService - the catalogVersionService to set
    • findComponentsOfStructuredArticle

      public List<ArticleComponentModel> findComponentsOfStructuredArticle(ProductModel product)
      Description copied from interface: ArticleComponentDAO
      Find components of the structured article identified by its model.
      Specified by:
      findComponentsOfStructuredArticle in interface ArticleComponentDAO
      Parameters:
      product - the structured article
      Returns:
      All components of the given article.
    • findComponentsOfStructuredArticle

      public List<ArticleComponentModel> findComponentsOfStructuredArticle(String productCode, String catalog, String catalogVersion)
      Description copied from interface: ArticleComponentDAO
      Find components of the structured article identified by code, catalog and catalog version.
      Specified by:
      findComponentsOfStructuredArticle in interface ArticleComponentDAO
      Parameters:
      productCode - the code of the structured article
      catalog - the catalog id of the catalog the article belongs to
      catalogVersion - the catalog version of the catalog
      Returns:
      All components of the given article
    • findStructuredArticlesOfComponent

      public List<ProductModel> findStructuredArticlesOfComponent(ProductModel componentArticle)
      Description copied from interface: ArticleComponentDAO
      Find articles having the given article as component. The component is identified by its model.
      Specified by:
      findStructuredArticlesOfComponent in interface ArticleComponentDAO
      Parameters:
      componentArticle - the structured article component
      Returns:
      list of articles containing the given component
    • findStructuredArticlesOfComponent

      public List<ProductModel> findStructuredArticlesOfComponent(String componentProductCode, String catalog, String catalogVersion)
      Description copied from interface: ArticleComponentDAO
      Find articles having the given article as component. The component is identified by its code, the catalog and catalog version.
      Specified by:
      findStructuredArticlesOfComponent in interface ArticleComponentDAO
      Parameters:
      componentProductCode - the structured article component id
      catalog - the catalog id of the catalog the article belongs to
      catalogVersion - the catalog version of the catalog
      Returns:
      list of articles containing the given component
    • isComponentArticle

      public boolean isComponentArticle(ProductModel componentProduct)
      Description copied from interface: ArticleComponentDAO
      Check if a given article is part of a component list.
      Specified by:
      isComponentArticle in interface ArticleComponentDAO
      Parameters:
      componentProduct - the article that shall be checked to be part of a component list
      Returns:
      true if the article is a component, false if not
    • isComponentArticle

      public boolean isComponentArticle(String componentProductCode, String catalog, String catalogVersion)
      Description copied from interface: ArticleComponentDAO
      Check if a given article is part of a component list.
      Specified by:
      isComponentArticle in interface ArticleComponentDAO
      Parameters:
      componentProductCode - the article that shall be checked to be part of a component list
      catalog - the catalog id of the catalog the article belongs to
      catalogVersion - the catalog version of the catalog
      Returns:
      true if the article is a component, false if not
    • findComponentArticlesOfStructuredArticle

      public List<ProductModel> findComponentArticlesOfStructuredArticle(ProductModel product)
      Description copied from interface: ArticleComponentDAO
      Find the component article models of the article components that are part of the structured article identified by its model.
      Specified by:
      findComponentArticlesOfStructuredArticle in interface ArticleComponentDAO
      Parameters:
      product - the model of the structured article
      Returns:
      list of the article models of the components of the structured article
    • findComponentArticlesOfStructuredArticle

      public List<ProductModel> findComponentArticlesOfStructuredArticle(String articleCode, String catalog, String catalogVersion)
      Description copied from interface: ArticleComponentDAO
      Find the component article models of the article components that are part of the structured article identified by its code, catalog and catalog version.
      Specified by:
      findComponentArticlesOfStructuredArticle in interface ArticleComponentDAO
      Parameters:
      articleCode - the article code of the structured article
      catalog - the catalog the structured article belongs to
      catalogVersion - the catalog version of the catalog
      Returns:
      list of the article models of the components of the structured article