1
22
23 package com.liferay.portlet.shopping.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface ShoppingCartLocalService {
58 public com.liferay.portlet.shopping.model.ShoppingCart addShoppingCart(
59 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.shopping.model.ShoppingCart createShoppingCart(
63 long cartId);
64
65 public void deleteShoppingCart(long cartId)
66 throws com.liferay.portal.SystemException,
67 com.liferay.portal.PortalException;
68
69 public void deleteShoppingCart(
70 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.shopping.model.ShoppingCart getShoppingCart(
83 long cartId)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.PortalException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> getShoppingCarts(
89 int start, int end) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getShoppingCartsCount()
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.shopping.model.ShoppingCart updateShoppingCart(
96 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
97 throws com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.shopping.model.ShoppingCart updateShoppingCart(
100 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
101 boolean merge) throws com.liferay.portal.SystemException;
102
103 public void deleteGroupCarts(long groupId)
104 throws com.liferay.portal.SystemException;
105
106 public void deleteUserCarts(long userId)
107 throws com.liferay.portal.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public com.liferay.portlet.shopping.model.ShoppingCart getCart(
111 long userId, long groupId)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public java.util.Map<com.liferay.portlet.shopping.model.ShoppingCartItem, Integer> getItems(
117 long groupId, java.lang.String itemIds)
118 throws com.liferay.portal.SystemException;
119
120 public com.liferay.portlet.shopping.model.ShoppingCart updateCart(
121 long userId, long groupId, java.lang.String itemIds,
122 java.lang.String couponCodes, int altShipping, boolean insure)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException;
125 }