org.broadleafcommerce.core.catalog.service
Class CatalogServiceImpl
java.lang.Object
org.broadleafcommerce.core.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
@Deprecated
public Category findCategoryByName(java.lang.String categoryName)
- Deprecated.
- Description copied from interface:
CatalogService
- Retrieve a
Category instance based on its name property.
Broadleaf allows more than one category to have the same name. Calling
this method could produce an exception in such situations. Use
CatalogService.findCategoriesByName(String) instead.
- Specified by:
findCategoryByName in interface CatalogService
- Parameters:
categoryName - the category name to search by
- Returns:
- the Category instance matching the categoryName
findCategoriesByName
public java.util.List<Category> findCategoriesByName(java.lang.String categoryName)
- Description copied from interface:
CatalogService
- Retrieve a list of
Category instance based on the name
property.
- Specified by:
findCategoriesByName in interface CatalogService
- Parameters:
categoryName - the category name to search by
- Returns:
- the list of matching Category instances
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
findAllSubCategories
public java.util.List<Category> findAllSubCategories(Category category)
- Specified by:
findAllSubCategories in interface CatalogService
findActiveSubCategoriesByCategory
public java.util.List<Category> findActiveSubCategoriesByCategory(Category category)
- Specified by:
findActiveSubCategoriesByCategory 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<java.lang.Long>> getChildCategoryURLMapByCategoryId(java.lang.Long categoryId)
- Specified by:
getChildCategoryURLMapByCategoryId in interface CatalogService
createCategory
public Category createCategory()
- Specified by:
createCategory in interface CatalogService
createSku
public Sku createSku()
- Specified by:
createSku in interface CatalogService
createProduct
public Product createProduct(ProductType productType)
- Specified by:
createProduct in interface CatalogService
Copyright © 2012. All Rights Reserved.