org.broadleafcommerce.catalog.service
Class CatalogServiceImpl
java.lang.Object
org.broadleafcommerce.catalog.service.CatalogServiceImpl
- All Implemented Interfaces:
- CatalogService
@Service(value="blCatalogService")
public class CatalogServiceImpl
- extends java.lang.Object
- implements CatalogService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
categoryDao
protected CategoryDao categoryDao
productDao
protected ProductDao productDao
skuDao
protected SkuDao skuDao
CatalogServiceImpl
public CatalogServiceImpl()
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.