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.kernel.exception.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.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException {
55          _shoppingCouponLocalService.deleteShoppingCoupon(couponId);
56      }
57  
58      public void deleteShoppingCoupon(
59          com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
60          throws com.liferay.portal.kernel.exception.SystemException {
61          _shoppingCouponLocalService.deleteShoppingCoupon(shoppingCoupon);
62      }
63  
64      @SuppressWarnings("unchecked")
65      public java.util.List dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException {
68          return _shoppingCouponLocalService.dynamicQuery(dynamicQuery);
69      }
70  
71      @SuppressWarnings("unchecked")
72      public java.util.List dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.kernel.exception.SystemException {
75          return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      @SuppressWarnings("unchecked")
79      public java.util.List dynamicQuery(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
81          int end,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.kernel.exception.SystemException {
84          return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start,
85              end, orderByComparator);
86      }
87  
88      public long dynamicQueryCount(
89          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
90          throws com.liferay.portal.kernel.exception.SystemException {
91          return _shoppingCouponLocalService.dynamicQueryCount(dynamicQuery);
92      }
93  
94      public com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
95          long couponId)
96          throws com.liferay.portal.kernel.exception.PortalException,
97              com.liferay.portal.kernel.exception.SystemException {
98          return _shoppingCouponLocalService.getShoppingCoupon(couponId);
99      }
100 
101     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
102         int start, int end)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return _shoppingCouponLocalService.getShoppingCoupons(start, end);
105     }
106 
107     public int getShoppingCouponsCount()
108         throws com.liferay.portal.kernel.exception.SystemException {
109         return _shoppingCouponLocalService.getShoppingCouponsCount();
110     }
111 
112     public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
113         com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon);
116     }
117 
118     public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
119         com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
120         boolean merge)
121         throws com.liferay.portal.kernel.exception.SystemException {
122         return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon,
123             merge);
124     }
125 
126     public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
127         long userId, java.lang.String code, boolean autoCode,
128         java.lang.String name, java.lang.String description,
129         int startDateMonth, int startDateDay, int startDateYear,
130         int startDateHour, int startDateMinute, int endDateMonth,
131         int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
132         boolean neverExpire, boolean active, java.lang.String limitCategories,
133         java.lang.String limitSkus, double minOrder, double discount,
134         java.lang.String discountType,
135         com.liferay.portal.service.ServiceContext serviceContext)
136         throws com.liferay.portal.kernel.exception.PortalException,
137             com.liferay.portal.kernel.exception.SystemException {
138         return _shoppingCouponLocalService.addCoupon(userId, code, autoCode,
139             name, description, startDateMonth, startDateDay, startDateYear,
140             startDateHour, startDateMinute, endDateMonth, endDateDay,
141             endDateYear, endDateHour, endDateMinute, neverExpire, active,
142             limitCategories, limitSkus, minOrder, discount, discountType,
143             serviceContext);
144     }
145 
146     public void deleteCoupon(long couponId)
147         throws com.liferay.portal.kernel.exception.PortalException,
148             com.liferay.portal.kernel.exception.SystemException {
149         _shoppingCouponLocalService.deleteCoupon(couponId);
150     }
151 
152     public void deleteCoupons(long groupId)
153         throws com.liferay.portal.kernel.exception.SystemException {
154         _shoppingCouponLocalService.deleteCoupons(groupId);
155     }
156 
157     public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
158         long couponId)
159         throws com.liferay.portal.kernel.exception.PortalException,
160             com.liferay.portal.kernel.exception.SystemException {
161         return _shoppingCouponLocalService.getCoupon(couponId);
162     }
163 
164     public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
165         java.lang.String code)
166         throws com.liferay.portal.kernel.exception.PortalException,
167             com.liferay.portal.kernel.exception.SystemException {
168         return _shoppingCouponLocalService.getCoupon(code);
169     }
170 
171     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
172         long groupId, long companyId, java.lang.String code, boolean active,
173         java.lang.String discountType, boolean andOperator, int start, int end)
174         throws com.liferay.portal.kernel.exception.SystemException {
175         return _shoppingCouponLocalService.search(groupId, companyId, code,
176             active, discountType, andOperator, start, end);
177     }
178 
179     public int searchCount(long groupId, long companyId, java.lang.String code,
180         boolean active, java.lang.String discountType, boolean andOperator)
181         throws com.liferay.portal.kernel.exception.SystemException {
182         return _shoppingCouponLocalService.searchCount(groupId, companyId,
183             code, active, discountType, andOperator);
184     }
185 
186     public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
187         long userId, long couponId, java.lang.String name,
188         java.lang.String description, int startDateMonth, int startDateDay,
189         int startDateYear, int startDateHour, int startDateMinute,
190         int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
191         int endDateMinute, boolean neverExpire, boolean active,
192         java.lang.String limitCategories, java.lang.String limitSkus,
193         double minOrder, double discount, java.lang.String discountType,
194         com.liferay.portal.service.ServiceContext serviceContext)
195         throws com.liferay.portal.kernel.exception.PortalException,
196             com.liferay.portal.kernel.exception.SystemException {
197         return _shoppingCouponLocalService.updateCoupon(userId, couponId, name,
198             description, startDateMonth, startDateDay, startDateYear,
199             startDateHour, startDateMinute, endDateMonth, endDateDay,
200             endDateYear, endDateHour, endDateMinute, neverExpire, active,
201             limitCategories, limitSkus, minOrder, discount, discountType,
202             serviceContext);
203     }
204 
205     public ShoppingCouponLocalService getWrappedShoppingCouponLocalService() {
206         return _shoppingCouponLocalService;
207     }
208 
209     private ShoppingCouponLocalService _shoppingCouponLocalService;
210 }