org.broadleafcommerce.core.catalog.service
Interface CatalogService
- All Known Implementing Classes:
- CatalogServiceImpl
public interface CatalogService
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.