Class ArticleComponentDAOImpl

  • All Implemented Interfaces:
    ArticleComponentDAO, de.hybris.platform.servicelayer.internal.dao.Dao

    public class ArticleComponentDAOImpl
    extends de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
    implements ArticleComponentDAO
    Data access object for structured article components.
    • Field Summary

      • Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao

        flexibleSearchService, modelService
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<ProductModel> findComponentArticlesOfStructuredArticle​(ProductModel product)
      Find the component article models of the article components that are part of the structured article identified by its model.
      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.
      java.util.List<ArticleComponentModel> findComponentsOfStructuredArticle​(ProductModel product)
      Find components of the structured article identified by its model.
      java.util.List<ArticleComponentModel> findComponentsOfStructuredArticle​(java.lang.String productCode, java.lang.String catalog, java.lang.String catalogVersion)
      Find components of the structured article identified by code, catalog and catalog version.
      java.util.List<ProductModel> findStructuredArticlesOfComponent​(ProductModel componentArticle)
      Find articles having the given article as component.
      java.util.List<ProductModel> findStructuredArticlesOfComponent​(java.lang.String componentProductCode, java.lang.String catalog, java.lang.String catalogVersion)
      Find articles having the given article as component.
      boolean isComponentArticle​(ProductModel componentProduct)
      Check if a given article is part of a component list.
      boolean isComponentArticle​(java.lang.String componentProductCode, java.lang.String catalog, java.lang.String catalogVersion)
      Check if a given article is part of a component list.
      void setCatalogVersionService​(de.hybris.platform.catalog.CatalogVersionService catalogVersionService)  
      void setProductService​(de.hybris.platform.product.ProductService productService)  
      • Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao

        getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArticleComponentDAOImpl

        public ArticleComponentDAOImpl()
    • Method Detail

      • setProductService

        public void setProductService​(de.hybris.platform.product.ProductService productService)
        Parameters:
        productService - the productService to set
      • setCatalogVersionService

        public void setCatalogVersionService​(de.hybris.platform.catalog.CatalogVersionService catalogVersionService)
        Parameters:
        catalogVersionService - the catalogVersionService to set
      • findComponentsOfStructuredArticle

        public java.util.List<ArticleComponentModel> findComponentsOfStructuredArticle​(java.lang.String productCode,
                                                                                       java.lang.String catalog,
                                                                                       java.lang.String catalogVersion)
        Description copied from interface: ArticleComponentDAO
        Find components of the structured article identified by code, catalog and catalog version.
        Specified by:
        findComponentsOfStructuredArticle in interface ArticleComponentDAO
        Parameters:
        productCode - 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
      • findStructuredArticlesOfComponent

        public java.util.List<ProductModel> findStructuredArticlesOfComponent​(ProductModel componentArticle)
        Description copied from interface: ArticleComponentDAO
        Find articles having the given article as component. The component is identified by its model.
        Specified by:
        findStructuredArticlesOfComponent in interface ArticleComponentDAO
        Parameters:
        componentArticle - the structured article component
        Returns:
        list of articles containing the given component
      • findStructuredArticlesOfComponent

        public java.util.List<ProductModel> findStructuredArticlesOfComponent​(java.lang.String componentProductCode,
                                                                              java.lang.String catalog,
                                                                              java.lang.String catalogVersion)
        Description copied from interface: ArticleComponentDAO
        Find articles having the given article as component. The component is identified by its code, the catalog and catalog version.
        Specified by:
        findStructuredArticlesOfComponent in interface ArticleComponentDAO
        Parameters:
        componentProductCode - 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
      • isComponentArticle

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

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

        public java.util.List<ProductModel> findComponentArticlesOfStructuredArticle​(ProductModel product)
        Description copied from interface: ArticleComponentDAO
        Find the component article models of the article components that are part of the structured article identified by its model.
        Specified by:
        findComponentArticlesOfStructuredArticle in interface ArticleComponentDAO
        Parameters:
        product - the model of the structured article
        Returns:
        list of the article models of the components of the structured article
      • findComponentArticlesOfStructuredArticle

        public java.util.List<ProductModel> findComponentArticlesOfStructuredArticle​(java.lang.String articleCode,
                                                                                     java.lang.String catalog,
                                                                                     java.lang.String catalogVersion)
        Description copied from interface: ArticleComponentDAO
        Find the component article models of the article components that are part of the structured article identified by its code, catalog and catalog version.
        Specified by:
        findComponentArticlesOfStructuredArticle in interface ArticleComponentDAO
        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