|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.cmweb.ajaxservice.impl.CatalogAjaxServiceImpl
public class CatalogAjaxServiceImpl
This service provides access to functionality and data (beans) for manipulating catalog objects on the Javascript client Catalog page.
| Constructor Summary | |
|---|---|
CatalogAjaxServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
deleteProductAssociation(long productUidPk,
long productAssociationUidPk)
Removes a product association from a product. |
java.util.List |
findByCategoryUidMinimal(long categoryUid)
Returns a list of ProductInfoAjaxBean carries basics info of the products based on the given category Uid. |
java.util.List |
findByCategoryUidMinimalPaginated(long categoryUid,
int startIndex,
int numProducts)
Returns a list of ProductInfoAjaxBeans that carry basic info about the products based on the given category Uid. |
java.util.List |
findCategoryInfoByCriteria(CategorySearchCriteria categorySearchCriteria)
Retrieve the list of categories, whose specified property contain the given criteria value. |
java.util.List |
findProducSkuAjaxBeanByProductUid(long productUid)
Returns a list of ProductSkuAjaxBeans based on the given product Uid. |
java.util.List |
findProductInfoByCriteria(ProductSearchCriteria productSearchCriteria)
Retrieve the list of ProductInfoAjaxBean carries basics info of the products matching the given criteria value. |
CategoryAjaxBean |
getCategoryAjaxBean(long uidPk)
Get a bean containing a domain layer product object as well as other data needed for display on the Javascript UI. |
int |
getNumProductsInCategory(long categoryUid)
Returns the number of products in the given category. |
ProductAjaxBean |
getProductAjaxBean(long uidPk)
Get a bean containing a domain layer product object as well as other data needed for display on the Javascript UI. |
ProductSkuAjaxBean |
getProductSkuAjaxBean(long uidPk)
Get a bean containing data needed for displaying a product sku on the Javascript UI. |
void |
setCategoryService(CategoryService categoryService)
Set the category service used to retrieve category information. |
void |
setProductLoadTunerForDefaultCategory(ProductLoadTuner productLoadTunerForDefaultCategory)
Sets the ProductLoadTuner for populating the default category. |
void |
setProductService(ProductService productService)
Set the product service used to retrieve product information. |
void |
setProductSkuService(ProductSkuService productSkuService)
Set the product sku service used to retrieve product sku information. |
void |
swapProductAssociationOrder(long productUidPk,
long association1UidPk,
long association2UidPk)
Re-orders two product associations of the given product. |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Constructor Detail |
|---|
public CatalogAjaxServiceImpl()
| Method Detail |
|---|
public void deleteProductAssociation(long productUidPk,
long productAssociationUidPk)
deleteProductAssociation in interface CatalogAjaxServiceproductUidPk - The UID of the product whose association is to be removedproductAssociationUidPk - the UID of the ProductAssociation to be removedpublic java.util.List findByCategoryUidMinimal(long categoryUid)
ProductInfoAjaxBean carries basics info of the products based on the given category Uid.
findByCategoryUidMinimal in interface CatalogAjaxServicecategoryUid - the category Uid
public java.util.List findByCategoryUidMinimalPaginated(long categoryUid,
int startIndex,
int numProducts)
ProductInfoAjaxBeans that carry basic info about the products based on the given category Uid.
findByCategoryUidMinimalPaginated in interface CatalogAjaxServicecategoryUid - the category UidstartIndex - the starting index of the first product to be returnednumProducts - the number of products to be returned, starting from the start index
public java.util.List findCategoryInfoByCriteria(CategorySearchCriteria categorySearchCriteria)
findCategoryInfoByCriteria in interface CatalogAjaxServicecategorySearchCriteria - the categorySearchCriteria to search on.
public java.util.List findProducSkuAjaxBeanByProductUid(long productUid)
ProductSkuAjaxBeans based on the given product Uid.
findProducSkuAjaxBeanByProductUid in interface CatalogAjaxServiceproductUid - the product Uid
ProductSkuAjaxBeanpublic java.util.List findProductInfoByCriteria(ProductSearchCriteria productSearchCriteria)
ProductInfoAjaxBean carries basics info of the products matching the given criteria value.
findProductInfoByCriteria in interface CatalogAjaxServiceproductSearchCriteria - the productSearchCriteria to search on.
ProductInfoAjaxBean carries basics info of the products.public CategoryAjaxBean getCategoryAjaxBean(long uidPk)
getCategoryAjaxBean in interface CatalogAjaxServiceuidPk - the unique identifier for the product to be returned in the bean
ProductAjaxBeanpublic int getNumProductsInCategory(long categoryUid)
getNumProductsInCategory in interface CatalogAjaxServicecategoryUid - The UID of the category whose number of products is to be returned.
public ProductAjaxBean getProductAjaxBean(long uidPk)
getProductAjaxBean in interface CatalogAjaxServiceuidPk - the unique identifier for the product to be returned in the bean
ProductAjaxBeanpublic ProductSkuAjaxBean getProductSkuAjaxBean(long uidPk)
getProductSkuAjaxBean in interface CatalogAjaxServiceuidPk - the unique identifier for the product to be returned in the bean
ProductSkuAjaxBeanpublic void setCategoryService(CategoryService categoryService)
categoryService - the CategoryServicepublic void setProductLoadTunerForDefaultCategory(ProductLoadTuner productLoadTunerForDefaultCategory)
ProductLoadTuner for populating the default category.
productLoadTunerForDefaultCategory - the ProductLoadTuner for populating the default category.public void setProductService(ProductService productService)
setProductService in interface CatalogAjaxServiceproductService - the ProductServicepublic void setProductSkuService(ProductSkuService productSkuService)
productSkuService - the ProductSkuService
public void swapProductAssociationOrder(long productUidPk,
long association1UidPk,
long association2UidPk)
swapProductAssociationOrder in interface CatalogAjaxServiceproductUidPk - the UID of the product whose associations are to be reorderedassociation1UidPk - the uid of one of the first product association that will take the position of the secondassociation2UidPk - the uid of the second product association that will take the position of the first
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||