|
|||||||||
| 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.service.impl.AbstractEpPersistenceServiceImpl
com.elasticpath.service.shoppingcart.impl.ShoppingCartServiceImpl
public class ShoppingCartServiceImpl
Service for retrieving and saving Shopping Carts.
| Constructor Summary | |
|---|---|
ShoppingCartServiceImpl()
|
|
| Method Summary | |
|---|---|
ShoppingCart |
add(ShoppingCart shoppingCart)
Adds the given shopping cart. |
ShoppingCart |
getCartByCustomerSession(CustomerSession customerSession)
This method retrieves the shopping cart for the given customer session. |
java.lang.Object |
getObject(long uid)
Generic get method for all persistable domain models. |
ShoppingCart |
load(long shoppingCartUid)
Load the shopping cart with the given UID. |
void |
setCustomerSessionService(CustomerSessionService customerSessionService)
Sets the customer session service. |
void |
setLazyLoadHelper(LazyLoadHelper lazyLoadHelper)
Sets the lazy load helper. |
void |
setProductLoadTuner(ProductLoadTuner productLoadTuner)
Sets the ProductLoadTuner for populating all data. |
void |
setProductSkuLoadTuner(ProductSkuLoadTuner productSkuLoadTuner)
Sets the ProductSkuLoadTuner for populating all data. |
void |
update(ShoppingCart shoppingCart)
Updates the given shopping cart. |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
|---|
getPersistenceEngine, setPersistenceEngine |
| 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.EpPersistenceService |
|---|
getPersistenceEngine, setPersistenceEngine |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Constructor Detail |
|---|
public ShoppingCartServiceImpl()
| Method Detail |
|---|
public ShoppingCart add(ShoppingCart shoppingCart)
throws EpServiceException
add in interface ShoppingCartServiceshoppingCart - the shopping cart to add
EpServiceException - - in case of any errors
public ShoppingCart getCartByCustomerSession(CustomerSession customerSession)
throws EpServiceException
getCartByCustomerSession in interface ShoppingCartServicecustomerSession - the customer session for which the shopping cart is requested
EpServiceException - - in case of any errors
public java.lang.Object getObject(long uid)
throws EpServiceException
getObject in interface EpPersistenceServiceuid - the persisted instance uid
EpServiceException - - in case of any errors
public ShoppingCart load(long shoppingCartUid)
throws EpServiceException
load in interface ShoppingCartServiceshoppingCartUid - the shopping cart UID
EpServiceException - - in case of any errorspublic void setCustomerSessionService(CustomerSessionService customerSessionService)
customerSessionService - the customer session servicepublic void setLazyLoadHelper(LazyLoadHelper lazyLoadHelper)
lazyLoadHelper - the lazy load helperpublic void setProductLoadTuner(ProductLoadTuner productLoadTuner)
ProductLoadTuner for populating all data.
productLoadTuner - the ProductSkuLoadTuner for populating all data.public void setProductSkuLoadTuner(ProductSkuLoadTuner productSkuLoadTuner)
ProductSkuLoadTuner for populating all data.
productSkuLoadTuner - the ProductSkuLoadTuner for populating all data.
public void update(ShoppingCart shoppingCart)
throws EpServiceException
update in interface ShoppingCartServiceshoppingCart - the shopping cart to update
EpServiceException - - in case of any errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||