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