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