org.broadleafcommerce.core.catalog.service
Interface CatalogService

All Known Implementing Classes:
CatalogServiceImpl

public interface CatalogService


Method Summary
 Category createCategory()
           
 Product createProduct(ProductType productType)
           
 Sku createSku()
           
 List<Product> findActiveProductsByCategory(Category category, Date currentDate)
           
 List<Category> findActiveSubCategoriesByCategory(Category category)
           
 List<Category> findAllCategories()
           
 List<Product> findAllProducts()
           
 List<Sku> findAllSkus()
           
 List<Category> findAllSubCategories(Category category)
           
 List<Category> findCategoriesByName(String categoryName)
          Retrieve a list of Category instance based on the name property.
 Category findCategoryById(Long categoryId)
           
 Category findCategoryByName(String categoryName)
          Deprecated. 
 Product findProductById(Long productId)
           
 List<Product> findProductsByName(String searchName)
           
 List<Product> findProductsForCategory(Category category)
           
 Sku findSkuById(Long skuId)
           
 List<Sku> findSkusByIds(List<Long> ids)
           
 Map<String,List<Long>> getChildCategoryURLMapByCategoryId(Long categoryId)
           
 void removeCategory(Category category)
           
 Category saveCategory(Category category)
           
 Product saveProduct(Product product)
           
 Sku saveSku(Sku sku)
           
 

Method Detail

saveProduct

Product saveProduct(Product product)

findProductById

Product findProductById(Long productId)

findProductsByName

List<Product> findProductsByName(String searchName)

findActiveProductsByCategory

List<Product> findActiveProductsByCategory(Category category,
                                           Date currentDate)

saveCategory

Category saveCategory(Category category)

removeCategory

void removeCategory(Category category)

findCategoryById

Category findCategoryById(Long categoryId)

findCategoryByName

@Deprecated
Category findCategoryByName(String categoryName)
Deprecated. 

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 findCategoriesByName(String) instead.

Parameters:
categoryName - the category name to search by
Returns:
the Category instance matching the categoryName

findCategoriesByName

List<Category> findCategoriesByName(String categoryName)
Retrieve a list of Category instance based on the name property.

Parameters:
categoryName - the category name to search by
Returns:
the list of matching Category instances

findAllCategories

List<Category> findAllCategories()

findAllProducts

List<Product> findAllProducts()

findProductsForCategory

List<Product> findProductsForCategory(Category category)

saveSku

Sku saveSku(Sku sku)

findAllSkus

List<Sku> findAllSkus()

findSkusByIds

List<Sku> findSkusByIds(List<Long> ids)

findSkuById

Sku findSkuById(Long skuId)

getChildCategoryURLMapByCategoryId

Map<String,List<Long>> getChildCategoryURLMapByCategoryId(Long categoryId)

createCategory

Category createCategory()

createSku

Sku createSku()

createProduct

Product createProduct(ProductType productType)

findAllSubCategories

List<Category> findAllSubCategories(Category category)

findActiveSubCategoriesByCategory

List<Category> findActiveSubCategoriesByCategory(Category category)


Copyright © 2012. All Rights Reserved.