com.liferay.portlet.shopping.service
Interface ShoppingCartLocalService
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.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
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<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
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)
|
addShoppingCart
ShoppingCart addShoppingCart(ShoppingCart shoppingCart)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createShoppingCart
ShoppingCart createShoppingCart(long cartId)
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
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getShoppingCart
@Transactional(propagation=SUPPORTS,
readOnly=true)
ShoppingCart getShoppingCart(long cartId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getShoppingCarts
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ShoppingCart> getShoppingCarts(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getShoppingCartsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getShoppingCartsCount()
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
ShoppingCart getCart(long userId,
long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItems
@Transactional(propagation=SUPPORTS,
readOnly=true)
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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException