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.
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
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 productCode, 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 componentProductCode, String catalog, 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(String componentProductCode, String catalog, 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) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
ArticleComponentDAOImpl
public ArticleComponentDAOImpl()
-
-
Method Details
-
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
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 List<ArticleComponentModel> findComponentsOfStructuredArticle(String productCode, String catalog, 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
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 List<ProductModel> findStructuredArticlesOfComponent(String componentProductCode, String catalog, 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
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(String componentProductCode, String catalog, 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
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 List<ProductModel> findComponentArticlesOfStructuredArticle(String articleCode, String catalog, 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
-