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 Details

    • findComponentsOfStructuredArticle

      List<ArticleComponentModel> findComponentsOfStructuredArticle(String articleCode, String catalog, 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

      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

      List<ProductModel> findStructuredArticlesOfComponent(String componentArticleCode, String catalog, 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

      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(String componentArticleCode, String catalog, 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

      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

      List<ProductModel> findComponentArticlesOfStructuredArticle(String articleCode, String catalog, 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