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<AssignedProductOptionDTO> |
findAssignedProductOptionsByProduct(Product product)
Returns a list of
AssignedProductOptionDTO
found for given the Product. |
List<AssignedProductOptionDTO> |
findAssignedProductOptionsByProductId(Long productId)
Returns a list of
AssignedProductOptionDTO
found for given the productId. |
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 |
findCategoryByExternalId(String externalId) |
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,
SearchCriteria searchCriteria)
Deprecated.
|
List<Product> |
findFilteredActiveProductsByCategory(Category category,
SearchCriteria searchCriteria)
Given a category and a ProudctSearchCriteria, returns the appropriate matching products
|
List<Product> |
findFilteredActiveProductsByQuery(String query,
Date currentDate,
SearchCriteria searchCriteria)
Deprecated.
|
List<Product> |
findFilteredActiveProductsByQuery(String query,
SearchCriteria searchCriteria)
Given a search query and a SearchCriteria, returns the appropriate matching products
|
Product |
findProductByExternalId(String externalId) |
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 |
findSkuByExternalId(String externalId) |
Sku |
findSkuById(Long skuId) |
Sku |
findSkuByUpc(String upc)
Method to look up a Sku by the Universal Product Code (UPC).
|
Sku |
findSkuByURI(String uri)
Returns a sku associated with the passed in URI or null if no sku is
mapped to this URI.
|
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, SearchCriteria searchCriteria)
category - searchCriteria - List<Product> findFilteredActiveProductsByCategory(Category category, Date currentDate, SearchCriteria searchCriteria)
findFilteredActiveProductsByCategory(Category, SearchCriteria)category - currentDate - searchCriteria - List<Product> findFilteredActiveProductsByQuery(String query, SearchCriteria searchCriteria)
query - searchCriteria - List<Product> findFilteredActiveProductsByQuery(String query, Date currentDate, SearchCriteria searchCriteria)
findFilteredActiveProductsByCategory(Category, 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)
Sku findSkuByUpc(String upc)
upc - @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 - Product findProductByURI(String uri)
uri - Sku findSkuByURI(String uri)
uri - List<AssignedProductOptionDTO> findAssignedProductOptionsByProductId(Long productId)
AssignedProductOptionDTO
found for given the productId.productId - List<AssignedProductOptionDTO> findAssignedProductOptionsByProduct(Product product)
AssignedProductOptionDTO
found for given the Product.product - Copyright © 2017. All rights reserved.