|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CatalogService
| 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<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)
|
List<ProductOption> |
readAllProductOptions()
|
void |
removeCategory(Category category)
|
Category |
saveCategory(Category category)
|
Product |
saveProduct(Product product)
|
Sku |
saveSku(Sku sku)
|
SkuFee |
saveSkuFee(SkuFee fee)
|
| Method Detail |
|---|
Product saveProduct(Product product)
Product findProductById(Long productId)
List<Product> findProductsByName(String searchName)
List<Product> findProductsByName(String searchName,
int limit,
int offset)
Product instances whose name starts with
or is equal to the passed in search parameter. Res
searchName - limit - the maximum number of resultsoffset - the starting point in the record set
List<Product> findActiveProductsByCategory(Category category,
Date currentDate)
List<Product> findFilteredActiveProductsByCategory(Category category,
Date currentDate,
ProductSearchCriteria searchCriteria)
category - currentDate - searchCriteria -
List<Product> findFilteredActiveProductsByQuery(String query,
Date currentDate,
ProductSearchCriteria searchCriteria)
query - currentDate - searchCriteria -
List<Product> findActiveProductsByCategory(Category category,
Date currentDate,
int limit,
int offset)
List<ProductBundle> findAutomaticProductBundles()
Category saveCategory(Category category)
void removeCategory(Category category)
Category findCategoryById(Long categoryId)
@Deprecated Category findCategoryByName(String categoryName)
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.
categoryName - the category name to search by
List<Category> findCategoriesByName(String categoryName)
Category instance based on the name
property.
categoryName - the category name to search by
List<Category> findCategoriesByName(String categoryName,
int limit,
int offset)
Category instances based on the search criteria
categoryName - the name of the category to search bylimit - the maximum number of results to returnoffset - the starting point of the records to return
List<Category> findAllCategories()
List<Category> findAllCategories(int limit,
int offset)
List<Product> findAllProducts()
List<Product> findAllProducts(int limit,
int offset)
List<Product> findProductsForCategory(Category category)
List<Product> findProductsForCategory(Category category,
int limit,
int offset)
Sku saveSku(Sku sku)
SkuFee saveSkuFee(SkuFee fee)
List<Sku> findAllSkus()
List<Sku> findSkusByIds(List<Long> ids)
Sku findSkuById(Long skuId)
Map<String,List<Long>> getChildCategoryURLMapByCategoryId(Long categoryId)
Category createCategory()
Sku createSku()
Product createProduct(ProductType productType)
List<Category> findAllSubCategories(Category category)
List<Category> findAllSubCategories(Category category,
int limit,
int offset)
List<Category> findActiveSubCategoriesByCategory(Category category)
List<Category> findActiveSubCategoriesByCategory(Category category,
int limit,
int offset)
List<ProductOption> readAllProductOptions()
ProductOption findProductOptionById(Long productOptionId)
ProductOptionValue findProductOptionValueById(Long productOptionValueId)
Category findCategoryByURI(String uri)
uri -
Product findProductByURI(String uri)
uri -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||