Class ArticleComponentServiceImpl
- java.lang.Object
-
- com.sap.retail.commercesuite.saparticlemodel.articlecomponent.impl.ArticleComponentServiceImpl
-
- All Implemented Interfaces:
ArticleComponentService
public class ArticleComponentServiceImpl extends java.lang.Object implements ArticleComponentService
-
-
Constructor Summary
Constructors Constructor Description ArticleComponentServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ProductModel>getComponentArticlesOfStructuredArticles(ProductModel product)Get the component article models of the components that are part of the structured article identified by its model.java.util.List<ProductModel>getComponentArticlesOfStructuredArticles(java.lang.String productCode, java.lang.String catalog, java.lang.String catalogVersion)Get the component article models of the components that are part of the structured article identified by its article code, catalog and catalog version.java.util.List<ArticleComponentModel>getComponentsOfStructuredArticle(ProductModel product)Get article components by product model of the structured article.java.util.List<ArticleComponentModel>getComponentsOfStructuredArticle(java.lang.String productCode, java.lang.String catalog, java.lang.String catalogVersion)Get article components by article code, catalog ID and catalog version.java.util.List<ProductModel>getStructuredArticlesOfComponent(ProductModel componentProduct)Get Articles that include the given article as component.java.util.List<ProductModel>getStructuredArticlesOfComponent(java.lang.String componentArticleCode, java.lang.String catalog, java.lang.String catalogVersion)Get Articles that include the given article as component.booleanisStructuredArticleComponent(ProductModel componentProduct)Check if a given article is part of a component list.booleanisStructuredArticleComponent(java.lang.String componentProductCode, java.lang.String catalog, java.lang.String catalogVersion)Check if a given article is part of a component list.voidsetArticleComponentDAO(ArticleComponentDAO articleComponentDAO)Setter for structured article component dao bean.
-
-
-
Method Detail
-
setArticleComponentDAO
public void setArticleComponentDAO(ArticleComponentDAO articleComponentDAO)
Setter for structured article component dao bean.- Parameters:
articleComponentDAO- the articleComponentDAO to set
-
getComponentsOfStructuredArticle
public java.util.List<ArticleComponentModel> getComponentsOfStructuredArticle(ProductModel product)
Description copied from interface:ArticleComponentServiceGet article components by product model of the structured article.- Specified by:
getComponentsOfStructuredArticlein interfaceArticleComponentService- Parameters:
product- the article model- Returns:
- article components of given article
-
getComponentsOfStructuredArticle
public java.util.List<ArticleComponentModel> getComponentsOfStructuredArticle(java.lang.String productCode, java.lang.String catalog, java.lang.String catalogVersion)
Description copied from interface:ArticleComponentServiceGet article components by article code, catalog ID and catalog version.- Specified by:
getComponentsOfStructuredArticlein interfaceArticleComponentService- Parameters:
productCode- the article codecatalog- the catalog IDcatalogVersion- the catalog version- Returns:
- article components of given article
-
getStructuredArticlesOfComponent
public java.util.List<ProductModel> getStructuredArticlesOfComponent(ProductModel componentProduct)
Description copied from interface:ArticleComponentServiceGet Articles that include the given article as component.- Specified by:
getStructuredArticlesOfComponentin interfaceArticleComponentService- Parameters:
componentProduct- the component article model- Returns:
- the structured articles that contain the component article
-
getStructuredArticlesOfComponent
public java.util.List<ProductModel> getStructuredArticlesOfComponent(java.lang.String componentArticleCode, java.lang.String catalog, java.lang.String catalogVersion)
Description copied from interface:ArticleComponentServiceGet Articles that include the given article as component.- Specified by:
getStructuredArticlesOfComponentin interfaceArticleComponentService- Parameters:
componentArticleCode- the component article codecatalog- the catalog IDcatalogVersion- the catalog version- Returns:
- the structured articles that contain the component article
-
isStructuredArticleComponent
public boolean isStructuredArticleComponent(ProductModel componentProduct)
Description copied from interface:ArticleComponentServiceCheck if a given article is part of a component list.- Specified by:
isStructuredArticleComponentin interfaceArticleComponentService- 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
-
isStructuredArticleComponent
public boolean isStructuredArticleComponent(java.lang.String componentProductCode, java.lang.String catalog, java.lang.String catalogVersion)Description copied from interface:ArticleComponentServiceCheck if a given article is part of a component list.- Specified by:
isStructuredArticleComponentin interfaceArticleComponentService- 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
-
getComponentArticlesOfStructuredArticles
public java.util.List<ProductModel> getComponentArticlesOfStructuredArticles(ProductModel product)
Description copied from interface:ArticleComponentServiceGet the component article models of the components that are part of the structured article identified by its model.- Specified by:
getComponentArticlesOfStructuredArticlesin interfaceArticleComponentService- Parameters:
product- the article model of the structured article- Returns:
- list of the article models of the components of the structured article
-
getComponentArticlesOfStructuredArticles
public java.util.List<ProductModel> getComponentArticlesOfStructuredArticles(java.lang.String productCode, java.lang.String catalog, java.lang.String catalogVersion)
Description copied from interface:ArticleComponentServiceGet the component article models of the components that are part of the structured article identified by its article code, catalog and catalog version.- Specified by:
getComponentArticlesOfStructuredArticlesin interfaceArticleComponentService- Parameters:
productCode- 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
-
-