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()
           
 java.util.List<Product> findActiveProductsByCategory(Category category, java.util.Date currentDate)
           
 java.util.List<Category> findActiveSubCategoriesByCategory(Category category)
           
 java.util.List<Category> findAllCategories()
           
 java.util.List<Product> findAllProducts()
           
 java.util.List<Sku> findAllSkus()
           
 java.util.List<Category> findAllSubCategories(Category category)
           
 java.util.List<Category> findCategoriesByName(java.lang.String categoryName)
          Retrieve a list of Category instance based on the name property.
 Category findCategoryById(java.lang.Long categoryId)
           
 Category findCategoryByName(java.lang.String categoryName)
          Deprecated. 
 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<java.lang.Long>> getChildCategoryURLMapByCategoryId(java.lang.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(java.lang.Long productId)

findProductsByName

java.util.List<Product> findProductsByName(java.lang.String searchName)

findActiveProductsByCategory

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

saveCategory

Category saveCategory(Category category)

removeCategory

void removeCategory(Category category)

findCategoryById

Category findCategoryById(java.lang.Long categoryId)

findCategoryByName

@Deprecated
Category findCategoryByName(java.lang.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

java.util.List<Category> findCategoriesByName(java.lang.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

java.util.List<Category> findAllCategories()

findAllProducts

java.util.List<Product> findAllProducts()

findProductsForCategory

java.util.List<Product> findProductsForCategory(Category category)

saveSku

Sku saveSku(Sku sku)

findAllSkus

java.util.List<Sku> findAllSkus()

findSkusByIds

java.util.List<Sku> findSkusByIds(java.util.List<java.lang.Long> ids)

findSkuById

Sku findSkuById(java.lang.Long skuId)

getChildCategoryURLMapByCategoryId

java.util.Map<java.lang.String,java.util.List<java.lang.Long>> getChildCategoryURLMapByCategoryId(java.lang.Long categoryId)

createCategory

Category createCategory()

createSku

Sku createSku()

createProduct

Product createProduct(ProductType productType)

findAllSubCategories

java.util.List<Category> findAllSubCategories(Category category)

findActiveSubCategoriesByCategory

java.util.List<Category> findActiveSubCategoriesByCategory(Category category)


Copyright © 2012. All Rights Reserved.