|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.web.api.endpoint.catalog.CatalogEndpoint
@Component(value="blRestCatalogEndpoint") @Scope(value="singleton") public class CatalogEndpoint
This class exposes catalog services as RESTful APIs. It is dependent on a JAX-RS implementation such as Jersey. This class has to be in a war, with appropriate configuration to ensure that it is delegated requests from the servlet. User: Kelly Tisdell
| Constructor Summary | |
|---|---|
CatalogEndpoint()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CatalogEndpoint()
| Method Detail |
|---|
public ProductWrapper findProductById(@Context
javax.servlet.http.HttpServletRequest request,
Long id)
Product by product id
id - the product id
public 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 0
public List<SkuWrapper> findSkusByProductById(@Context
javax.servlet.http.HttpServletRequest request,
Long id)
Sku instances for a given product
id -
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.BeansException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||