|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.catalog.service.CatalogServiceImpl
@Service(value="blCatalogService") public class CatalogServiceImpl
| Field Summary | |
|---|---|
protected CategoryDao |
categoryDao
|
protected ProductDao |
productDao
|
protected ProductOptionDao |
productOptionDao
|
protected SkuDao |
skuDao
|
| Constructor Summary | |
|---|---|
CatalogServiceImpl()
|
|
| Method Summary | |
|---|---|
Category |
createCategory()
|
Product |
createProduct(ProductType productType)
|
Sku |
createSku()
|
List<Product> |
findActiveProductsByCategory(Category category,
Date currentDate)
|
List<Product> |
findActiveProductsByCategory(Category category,
Date currentDate,
int limit,
int offset)
|
List<Category> |
findActiveSubCategoriesByCategory(Category category)
|
List<Category> |
findActiveSubCategoriesByCategory(Category category,
int limit,
int offset)
|
List<Category> |
findAllCategories()
|
List<Category> |
findAllCategories(int limit,
int offset)
|
List<Category> |
findAllParentCategories()
|
List<Product> |
findAllProducts()
|
List<Product> |
findAllProducts(int limit,
int offset)
|
List<Sku> |
findAllSkus()
|
List<Category> |
findAllSubCategories(Category category)
|
List<Category> |
findAllSubCategories(Category category,
int limit,
int offset)
|
List<ProductBundle> |
findAutomaticProductBundles()
Find all ProductBundles whose automatic attribute is set to true. |
List<Category> |
findCategoriesByName(String categoryName)
Retrieve a list of Category instance based on the name
property. |
List<Category> |
findCategoriesByName(String categoryName,
int limit,
int offset)
Retrieve a list of Category instances based on the search criteria |
Category |
findCategoryById(Long categoryId)
|
Category |
findCategoryByName(String categoryName)
Deprecated. |
Category |
findCategoryByURI(String uri)
Returns a category associated with the passed in URI or null if no Category is mapped to this URI. |
List<Product> |
findFilteredActiveProductsByCategory(Category category,
Date currentDate,
ProductSearchCriteria searchCriteria)
Given a category and a ProudctSearchCriteria, returns the appropriate matching products |
List<Product> |
findFilteredActiveProductsByQuery(String query,
Date currentDate,
ProductSearchCriteria searchCriteria)
Given a search query and a ProductSearchCriteria, returns the appropriate matching products |
Product |
findProductById(Long productId)
|
Product |
findProductByURI(String uri)
Returns a product associated with the passed in URI or null if no Product is mapped to this URI. |
ProductOption |
findProductOptionById(Long productOptionId)
|
ProductOptionValue |
findProductOptionValueById(Long productOptionValueId)
|
List<Product> |
findProductsByName(String searchName)
|
List<Product> |
findProductsByName(String searchName,
int limit,
int offset)
Find a subset of Product instances whose name starts with
or is equal to the passed in search parameter. |
List<Product> |
findProductsForCategory(Category category)
|
List<Product> |
findProductsForCategory(Category category,
int limit,
int offset)
|
Sku |
findSkuById(Long skuId)
|
List<Sku> |
findSkusByIds(List<Long> ids)
|
Map<String,List<Long>> |
getChildCategoryURLMapByCategoryId(Long categoryId)
Deprecated. |
List<ProductOption> |
readAllProductOptions()
|
void |
removeCategory(Category category)
|
Category |
saveCategory(Category category)
|
Product |
saveProduct(Product product)
|
ProductOption |
saveProductOption(ProductOption option)
|
Sku |
saveSku(Sku sku)
|
SkuFee |
saveSkuFee(SkuFee fee)
|
void |
setCategoryDao(CategoryDao categoryDao)
|
void |
setProductDao(ProductDao productDao)
|
void |
setSkuDao(SkuDao skuDao)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CategoryDao categoryDao
protected ProductDao productDao
protected SkuDao skuDao
protected ProductOptionDao productOptionDao
| Constructor Detail |
|---|
public CatalogServiceImpl()
| Method Detail |
|---|
public Product findProductById(Long productId)
findProductById in interface CatalogServicepublic List<Product> findProductsByName(String searchName)
findProductsByName in interface CatalogService
public List<Product> findProductsByName(String searchName,
int limit,
int offset)
CatalogServiceProduct instances whose name starts with
or is equal to the passed in search parameter. Res
findProductsByName in interface CatalogServicelimit - the maximum number of resultsoffset - the starting point in the record set
public List<Product> findActiveProductsByCategory(Category category,
Date currentDate)
findActiveProductsByCategory in interface CatalogService
public List<Product> findFilteredActiveProductsByCategory(Category category,
Date currentDate,
ProductSearchCriteria searchCriteria)
CatalogService
findFilteredActiveProductsByCategory in interface CatalogService
public List<Product> findFilteredActiveProductsByQuery(String query,
Date currentDate,
ProductSearchCriteria searchCriteria)
CatalogService
findFilteredActiveProductsByQuery in interface CatalogService
public List<Product> findActiveProductsByCategory(Category category,
Date currentDate,
int limit,
int offset)
findActiveProductsByCategory in interface CatalogServicepublic List<ProductBundle> findAutomaticProductBundles()
CatalogService
findAutomaticProductBundles 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 by
public List<Category> findCategoriesByName(String categoryName)
CatalogServiceCategory instance based on the name
property.
findCategoriesByName in interface CatalogServicecategoryName - the category name to search by
public List<Category> findCategoriesByName(String categoryName,
int limit,
int offset)
CatalogServiceCategory instances based on the search criteria
findCategoriesByName 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 CatalogServicepublic List<Category> findAllCategories()
findAllCategories in interface CatalogService
public 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 CatalogService
public List<Category> findAllSubCategories(Category category,
int limit,
int offset)
findAllSubCategories in interface CatalogServicepublic List<Category> findActiveSubCategoriesByCategory(Category category)
findActiveSubCategoriesByCategory in interface CatalogService
public List<Category> findActiveSubCategoriesByCategory(Category category,
int limit,
int offset)
findActiveSubCategoriesByCategory in interface CatalogServicepublic List<Product> findAllProducts()
findAllProducts in interface CatalogService
public 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 CatalogService
public 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)
CatalogService
getChildCategoryURLMapByCategoryId in interface CatalogServicecategoryId - the parent category to which the children belong
public 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)
CatalogService
findCategoryByURI in interface CatalogServicepublic Product findProductByURI(String uri)
CatalogService
findProductByURI in interface CatalogService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||