com.liferay.portlet.shopping.service
Interface ShoppingCartLocalService


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:
ShoppingCartLocalServiceFactory, ShoppingCartLocalServiceUtil

Method Summary
 ShoppingCart addShoppingCart(ShoppingCart shoppingCart)
           
 void deleteGroupCarts(long groupId)
           
 void deleteShoppingCart(long cartId)
           
 void deleteShoppingCart(ShoppingCart shoppingCart)
           
 void deleteUserCarts(long userId)
           
 java.util.List<ShoppingCart> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<ShoppingCart> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 ShoppingCart getCart(long userId, long groupId)
           
 java.util.Map<ShoppingCartItem,java.lang.Integer> getItems(long groupId, java.lang.String itemIds)
           
 ShoppingCart updateCart(long userId, long groupId, java.lang.String itemIds, java.lang.String couponCodes, int altShipping, boolean insure)
           
 ShoppingCart updateShoppingCart(ShoppingCart shoppingCart)
           
 

Method Detail

addShoppingCart

ShoppingCart addShoppingCart(ShoppingCart shoppingCart)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteShoppingCart

void deleteShoppingCart(long cartId)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteShoppingCart

void deleteShoppingCart(ShoppingCart shoppingCart)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

dynamicQuery

java.util.List<ShoppingCart> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<ShoppingCart> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateShoppingCart

ShoppingCart updateShoppingCart(ShoppingCart shoppingCart)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteGroupCarts

void deleteGroupCarts(long groupId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteUserCarts

void deleteUserCarts(long userId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCart

ShoppingCart getCart(long userId,
                     long groupId)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getItems

java.util.Map<ShoppingCartItem,java.lang.Integer> getItems(long groupId,
                                                           java.lang.String itemIds)
                                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCart

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