1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.shopping.service;
16  
17  
18  /**
19   * <a href="ShoppingCouponLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link ShoppingCouponLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       ShoppingCouponLocalService
32   * @generated
33   */
34  public class ShoppingCouponLocalServiceWrapper
35      implements ShoppingCouponLocalService {
36      public ShoppingCouponLocalServiceWrapper(
37          ShoppingCouponLocalService shoppingCouponLocalService) {
38          _shoppingCouponLocalService = shoppingCouponLocalService;
39      }
40  
41      public com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
42          com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
43          throws com.liferay.portal.SystemException {
44          return _shoppingCouponLocalService.addShoppingCoupon(shoppingCoupon);
45      }
46  
47      public com.liferay.portlet.shopping.model.ShoppingCoupon createShoppingCoupon(
48          long couponId) {
49          return _shoppingCouponLocalService.createShoppingCoupon(couponId);
50      }
51  
52      public void deleteShoppingCoupon(long couponId)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException {
55          _shoppingCouponLocalService.deleteShoppingCoupon(couponId);
56      }
57  
58      public void deleteShoppingCoupon(
59          com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
60          throws com.liferay.portal.SystemException {
61          _shoppingCouponLocalService.deleteShoppingCoupon(shoppingCoupon);
62      }
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return _shoppingCouponLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException {
73          return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start, end);
74      }
75  
76      public java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.SystemException {
81          return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start,
82              end, orderByComparator);
83      }
84  
85      public int dynamicQueryCount(
86          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
87          throws com.liferay.portal.SystemException {
88          return _shoppingCouponLocalService.dynamicQueryCount(dynamicQuery);
89      }
90  
91      public com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
92          long couponId)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException {
95          return _shoppingCouponLocalService.getShoppingCoupon(couponId);
96      }
97  
98      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
99          int start, int end) throws com.liferay.portal.SystemException {
100         return _shoppingCouponLocalService.getShoppingCoupons(start, end);
101     }
102 
103     public int getShoppingCouponsCount()
104         throws com.liferay.portal.SystemException {
105         return _shoppingCouponLocalService.getShoppingCouponsCount();
106     }
107 
108     public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
109         com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
110         throws com.liferay.portal.SystemException {
111         return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon);
112     }
113 
114     public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
115         com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
116         boolean merge) throws com.liferay.portal.SystemException {
117         return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon,
118             merge);
119     }
120 
121     public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
122         long userId, java.lang.String code, boolean autoCode,
123         java.lang.String name, java.lang.String description,
124         int startDateMonth, int startDateDay, int startDateYear,
125         int startDateHour, int startDateMinute, int endDateMonth,
126         int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
127         boolean neverExpire, boolean active, java.lang.String limitCategories,
128         java.lang.String limitSkus, double minOrder, double discount,
129         java.lang.String discountType,
130         com.liferay.portal.service.ServiceContext serviceContext)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return _shoppingCouponLocalService.addCoupon(userId, code, autoCode,
134             name, description, startDateMonth, startDateDay, startDateYear,
135             startDateHour, startDateMinute, endDateMonth, endDateDay,
136             endDateYear, endDateHour, endDateMinute, neverExpire, active,
137             limitCategories, limitSkus, minOrder, discount, discountType,
138             serviceContext);
139     }
140 
141     public void deleteCoupon(long couponId)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException {
144         _shoppingCouponLocalService.deleteCoupon(couponId);
145     }
146 
147     public void deleteCoupons(long groupId)
148         throws com.liferay.portal.SystemException {
149         _shoppingCouponLocalService.deleteCoupons(groupId);
150     }
151 
152     public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
153         long couponId)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         return _shoppingCouponLocalService.getCoupon(couponId);
157     }
158 
159     public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
160         java.lang.String code)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         return _shoppingCouponLocalService.getCoupon(code);
164     }
165 
166     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
167         long groupId, long companyId, java.lang.String code, boolean active,
168         java.lang.String discountType, boolean andOperator, int start, int end)
169         throws com.liferay.portal.SystemException {
170         return _shoppingCouponLocalService.search(groupId, companyId, code,
171             active, discountType, andOperator, start, end);
172     }
173 
174     public int searchCount(long groupId, long companyId, java.lang.String code,
175         boolean active, java.lang.String discountType, boolean andOperator)
176         throws com.liferay.portal.SystemException {
177         return _shoppingCouponLocalService.searchCount(groupId, companyId,
178             code, active, discountType, andOperator);
179     }
180 
181     public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
182         long userId, long couponId, java.lang.String name,
183         java.lang.String description, int startDateMonth, int startDateDay,
184         int startDateYear, int startDateHour, int startDateMinute,
185         int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
186         int endDateMinute, boolean neverExpire, boolean active,
187         java.lang.String limitCategories, java.lang.String limitSkus,
188         double minOrder, double discount, java.lang.String discountType,
189         com.liferay.portal.service.ServiceContext serviceContext)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException {
192         return _shoppingCouponLocalService.updateCoupon(userId, couponId, name,
193             description, startDateMonth, startDateDay, startDateYear,
194             startDateHour, startDateMinute, endDateMonth, endDateDay,
195             endDateYear, endDateHour, endDateMinute, neverExpire, active,
196             limitCategories, limitSkus, minOrder, discount, discountType,
197             serviceContext);
198     }
199 
200     public ShoppingCouponLocalService getWrappedShoppingCouponLocalService() {
201         return _shoppingCouponLocalService;
202     }
203 
204     private ShoppingCouponLocalService _shoppingCouponLocalService;
205 }