Interface ArticleComponentDAO

  • All Superinterfaces:
    de.hybris.platform.servicelayer.internal.dao.Dao
    All Known Implementing Classes:
    ArticleComponentDAOImpl

    public interface ArticleComponentDAO
    extends de.hybris.platform.servicelayer.internal.dao.Dao
    Data access object for structured article components.
    • Method Detail

      • findComponentsOfStructuredArticle

        java.util.List<ArticleComponentModel> findComponentsOfStructuredArticle​(java.lang.String articleCode,
                                                                                java.lang.String catalog,
                                                                                java.lang.String catalogVersion)
        Find components of the structured article identified by code, catalog and catalog version.
        Parameters:
        articleCode - 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
      • findComponentsOfStructuredArticle

        java.util.List<ArticleComponentModel> findComponentsOfStructuredArticle​(ProductModel article)
        Find components of the structured article identified by its model.
        Parameters:
        article - the structured article
        Returns:
        All components of the given article.
      • findStructuredArticlesOfComponent

        java.util.List<ProductModel> findStructuredArticlesOfComponent​(java.lang.String componentArticleCode,
                                                                       java.lang.String catalog,
                                                                       java.lang.String catalogVersion)
        Find articles having the given article as component. The component is identified by its code, the catalog and catalog version.
        Parameters:
        componentArticleCode - 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
      • findStructuredArticlesOfComponent

        java.util.List<ProductModel> findStructuredArticlesOfComponent​(ProductModel componentArticle)
        Find articles having the given article as component. The component is identified by its model.
        Parameters:
        componentArticle - the structured article component
        Returns:
        list of articles containing the given component
      • isComponentArticle

        boolean isComponentArticle​(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
      • isComponentArticle

        boolean isComponentArticle​(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
      • findComponentArticlesOfStructuredArticle

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

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