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 Summary
Modifier and TypeMethodDescriptionFind the component article models of the article components that are part of the structured article identified by its model.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.Find components of the structured article identified by its model.findComponentsOfStructuredArticle(String articleCode, String catalog, String catalogVersion) Find components of the structured article identified by code, catalog and catalog version.findStructuredArticlesOfComponent(ProductModel componentArticle) Find articles having the given article as component.findStructuredArticlesOfComponent(String componentArticleCode, String catalog, String catalogVersion) Find articles having the given article as component.booleanisComponentArticle(ProductModel componentArticle) Check if a given article is part of a component list.booleanisComponentArticle(String componentArticleCode, String catalog, String catalogVersion) Check if a given article is part of a component list.
-
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 articlecatalog- the catalog id of the catalog the article belongs tocatalogVersion- the catalog version of the catalog- Returns:
- All components of the given article
-
findComponentsOfStructuredArticle
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 idcatalog- the catalog id of the catalog the article belongs tocatalogVersion- the catalog version of the catalog- Returns:
- list of articles containing the given component
-
findStructuredArticlesOfComponent
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
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
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 listcatalog- the catalog id of the catalog the article belongs tocatalogVersion- the catalog version of the catalog- Returns:
- true if the article is a component, false if not
-
findComponentArticlesOfStructuredArticle
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 articlecatalog- the catalog the structured article belongs tocatalogVersion- the catalog version of the catalog- Returns:
- list of the article models of the components of the structured article
-