Class ArticleComponentDAOImpl
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- com.sap.retail.commercesuite.saparticlemodel.articlecomponent.dao.impl.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.
-
-
Constructor Summary
Constructors Constructor Description ArticleComponentDAOImpl()
-
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.booleanisComponentArticle(ProductModel componentProduct)Check if a given article is part of a component list.booleanisComponentArticle(java.lang.String componentProductCode, java.lang.String catalog, java.lang.String catalogVersion)Check if a given article is part of a component list.voidsetCatalogVersionService(de.hybris.platform.catalog.CatalogVersionService catalogVersionService)voidsetProductService(de.hybris.platform.product.ProductService productService)
-
-
-
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(ProductModel product)
Description copied from interface:ArticleComponentDAOFind components of the structured article identified by its model.- Specified by:
findComponentsOfStructuredArticlein interfaceArticleComponentDAO- Parameters:
product- the structured article- Returns:
- All components of the given article.
-
findComponentsOfStructuredArticle
public java.util.List<ArticleComponentModel> findComponentsOfStructuredArticle(java.lang.String productCode, java.lang.String catalog, java.lang.String catalogVersion)
Description copied from interface:ArticleComponentDAOFind components of the structured article identified by code, catalog and catalog version.- Specified by:
findComponentsOfStructuredArticlein interfaceArticleComponentDAO- Parameters:
productCode- 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
-
findStructuredArticlesOfComponent
public java.util.List<ProductModel> findStructuredArticlesOfComponent(ProductModel componentArticle)
Description copied from interface:ArticleComponentDAOFind articles having the given article as component. The component is identified by its model.- Specified by:
findStructuredArticlesOfComponentin interfaceArticleComponentDAO- 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:ArticleComponentDAOFind articles having the given article as component. The component is identified by its code, the catalog and catalog version.- Specified by:
findStructuredArticlesOfComponentin interfaceArticleComponentDAO- Parameters:
componentProductCode- 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
-
isComponentArticle
public boolean isComponentArticle(ProductModel componentProduct)
Description copied from interface:ArticleComponentDAOCheck if a given article is part of a component list.- Specified by:
isComponentArticlein interfaceArticleComponentDAO- 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:ArticleComponentDAOCheck if a given article is part of a component list.- Specified by:
isComponentArticlein interfaceArticleComponentDAO- Parameters:
componentProductCode- 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
public java.util.List<ProductModel> findComponentArticlesOfStructuredArticle(ProductModel product)
Description copied from interface:ArticleComponentDAOFind the component article models of the article components that are part of the structured article identified by its model.- Specified by:
findComponentArticlesOfStructuredArticlein interfaceArticleComponentDAO- 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:ArticleComponentDAOFind 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:
findComponentArticlesOfStructuredArticlein interfaceArticleComponentDAO- 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
-
-