Class ArticleComponentServiceImpl

    • Constructor Detail

      • ArticleComponentServiceImpl

        public ArticleComponentServiceImpl()
    • Method Detail

      • setArticleComponentDAO

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

        public java.util.List<ArticleComponentModel> getComponentsOfStructuredArticle​(java.lang.String productCode,
                                                                                      java.lang.String catalog,
                                                                                      java.lang.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 java.util.List<ProductModel> getStructuredArticlesOfComponent​(java.lang.String componentArticleCode,
                                                                             java.lang.String catalog,
                                                                             java.lang.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​(java.lang.String componentProductCode,
                                                    java.lang.String catalog,
                                                    java.lang.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 java.util.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 java.util.List<ProductModel> getComponentArticlesOfStructuredArticles​(java.lang.String productCode,
                                                                                     java.lang.String catalog,
                                                                                     java.lang.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