001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface ShoppingCouponLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
054 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.shopping.model.ShoppingCoupon createShoppingCoupon(
064 long couponId);
065
066
073 public void deleteShoppingCoupon(long couponId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteShoppingCoupon(
084 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchShoppingCoupon(
151 long couponId)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
164 long couponId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portal.model.PersistedModel getPersistedModel(
170 java.io.Serializable primaryKeyObj)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
188 int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public int getShoppingCouponsCount()
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201
208 public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
209 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212
220 public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
221 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
222 boolean merge)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225
230 public java.lang.String getBeanIdentifier();
231
232
237 public void setBeanIdentifier(java.lang.String beanIdentifier);
238
239 public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
240 long userId, java.lang.String code, boolean autoCode,
241 java.lang.String name, java.lang.String description,
242 int startDateMonth, int startDateDay, int startDateYear,
243 int startDateHour, int startDateMinute, int endDateMonth,
244 int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
245 boolean neverExpire, boolean active, java.lang.String limitCategories,
246 java.lang.String limitSkus, double minOrder, double discount,
247 java.lang.String discountType,
248 com.liferay.portal.service.ServiceContext serviceContext)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 public void deleteCoupon(long couponId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public void deleteCoupon(
257 com.liferay.portlet.shopping.model.ShoppingCoupon coupon)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260 public void deleteCoupons(long groupId)
261 throws com.liferay.portal.kernel.exception.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
265 long couponId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
271 java.lang.String code)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
277 long groupId, long companyId, java.lang.String code, boolean active,
278 java.lang.String discountType, boolean andOperator, int start, int end)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int searchCount(long groupId, long companyId, java.lang.String code,
283 boolean active, java.lang.String discountType, boolean andOperator)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286 public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
287 long userId, long couponId, java.lang.String name,
288 java.lang.String description, int startDateMonth, int startDateDay,
289 int startDateYear, int startDateHour, int startDateMinute,
290 int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
291 int endDateMinute, boolean neverExpire, boolean active,
292 java.lang.String limitCategories, java.lang.String limitSkus,
293 double minOrder, double discount, java.lang.String discountType,
294 com.liferay.portal.service.ServiceContext serviceContext)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException;
297 }