com.liferay.portlet.shopping.service
Interface ShoppingCartLocalService

All Known Implementing Classes:
ShoppingCartLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface ShoppingCartLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.shopping.service.impl.ShoppingCartLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
ShoppingCartLocalServiceUtil
Generated:

Method Summary
 ShoppingCart addShoppingCart(ShoppingCart shoppingCart)
           
 ShoppingCart createShoppingCart(long cartId)
           
 void deleteGroupCarts(long groupId)
           
 void deleteShoppingCart(long cartId)
           
 void deleteShoppingCart(ShoppingCart shoppingCart)
           
 void deleteUserCarts(long userId)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 ShoppingCart getCart(long userId, long groupId)
           
 java.util.Map<ShoppingCartItem,java.lang.Integer> getItems(long groupId, java.lang.String itemIds)
           
 ShoppingCart getShoppingCart(long cartId)
           
 java.util.List<ShoppingCart> getShoppingCarts(int start, int end)
           
 int getShoppingCartsCount()
           
 ShoppingCart updateCart(long userId, long groupId, java.lang.String itemIds, java.lang.String couponCodes, int altShipping, boolean insure)
           
 ShoppingCart updateShoppingCart(ShoppingCart shoppingCart)
           
 ShoppingCart updateShoppingCart(ShoppingCart shoppingCart, boolean merge)
           
 

Method Detail

addShoppingCart

ShoppingCart addShoppingCart(ShoppingCart shoppingCart)
                             throws SystemException
Throws:
SystemException

createShoppingCart

ShoppingCart createShoppingCart(long cartId)

deleteShoppingCart

void deleteShoppingCart(long cartId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

deleteShoppingCart

void deleteShoppingCart(ShoppingCart shoppingCart)
                        throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getShoppingCart

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCart getShoppingCart(long cartId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getShoppingCarts

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCart> getShoppingCarts(int start,
                                                                                       int end)
                                              throws SystemException
Throws:
SystemException

getShoppingCartsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getShoppingCartsCount()
                          throws SystemException
Throws:
SystemException

updateShoppingCart

ShoppingCart updateShoppingCart(ShoppingCart shoppingCart)
                                throws SystemException
Throws:
SystemException

updateShoppingCart

ShoppingCart updateShoppingCart(ShoppingCart shoppingCart,
                                boolean merge)
                                throws SystemException
Throws:
SystemException

deleteGroupCarts

void deleteGroupCarts(long groupId)
                      throws SystemException
Throws:
SystemException

deleteUserCarts

void deleteUserCarts(long userId)
                     throws SystemException
Throws:
SystemException

getCart

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCart getCart(long userId,
                                                              long groupId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getItems

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.Map<ShoppingCartItem,java.lang.Integer> getItems(long groupId,
                                                                                                    java.lang.String itemIds)
                                                           throws SystemException
Throws:
SystemException

updateCart

ShoppingCart updateCart(long userId,
                        long groupId,
                        java.lang.String itemIds,
                        java.lang.String couponCodes,
                        int altShipping,
                        boolean insure)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException