1
22
23 package com.liferay.portlet.shopping.service;
24
25
26
47 public class ShoppingCouponLocalServiceUtil {
48 public static com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
49 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
50 throws com.liferay.portal.SystemException {
51 return _service.addShoppingCoupon(shoppingCoupon);
52 }
53
54 public static void deleteShoppingCoupon(long couponId)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException {
57 _service.deleteShoppingCoupon(couponId);
58 }
59
60 public static void deleteShoppingCoupon(
61 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
62 throws com.liferay.portal.SystemException {
63 _service.deleteShoppingCoupon(shoppingCoupon);
64 }
65
66 public static java.util.List<Object> dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return _service.dynamicQuery(dynamicQuery);
70 }
71
72 public static java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74 int end) throws com.liferay.portal.SystemException {
75 return _service.dynamicQuery(dynamicQuery, start, end);
76 }
77
78 public static com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
79 long couponId)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException {
82 return _service.getShoppingCoupon(couponId);
83 }
84
85 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
86 int start, int end) throws com.liferay.portal.SystemException {
87 return _service.getShoppingCoupons(start, end);
88 }
89
90 public static int getShoppingCouponsCount()
91 throws com.liferay.portal.SystemException {
92 return _service.getShoppingCouponsCount();
93 }
94
95 public static com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
96 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
97 throws com.liferay.portal.SystemException {
98 return _service.updateShoppingCoupon(shoppingCoupon);
99 }
100
101 public static com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
102 long userId, long plid, java.lang.String code, boolean autoCode,
103 java.lang.String name, java.lang.String description,
104 int startDateMonth, int startDateDay, int startDateYear,
105 int startDateHour, int startDateMinute, int endDateMonth,
106 int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
107 boolean neverExpire, boolean active, java.lang.String limitCategories,
108 java.lang.String limitSkus, double minOrder, double discount,
109 java.lang.String discountType)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException {
112 return _service.addCoupon(userId, plid, code, autoCode, name,
113 description, startDateMonth, startDateDay, startDateYear,
114 startDateHour, startDateMinute, endDateMonth, endDateDay,
115 endDateYear, endDateHour, endDateMinute, neverExpire, active,
116 limitCategories, limitSkus, minOrder, discount, discountType);
117 }
118
119 public static void deleteCoupon(long couponId)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 _service.deleteCoupon(couponId);
123 }
124
125 public static void deleteCoupons(long groupId)
126 throws com.liferay.portal.SystemException {
127 _service.deleteCoupons(groupId);
128 }
129
130 public static com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
131 long couponId)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException {
134 return _service.getCoupon(couponId);
135 }
136
137 public static com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
138 java.lang.String code)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException {
141 return _service.getCoupon(code);
142 }
143
144 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
145 long plid, long companyId, java.lang.String code, boolean active,
146 java.lang.String discountType, boolean andOperator, int start, int end)
147 throws com.liferay.portal.SystemException {
148 return _service.search(plid, companyId, code, active, discountType,
149 andOperator, start, end);
150 }
151
152 public static int searchCount(long groupId, long companyId,
153 java.lang.String code, boolean active, java.lang.String discountType,
154 boolean andOperator) throws com.liferay.portal.SystemException {
155 return _service.searchCount(groupId, companyId, code, active,
156 discountType, andOperator);
157 }
158
159 public static com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
160 long userId, long couponId, java.lang.String name,
161 java.lang.String description, int startDateMonth, int startDateDay,
162 int startDateYear, int startDateHour, int startDateMinute,
163 int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
164 int endDateMinute, boolean neverExpire, boolean active,
165 java.lang.String limitCategories, java.lang.String limitSkus,
166 double minOrder, double discount, java.lang.String discountType)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException {
169 return _service.updateCoupon(userId, couponId, name, description,
170 startDateMonth, startDateDay, startDateYear, startDateHour,
171 startDateMinute, endDateMonth, endDateDay, endDateYear,
172 endDateHour, endDateMinute, neverExpire, active, limitCategories,
173 limitSkus, minOrder, discount, discountType);
174 }
175
176 public static ShoppingCouponLocalService getService() {
177 return _service;
178 }
179
180 public void setService(ShoppingCouponLocalService service) {
181 _service = service;
182 }
183
184 private static ShoppingCouponLocalService _service;
185 }