org.broadleafcommerce.catalog.service
Class CatalogServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.catalog.service.CatalogServiceImpl
All Implemented Interfaces:
CatalogService

@Service(value="blCatalogService")
public class CatalogServiceImpl
extends java.lang.Object
implements CatalogService


Field Summary
protected  CategoryDao categoryDao
           
protected  ProductDao productDao
           
protected  SkuDao skuDao
           
 
Constructor Summary
CatalogServiceImpl()
           
 
Method Summary
 java.util.List<Product> findActiveProductsByCategory(Category category, java.util.Date currentDate)
           
 java.util.List<Category> findAllCategories()
           
 java.util.List<Product> findAllProducts()
           
 java.util.List<Sku> findAllSkus()
           
 Category findCategoryById(java.lang.Long categoryId)
           
 Category findCategoryByName(java.lang.String categoryName)
           
 Product findProductById(java.lang.Long productId)
           
 java.util.List<Product> findProductsByName(java.lang.String searchName)
           
 java.util.List<Product> findProductsForCategory(Category category)
           
 Sku findSkuById(java.lang.Long skuId)
           
 java.util.List<Sku> findSkusByIds(java.util.List<java.lang.Long> ids)
           
 java.util.Map<java.lang.String,java.util.List<Category>> getChildCategoryURLMapByCategoryId(java.lang.Long categoryId)
           
 void removeCategory(Category category)
           
 Category saveCategory(Category category)
           
 Product saveProduct(Product product)
           
 Sku saveSku(Sku sku)
           
 void setCategoryDao(CategoryDao categoryDao)
           
 void setProductDao(ProductDao productDao)
           
 void setSkuDao(SkuDao skuDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categoryDao

protected CategoryDao categoryDao

productDao

protected ProductDao productDao

skuDao

protected SkuDao skuDao
Constructor Detail

CatalogServiceImpl

public CatalogServiceImpl()
Method Detail

findProductById

public Product findProductById(java.lang.Long productId)
Specified by:
findProductById in interface CatalogService

findProductsByName

public java.util.List<Product> findProductsByName(java.lang.String searchName)
Specified by:
findProductsByName in interface CatalogService

findActiveProductsByCategory

public java.util.List<Product> findActiveProductsByCategory(Category category,
                                                            java.util.Date currentDate)
Specified by:
findActiveProductsByCategory in interface CatalogService

saveProduct

public Product saveProduct(Product product)
Specified by:
saveProduct in interface CatalogService

findCategoryById

public Category findCategoryById(java.lang.Long categoryId)
Specified by:
findCategoryById in interface CatalogService

findCategoryByName

public Category findCategoryByName(java.lang.String categoryName)
Specified by:
findCategoryByName in interface CatalogService

saveCategory

public Category saveCategory(Category category)
Specified by:
saveCategory in interface CatalogService

removeCategory

public void removeCategory(Category category)
Specified by:
removeCategory in interface CatalogService

findAllCategories

public java.util.List<Category> findAllCategories()
Specified by:
findAllCategories in interface CatalogService

findAllProducts

public java.util.List<Product> findAllProducts()
Specified by:
findAllProducts in interface CatalogService

findAllSkus

public java.util.List<Sku> findAllSkus()
Specified by:
findAllSkus in interface CatalogService

findSkuById

public Sku findSkuById(java.lang.Long skuId)
Specified by:
findSkuById in interface CatalogService

saveSku

public Sku saveSku(Sku sku)
Specified by:
saveSku in interface CatalogService

findSkusByIds

public java.util.List<Sku> findSkusByIds(java.util.List<java.lang.Long> ids)
Specified by:
findSkusByIds in interface CatalogService

setProductDao

public void setProductDao(ProductDao productDao)

setSkuDao

public void setSkuDao(SkuDao skuDao)

findProductsForCategory

public java.util.List<Product> findProductsForCategory(Category category)
Specified by:
findProductsForCategory in interface CatalogService

setCategoryDao

public void setCategoryDao(CategoryDao categoryDao)

getChildCategoryURLMapByCategoryId

public java.util.Map<java.lang.String,java.util.List<Category>> getChildCategoryURLMapByCategoryId(java.lang.Long categoryId)
Specified by:
getChildCategoryURLMapByCategoryId in interface CatalogService


Copyright © 2010. All Rights Reserved.