1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.shopping.service;
24  
25  
26  /**
27   * <a href="ShoppingCouponLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link ShoppingCouponLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       ShoppingCouponLocalService
40   * @generated
41   */
42  public class ShoppingCouponLocalServiceWrapper
43      implements ShoppingCouponLocalService {
44      public ShoppingCouponLocalServiceWrapper(
45          ShoppingCouponLocalService shoppingCouponLocalService) {
46          _shoppingCouponLocalService = shoppingCouponLocalService;
47      }
48  
49      public com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
50          com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
51          throws com.liferay.portal.SystemException {
52          return _shoppingCouponLocalService.addShoppingCoupon(shoppingCoupon);
53      }
54  
55      public com.liferay.portlet.shopping.model.ShoppingCoupon createShoppingCoupon(
56          long couponId) {
57          return _shoppingCouponLocalService.createShoppingCoupon(couponId);
58      }
59  
60      public void deleteShoppingCoupon(long couponId)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException {
63          _shoppingCouponLocalService.deleteShoppingCoupon(couponId);
64      }
65  
66      public void deleteShoppingCoupon(
67          com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
68          throws com.liferay.portal.SystemException {
69          _shoppingCouponLocalService.deleteShoppingCoupon(shoppingCoupon);
70      }
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException {
75          return _shoppingCouponLocalService.dynamicQuery(dynamicQuery);
76      }
77  
78      public java.util.List<Object> dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end) throws com.liferay.portal.SystemException {
81          return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start, end);
82      }
83  
84      public com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
85          long couponId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException {
88          return _shoppingCouponLocalService.getShoppingCoupon(couponId);
89      }
90  
91      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
92          int start, int end) throws com.liferay.portal.SystemException {
93          return _shoppingCouponLocalService.getShoppingCoupons(start, end);
94      }
95  
96      public int getShoppingCouponsCount()
97          throws com.liferay.portal.SystemException {
98          return _shoppingCouponLocalService.getShoppingCouponsCount();
99      }
100 
101     public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
102         com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
103         throws com.liferay.portal.SystemException {
104         return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon);
105     }
106 
107     public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
108         com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
109         boolean merge) throws com.liferay.portal.SystemException {
110         return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon,
111             merge);
112     }
113 
114     public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
115         long userId, java.lang.String code, boolean autoCode,
116         java.lang.String name, java.lang.String description,
117         int startDateMonth, int startDateDay, int startDateYear,
118         int startDateHour, int startDateMinute, int endDateMonth,
119         int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
120         boolean neverExpire, boolean active, java.lang.String limitCategories,
121         java.lang.String limitSkus, double minOrder, double discount,
122         java.lang.String discountType,
123         com.liferay.portal.service.ServiceContext serviceContext)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         return _shoppingCouponLocalService.addCoupon(userId, code, autoCode,
127             name, description, startDateMonth, startDateDay, startDateYear,
128             startDateHour, startDateMinute, endDateMonth, endDateDay,
129             endDateYear, endDateHour, endDateMinute, neverExpire, active,
130             limitCategories, limitSkus, minOrder, discount, discountType,
131             serviceContext);
132     }
133 
134     public void deleteCoupon(long couponId)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         _shoppingCouponLocalService.deleteCoupon(couponId);
138     }
139 
140     public void deleteCoupons(long groupId)
141         throws com.liferay.portal.SystemException {
142         _shoppingCouponLocalService.deleteCoupons(groupId);
143     }
144 
145     public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
146         long couponId)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         return _shoppingCouponLocalService.getCoupon(couponId);
150     }
151 
152     public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
153         java.lang.String code)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         return _shoppingCouponLocalService.getCoupon(code);
157     }
158 
159     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
160         long groupId, long companyId, java.lang.String code, boolean active,
161         java.lang.String discountType, boolean andOperator, int start, int end)
162         throws com.liferay.portal.SystemException {
163         return _shoppingCouponLocalService.search(groupId, companyId, code,
164             active, discountType, andOperator, start, end);
165     }
166 
167     public int searchCount(long groupId, long companyId, java.lang.String code,
168         boolean active, java.lang.String discountType, boolean andOperator)
169         throws com.liferay.portal.SystemException {
170         return _shoppingCouponLocalService.searchCount(groupId, companyId,
171             code, active, discountType, andOperator);
172     }
173 
174     public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
175         long userId, long couponId, java.lang.String name,
176         java.lang.String description, int startDateMonth, int startDateDay,
177         int startDateYear, int startDateHour, int startDateMinute,
178         int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
179         int endDateMinute, boolean neverExpire, boolean active,
180         java.lang.String limitCategories, java.lang.String limitSkus,
181         double minOrder, double discount, java.lang.String discountType,
182         com.liferay.portal.service.ServiceContext serviceContext)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException {
185         return _shoppingCouponLocalService.updateCoupon(userId, couponId, name,
186             description, startDateMonth, startDateDay, startDateYear,
187             startDateHour, startDateMinute, endDateMonth, endDateDay,
188             endDateYear, endDateHour, endDateMinute, neverExpire, active,
189             limitCategories, limitSkus, minOrder, discount, discountType,
190             serviceContext);
191     }
192 
193     public ShoppingCouponLocalService getWrappedShoppingCouponLocalService() {
194         return _shoppingCouponLocalService;
195     }
196 
197     private ShoppingCouponLocalService _shoppingCouponLocalService;
198 }