org.broadleafcommerce.core.web.api.endpoint.catalog
@Component(value="blRestCatalogEndpoint") @Scope(value="singleton") public class CatalogEndpoint extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
CatalogEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
CategoriesWrapper |
findActiveSubCategories(javax.servlet.http.HttpServletRequest request,
Long id,
int limit,
int offset) |
CategoriesWrapper |
findAllCategories(javax.servlet.http.HttpServletRequest request,
String name,
int limit,
int offset) |
List<CategoryAttributeWrapper> |
findCategoryAttributesForCategory(javax.servlet.http.HttpServletRequest request,
Long id) |
CategoryWrapper |
findCategoryById(javax.servlet.http.HttpServletRequest request,
Long id,
int productLimit,
int productOffset,
int subcategoryLimit,
int subcategoryOffset,
int subcategoryDepth) |
List<RelatedProductWrapper> |
findCrossSaleProductsByProduct(javax.servlet.http.HttpServletRequest request,
Long id,
int limit,
int offset) |
SkuWrapper |
findDefaultSkuByProductId(javax.servlet.http.HttpServletRequest request,
Long id) |
List<MediaWrapper> |
findMediaForCategory(javax.servlet.http.HttpServletRequest request,
Long id) |
List<MediaWrapper> |
findMediaForProduct(javax.servlet.http.HttpServletRequest request,
Long id) |
List<MediaWrapper> |
findMediaForSku(javax.servlet.http.HttpServletRequest request,
Long id) |
CategoriesWrapper |
findParentCategoriesForProduct(javax.servlet.http.HttpServletRequest request,
Long id) |
List<ProductAttributeWrapper> |
findProductAttributesForProduct(javax.servlet.http.HttpServletRequest request,
Long id) |
ProductWrapper |
findProductById(javax.servlet.http.HttpServletRequest request,
Long id)
Search for
Product by product id |
List<ProductWrapper> |
findProductsByName(javax.servlet.http.HttpServletRequest request,
String name,
int limit,
int offset)
Search for
Product instances whose name starts with
or is equal to the passed in product name. |
List<ProductWrapper> |
findProductsForCategory(javax.servlet.http.HttpServletRequest request,
Long id,
int limit,
int offset,
boolean activeOnly) |
List<SkuAttributeWrapper> |
findSkuAttributesForSku(javax.servlet.http.HttpServletRequest request,
Long id) |
SkuWrapper |
findSkuById(javax.servlet.http.HttpServletRequest request,
Long id) |
List<SkuWrapper> |
findSkusByProductById(javax.servlet.http.HttpServletRequest request,
Long id)
Search for
Sku instances for a given product |
CategoriesWrapper |
findSubCategories(javax.servlet.http.HttpServletRequest request,
Long id,
int limit,
int offset,
boolean active) |
List<RelatedProductWrapper> |
findUpSaleProductsByProduct(javax.servlet.http.HttpServletRequest request,
Long id,
int limit,
int offset) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public ProductWrapper findProductById(@Context javax.servlet.http.HttpServletRequest request, Long id)
Product by product idid - the product idpublic List<ProductWrapper> findProductsByName(@Context javax.servlet.http.HttpServletRequest request, String name, int limit, int offset)
Product instances whose name starts with
or is equal to the passed in product name.name - limit - the maximum number of results, defaults to 20offset - the starting point in the record set, defaults to 0public List<SkuWrapper> findSkusByProductById(@Context javax.servlet.http.HttpServletRequest request, Long id)
Sku instances for a given productid - public SkuWrapper findDefaultSkuByProductId(@Context javax.servlet.http.HttpServletRequest request, Long id)
public CategoriesWrapper findAllCategories(@Context javax.servlet.http.HttpServletRequest request, String name, int limit, int offset)
public CategoriesWrapper findSubCategories(@Context javax.servlet.http.HttpServletRequest request, Long id, int limit, int offset, boolean active)
public CategoriesWrapper findActiveSubCategories(@Context javax.servlet.http.HttpServletRequest request, Long id, int limit, int offset)
public CategoryWrapper findCategoryById(@Context javax.servlet.http.HttpServletRequest request, Long id, int productLimit, int productOffset, int subcategoryLimit, int subcategoryOffset, int subcategoryDepth)
public List<CategoryAttributeWrapper> findCategoryAttributesForCategory(@Context javax.servlet.http.HttpServletRequest request, Long id)
public List<ProductWrapper> findProductsForCategory(@Context javax.servlet.http.HttpServletRequest request, Long id, int limit, int offset, boolean activeOnly)
public List<RelatedProductWrapper> findUpSaleProductsByProduct(@Context javax.servlet.http.HttpServletRequest request, Long id, int limit, int offset)
public List<RelatedProductWrapper> findCrossSaleProductsByProduct(@Context javax.servlet.http.HttpServletRequest request, Long id, int limit, int offset)
public List<ProductAttributeWrapper> findProductAttributesForProduct(@Context javax.servlet.http.HttpServletRequest request, Long id)
public List<SkuAttributeWrapper> findSkuAttributesForSku(@Context javax.servlet.http.HttpServletRequest request, Long id)
public List<MediaWrapper> findMediaForSku(@Context javax.servlet.http.HttpServletRequest request, Long id)
public SkuWrapper findSkuById(@Context javax.servlet.http.HttpServletRequest request, Long id)
public List<MediaWrapper> findMediaForProduct(@Context javax.servlet.http.HttpServletRequest request, Long id)
public List<MediaWrapper> findMediaForCategory(@Context javax.servlet.http.HttpServletRequest request, Long id)
public CategoriesWrapper findParentCategoriesForProduct(@Context javax.servlet.http.HttpServletRequest request, Long id)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2015. All Rights Reserved.