1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface ShoppingCouponLocalService {
50 public com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
51 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.shopping.model.ShoppingCoupon createShoppingCoupon(
55 long couponId);
56
57 public void deleteShoppingCoupon(long couponId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteShoppingCoupon(
62 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
85 long couponId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getShoppingCouponsCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
99 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
103 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
104 boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
108 long userId, java.lang.String code, boolean autoCode,
109 java.lang.String name, java.lang.String description,
110 int startDateMonth, int startDateDay, int startDateYear,
111 int startDateHour, int startDateMinute, int endDateMonth,
112 int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
113 boolean neverExpire, boolean active, java.lang.String limitCategories,
114 java.lang.String limitSkus, double minOrder, double discount,
115 java.lang.String discountType,
116 com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void deleteCoupon(long couponId)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 public void deleteCoupons(long groupId)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
129 long couponId)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
135 java.lang.String code)
136 throws com.liferay.portal.kernel.exception.PortalException,
137 com.liferay.portal.kernel.exception.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
141 long groupId, long companyId, java.lang.String code, boolean active,
142 java.lang.String discountType, boolean andOperator, int start, int end)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public int searchCount(long groupId, long companyId, java.lang.String code,
147 boolean active, java.lang.String discountType, boolean andOperator)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
151 long userId, long couponId, java.lang.String name,
152 java.lang.String description, int startDateMonth, int startDateDay,
153 int startDateYear, int startDateHour, int startDateMinute,
154 int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
155 int endDateMinute, boolean neverExpire, boolean active,
156 java.lang.String limitCategories, java.lang.String limitSkus,
157 double minOrder, double discount, java.lang.String discountType,
158 com.liferay.portal.service.ServiceContext serviceContext)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException;
161 }