@Service(value="blCatalogService") public class CatalogServiceImpl extends Object implements CatalogService
| Modifier and Type | Field and Description |
|---|---|
protected CategoryDao |
categoryDao |
protected CatalogServiceExtensionManager |
extensionManager |
protected ProductDao |
productDao |
protected ProductOptionDao |
productOptionDao |
protected SkuDao |
skuDao |
| Constructor and Description |
|---|
CatalogServiceImpl() |
protected CategoryDao categoryDao
protected ProductDao productDao
protected SkuDao skuDao
protected ProductOptionDao productOptionDao
protected CatalogServiceExtensionManager extensionManager
public Product findProductById(Long productId)
findProductById in interface CatalogServicepublic List<Product> findProductsByName(String searchName)
findProductsByName in interface CatalogServicepublic List<Product> findProductsByName(String searchName, int limit, int offset)
CatalogServiceProduct instances whose name starts with
or is equal to the passed in search parameter. ResfindProductsByName in interface CatalogServicelimit - the maximum number of resultsoffset - the starting point in the record setpublic List<Product> findActiveProductsByCategory(Category category)
findActiveProductsByCategory in interface CatalogServicepublic List<Product> findFilteredActiveProductsByCategory(Category category, ProductSearchCriteria searchCriteria)
CatalogServicefindFilteredActiveProductsByCategory in interface CatalogServicepublic List<Product> findFilteredActiveProductsByQuery(String query, ProductSearchCriteria searchCriteria)
CatalogServicefindFilteredActiveProductsByQuery in interface CatalogServicepublic List<Product> findActiveProductsByCategory(Category category, int limit, int offset)
CatalogServiceCatalogService.findActiveProductsByCategory(Category) but allowing for pagination.findActiveProductsByCategory in interface CatalogService@Deprecated public List<Product> findActiveProductsByCategory(Category category, Date currentDate)
findActiveProductsByCategory in interface CatalogService@Deprecated public List<Product> findFilteredActiveProductsByCategory(Category category, Date currentDate, ProductSearchCriteria searchCriteria)
findFilteredActiveProductsByCategory in interface CatalogService@Deprecated public List<Product> findFilteredActiveProductsByQuery(String query, Date currentDate, ProductSearchCriteria searchCriteria)
findFilteredActiveProductsByQuery in interface CatalogService@Deprecated public List<Product> findActiveProductsByCategory(Category category, Date currentDate, int limit, int offset)
findActiveProductsByCategory in interface CatalogServicepublic List<ProductBundle> findAutomaticProductBundles()
CatalogServicefindAutomaticProductBundles in interface CatalogService@Transactional(value="blTransactionManager") public Product saveProduct(Product product)
saveProduct in interface CatalogServicepublic Category findCategoryById(Long categoryId)
findCategoryById in interface CatalogService@Deprecated public Category findCategoryByName(String categoryName)
CatalogServiceCategory 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.findCategoryByName in interface CatalogServicecategoryName - the category name to search bypublic List<Category> findCategoriesByName(String categoryName)
CatalogServiceCategory instance based on the name
property.findCategoriesByName in interface CatalogServicecategoryName - the category name to search bypublic List<Category> findCategoriesByName(String categoryName, int limit, int offset)
CatalogServiceCategory instances based on the search criteriafindCategoriesByName in interface CatalogServicecategoryName - the name of the category to search bylimit - the maximum number of results to returnoffset - the starting point of the records to return@Transactional(value="blTransactionManager") public Category saveCategory(Category category)
saveCategory in interface CatalogService@Transactional(value="blTransactionManager") public void removeCategory(Category category)
removeCategory in interface CatalogService@Transactional(value="blTransactionManager") public void removeProduct(Product product)
removeProduct in interface CatalogServicepublic List<Category> findAllCategories()
findAllCategories in interface CatalogServicepublic List<Category> findAllCategories(int limit, int offset)
findAllCategories in interface CatalogServicepublic List<Category> findAllParentCategories()
findAllParentCategories in interface CatalogServicepublic List<Category> findAllSubCategories(Category category)
findAllSubCategories in interface CatalogServicepublic List<Category> findAllSubCategories(Category category, int limit, int offset)
findAllSubCategories in interface CatalogServicepublic List<Category> findActiveSubCategoriesByCategory(Category category)
findActiveSubCategoriesByCategory in interface CatalogServicepublic List<Category> findActiveSubCategoriesByCategory(Category category, int limit, int offset)
findActiveSubCategoriesByCategory in interface CatalogServicepublic List<Product> findAllProducts()
findAllProducts in interface CatalogServicepublic List<Product> findAllProducts(int limit, int offset)
findAllProducts in interface CatalogServicepublic List<Sku> findAllSkus()
findAllSkus in interface CatalogServicepublic Sku findSkuById(Long skuId)
findSkuById in interface CatalogService@Transactional(value="blTransactionManager") public Sku saveSku(Sku sku)
saveSku in interface CatalogService@Transactional(value="blTransactionManager") public SkuFee saveSkuFee(SkuFee fee)
saveSkuFee in interface CatalogServicepublic List<Sku> findSkusByIds(List<Long> ids)
findSkusByIds in interface CatalogServicepublic void setProductDao(ProductDao productDao)
public void setSkuDao(SkuDao skuDao)
public List<Product> findProductsForCategory(Category category)
findProductsForCategory in interface CatalogServicepublic List<Product> findProductsForCategory(Category category, int limit, int offset)
findProductsForCategory in interface CatalogServicepublic void setCategoryDao(CategoryDao categoryDao)
@Deprecated public Map<String,List<Long>> getChildCategoryURLMapByCategoryId(Long categoryId)
CatalogServicegetChildCategoryURLMapByCategoryId in interface CatalogServicecategoryId - the parent category to which the children belongpublic Category createCategory()
createCategory in interface CatalogServicepublic Sku createSku()
createSku in interface CatalogServicepublic Product createProduct(ProductType productType)
createProduct in interface CatalogServicepublic List<ProductOption> readAllProductOptions()
readAllProductOptions in interface CatalogService@Transactional(value="blTransactionManager") public ProductOption saveProductOption(ProductOption option)
saveProductOption in interface CatalogServicepublic ProductOption findProductOptionById(Long productOptionId)
findProductOptionById in interface CatalogServicepublic ProductOptionValue findProductOptionValueById(Long productOptionValueId)
findProductOptionValueById in interface CatalogServicepublic Category findCategoryByURI(String uri)
CatalogServicefindCategoryByURI in interface CatalogServicepublic Product findProductByURI(String uri)
CatalogServicefindProductByURI in interface CatalogServiceCopyright © 2014. All Rights Reserved.