public interface CatalogService
| Modifier and Type | Method and Description |
|---|---|
Category |
createCategory() |
Product |
createProduct(ProductType productType) |
Sku |
createSku() |
List<Product> |
findActiveProductsByCategory(Category category) |
List<Product> |
findActiveProductsByCategory(Category category,
Date currentDate)
Deprecated.
Use findActiveProductsByCategory
|
List<Product> |
findActiveProductsByCategory(Category category,
Date currentDate,
int limit,
int offset)
Deprecated.
Use
#findActiveProductsByCategory(Category, limit, offset |
List<Product> |
findActiveProductsByCategory(Category category,
int limit,
int offset)
Same as
findActiveProductsByCategory(Category) but allowing for pagination. |
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)
|
List<Product> |
findFilteredActiveProductsByCategory(Category category,
ProductSearchCriteria searchCriteria)
Given a category and a ProudctSearchCriteria, returns the appropriate matching products
|
List<Product> |
findFilteredActiveProductsByQuery(String query,
Date currentDate,
ProductSearchCriteria searchCriteria)
|
List<Product> |
findFilteredActiveProductsByQuery(String query,
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.
this approach is inherently inefficient - don't use.
|
List<ProductOption> |
readAllProductOptions() |
void |
removeCategory(Category category) |
void |
removeProduct(Product product) |
void |
removeSku(Sku sku) |
Category |
saveCategory(Category category) |
Product |
saveProduct(Product product) |
ProductOption |
saveProductOption(ProductOption option) |
Sku |
saveSku(Sku sku) |
SkuFee |
saveSkuFee(SkuFee fee) |
List<Product> findProductsByName(String searchName, int limit, int offset)
Product instances whose name starts with
or is equal to the passed in search parameter. RessearchName - limit - the maximum number of resultsoffset - the starting point in the record set@Deprecated List<Product> findActiveProductsByCategory(Category category, Date currentDate)
category - currentDate - List<Product> findFilteredActiveProductsByCategory(Category category, ProductSearchCriteria searchCriteria)
category - searchCriteria - @Deprecated List<Product> findFilteredActiveProductsByCategory(Category category, Date currentDate, ProductSearchCriteria searchCriteria)
category - currentDate - searchCriteria - List<Product> findFilteredActiveProductsByQuery(String query, ProductSearchCriteria searchCriteria)
query - searchCriteria - @Deprecated List<Product> findFilteredActiveProductsByQuery(String query, Date currentDate, ProductSearchCriteria searchCriteria)
List<Product> findActiveProductsByCategory(Category category, int limit, int offset)
findActiveProductsByCategory(Category) but allowing for pagination.category - limit - offset - @Deprecated List<Product> findActiveProductsByCategory(Category category, Date currentDate, int limit, int offset)
#findActiveProductsByCategory(Category, limit, offsetList<ProductBundle> findAutomaticProductBundles()
void removeCategory(Category category)
void removeProduct(Product product)
void removeSku(Sku sku)
@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 byList<Category> findCategoriesByName(String categoryName)
Category instance based on the name
property.categoryName - the category name to search byList<Category> findCategoriesByName(String categoryName, int limit, int offset)
Category instances based on the search criteriacategoryName - the name of the category to search bylimit - the maximum number of results to returnoffset - the starting point of the records to returnList<Product> findProductsForCategory(Category category, int limit, int offset)
@Deprecated Map<String,List<Long>> getChildCategoryURLMapByCategoryId(Long categoryId)
categoryId - the parent category to which the children belongCategory createCategory()
Sku createSku()
Product createProduct(ProductType productType)
List<Category> findActiveSubCategoriesByCategory(Category category)
List<Category> findActiveSubCategoriesByCategory(Category category, int limit, int offset)
List<ProductOption> readAllProductOptions()
ProductOption saveProductOption(ProductOption option)
ProductOption findProductOptionById(Long productOptionId)
ProductOptionValue findProductOptionValueById(Long productOptionValueId)
Category findCategoryByURI(String uri)
uri - Copyright © 2015. All Rights Reserved.