Interface ArticleComponentService

  • All Known Implementing Classes:
    ArticleComponentServiceImpl

    public interface ArticleComponentService
    Service interface to get product component related data.
    • Method Detail

      • getComponentsOfStructuredArticle

        java.util.List<ArticleComponentModel> getComponentsOfStructuredArticle​(ProductModel article)
        Get article components by product model of the structured article.
        Parameters:
        article - the article model
        Returns:
        article components of given article
      • getComponentsOfStructuredArticle

        java.util.List<ArticleComponentModel> getComponentsOfStructuredArticle​(java.lang.String articleCode,
                                                                               java.lang.String catalog,
                                                                               java.lang.String catalogVersion)
        Get article components by article code, catalog ID and catalog version.
        Parameters:
        articleCode - the article code
        catalog - the catalog ID
        catalogVersion - the catalog version
        Returns:
        article components of given article
      • getStructuredArticlesOfComponent

        java.util.List<ProductModel> getStructuredArticlesOfComponent​(ProductModel componentArticle)
        Get Articles that include the given article as component.
        Parameters:
        componentArticle - the component article model
        Returns:
        the structured articles that contain the component article
      • getStructuredArticlesOfComponent

        java.util.List<ProductModel> getStructuredArticlesOfComponent​(java.lang.String componentArticleCode,
                                                                      java.lang.String catalog,
                                                                      java.lang.String catalogVersion)
        Get Articles that include the given article as component.
        Parameters:
        componentArticleCode - the component article code
        catalog - the catalog ID
        catalogVersion - the catalog version
        Returns:
        the structured articles that contain the component article
      • isStructuredArticleComponent

        boolean isStructuredArticleComponent​(ProductModel componentArticle)
        Check if a given article is part of a component list.
        Parameters:
        componentArticle - 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

        boolean isStructuredArticleComponent​(java.lang.String componentArticleCode,
                                             java.lang.String catalog,
                                             java.lang.String catalogVersion)
        Check if a given article is part of a component list.
        Parameters:
        componentArticleCode - 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

        java.util.List<ProductModel> getComponentArticlesOfStructuredArticles​(ProductModel article)
        Get the component article models of the components that are part of the structured article identified by its model.
        Parameters:
        article - the article model of the structured article
        Returns:
        list of the article models of the components of the structured article
      • getComponentArticlesOfStructuredArticles

        java.util.List<ProductModel> getComponentArticlesOfStructuredArticles​(java.lang.String articleCode,
                                                                              java.lang.String catalog,
                                                                              java.lang.String catalogVersion)
        Get the component article models of the components that are part of the structured article identified by its article code, catalog and catalog version.
        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