Class ArticleComponentServiceImpl

java.lang.Object
com.sap.retail.commercesuite.saparticlemodel.articlecomponent.impl.ArticleComponentServiceImpl
All Implemented Interfaces:
ArticleComponentService

public class ArticleComponentServiceImpl extends Object implements ArticleComponentService
  • Constructor Details

    • ArticleComponentServiceImpl

      public ArticleComponentServiceImpl()
  • Method Details

    • setArticleComponentDAO

      public void setArticleComponentDAO(ArticleComponentDAO articleComponentDAO)
      Setter for structured article component dao bean.
      Parameters:
      articleComponentDAO - the articleComponentDAO to set
    • getComponentsOfStructuredArticle

      public List<ArticleComponentModel> getComponentsOfStructuredArticle(ProductModel product)
      Description copied from interface: ArticleComponentService
      Get article components by product model of the structured article.
      Specified by:
      getComponentsOfStructuredArticle in interface ArticleComponentService
      Parameters:
      product - the article model
      Returns:
      article components of given article
    • getComponentsOfStructuredArticle

      public List<ArticleComponentModel> getComponentsOfStructuredArticle(String productCode, String catalog, String catalogVersion)
      Description copied from interface: ArticleComponentService
      Get article components by article code, catalog ID and catalog version.
      Specified by:
      getComponentsOfStructuredArticle in interface ArticleComponentService
      Parameters:
      productCode - the article code
      catalog - the catalog ID
      catalogVersion - the catalog version
      Returns:
      article components of given article
    • getStructuredArticlesOfComponent

      public List<ProductModel> getStructuredArticlesOfComponent(ProductModel componentProduct)
      Description copied from interface: ArticleComponentService
      Get Articles that include the given article as component.
      Specified by:
      getStructuredArticlesOfComponent in interface ArticleComponentService
      Parameters:
      componentProduct - the component article model
      Returns:
      the structured articles that contain the component article
    • getStructuredArticlesOfComponent

      public List<ProductModel> getStructuredArticlesOfComponent(String componentArticleCode, String catalog, String catalogVersion)
      Description copied from interface: ArticleComponentService
      Get Articles that include the given article as component.
      Specified by:
      getStructuredArticlesOfComponent in interface ArticleComponentService
      Parameters:
      componentArticleCode - the component article code
      catalog - the catalog ID
      catalogVersion - the catalog version
      Returns:
      the structured articles that contain the component article
    • isStructuredArticleComponent

      public boolean isStructuredArticleComponent(ProductModel componentProduct)
      Description copied from interface: ArticleComponentService
      Check if a given article is part of a component list.
      Specified by:
      isStructuredArticleComponent in interface ArticleComponentService
      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
    • isStructuredArticleComponent

      public boolean isStructuredArticleComponent(String componentProductCode, String catalog, String catalogVersion)
      Description copied from interface: ArticleComponentService
      Check if a given article is part of a component list.
      Specified by:
      isStructuredArticleComponent in interface ArticleComponentService
      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
    • getComponentArticlesOfStructuredArticles

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

      public List<ProductModel> getComponentArticlesOfStructuredArticles(String productCode, String catalog, String catalogVersion)
      Description copied from interface: ArticleComponentService
      Get the component article models of the components that are part of the structured article identified by its article code, catalog and catalog version.
      Specified by:
      getComponentArticlesOfStructuredArticles in interface ArticleComponentService
      Parameters:
      productCode - 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