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 com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
77          long couponId)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException {
80          return _shoppingCouponLocalService.getShoppingCoupon(couponId);
81      }
82  
83      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
84          int start, int end) throws com.liferay.portal.SystemException {
85          return _shoppingCouponLocalService.getShoppingCoupons(start, end);
86      }
87  
88      public int getShoppingCouponsCount()
89          throws com.liferay.portal.SystemException {
90          return _shoppingCouponLocalService.getShoppingCouponsCount();
91      }
92  
93      public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
94          com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
95          throws com.liferay.portal.SystemException {
96          return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon);
97      }
98  
99      public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
100         com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
101         boolean merge) throws com.liferay.portal.SystemException {
102         return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon,
103             merge);
104     }
105 
106     public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
107         long userId, long plid, java.lang.String code, boolean autoCode,
108         java.lang.String name, java.lang.String description,
109         int startDateMonth, int startDateDay, int startDateYear,
110         int startDateHour, int startDateMinute, int endDateMonth,
111         int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
112         boolean neverExpire, boolean active, java.lang.String limitCategories,
113         java.lang.String limitSkus, double minOrder, double discount,
114         java.lang.String discountType)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return _shoppingCouponLocalService.addCoupon(userId, plid, code,
118             autoCode, name, description, startDateMonth, startDateDay,
119             startDateYear, startDateHour, startDateMinute, endDateMonth,
120             endDateDay, endDateYear, endDateHour, endDateMinute, neverExpire,
121             active, limitCategories, limitSkus, minOrder, discount, discountType);
122     }
123 
124     public void deleteCoupon(long couponId)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         _shoppingCouponLocalService.deleteCoupon(couponId);
128     }
129 
130     public void deleteCoupons(long groupId)
131         throws com.liferay.portal.SystemException {
132         _shoppingCouponLocalService.deleteCoupons(groupId);
133     }
134 
135     public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
136         long couponId)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         return _shoppingCouponLocalService.getCoupon(couponId);
140     }
141 
142     public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
143         java.lang.String code)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         return _shoppingCouponLocalService.getCoupon(code);
147     }
148 
149     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
150         long plid, long companyId, java.lang.String code, boolean active,
151         java.lang.String discountType, boolean andOperator, int start, int end)
152         throws com.liferay.portal.SystemException {
153         return _shoppingCouponLocalService.search(plid, companyId, code,
154             active, discountType, andOperator, start, end);
155     }
156 
157     public int searchCount(long groupId, long companyId, java.lang.String code,
158         boolean active, java.lang.String discountType, boolean andOperator)
159         throws com.liferay.portal.SystemException {
160         return _shoppingCouponLocalService.searchCount(groupId, companyId,
161             code, active, discountType, andOperator);
162     }
163 
164     public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
165         long userId, long couponId, java.lang.String name,
166         java.lang.String description, int startDateMonth, int startDateDay,
167         int startDateYear, int startDateHour, int startDateMinute,
168         int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
169         int endDateMinute, boolean neverExpire, boolean active,
170         java.lang.String limitCategories, java.lang.String limitSkus,
171         double minOrder, double discount, java.lang.String discountType)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException {
174         return _shoppingCouponLocalService.updateCoupon(userId, couponId, name,
175             description, startDateMonth, startDateDay, startDateYear,
176             startDateHour, startDateMinute, endDateMonth, endDateDay,
177             endDateYear, endDateHour, endDateMinute, neverExpire, active,
178             limitCategories, limitSkus, minOrder, discount, discountType);
179     }
180 
181     public ShoppingCouponLocalService getWrappedShoppingCouponLocalService() {
182         return _shoppingCouponLocalService;
183     }
184 
185     private ShoppingCouponLocalService _shoppingCouponLocalService;
186 }