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="ShoppingCouponServiceUtil.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 ShoppingCouponService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       ShoppingCouponService
32   * @generated
33   */
34  public class ShoppingCouponServiceWrapper implements ShoppingCouponService {
35      public ShoppingCouponServiceWrapper(
36          ShoppingCouponService shoppingCouponService) {
37          _shoppingCouponService = shoppingCouponService;
38      }
39  
40      public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
41          long plid, java.lang.String code, boolean autoCode,
42          java.lang.String name, java.lang.String description,
43          int startDateMonth, int startDateDay, int startDateYear,
44          int startDateHour, int startDateMinute, int endDateMonth,
45          int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
46          boolean neverExpire, boolean active, java.lang.String limitCategories,
47          java.lang.String limitSkus, double minOrder, double discount,
48          java.lang.String discountType)
49          throws com.liferay.portal.PortalException,
50              com.liferay.portal.SystemException, java.rmi.RemoteException {
51          return _shoppingCouponService.addCoupon(plid, code, autoCode, name,
52              description, startDateMonth, startDateDay, startDateYear,
53              startDateHour, startDateMinute, endDateMonth, endDateDay,
54              endDateYear, endDateHour, endDateMinute, neverExpire, active,
55              limitCategories, limitSkus, minOrder, discount, discountType);
56      }
57  
58      public void deleteCoupon(long plid, long couponId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException, java.rmi.RemoteException {
61          _shoppingCouponService.deleteCoupon(plid, couponId);
62      }
63  
64      public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
65          long plid, long couponId)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException, java.rmi.RemoteException {
68          return _shoppingCouponService.getCoupon(plid, couponId);
69      }
70  
71      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
72          long plid, long companyId, java.lang.String code, boolean active,
73          java.lang.String discountType, boolean andOperator, int start, int end)
74          throws com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException, java.rmi.RemoteException {
76          return _shoppingCouponService.search(plid, companyId, code, active,
77              discountType, andOperator, start, end);
78      }
79  
80      public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
81          long plid, long couponId, java.lang.String name,
82          java.lang.String description, int startDateMonth, int startDateDay,
83          int startDateYear, int startDateHour, int startDateMinute,
84          int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
85          int endDateMinute, boolean neverExpire, boolean active,
86          java.lang.String limitCategories, java.lang.String limitSkus,
87          double minOrder, double discount, java.lang.String discountType)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException, java.rmi.RemoteException {
90          return _shoppingCouponService.updateCoupon(plid, couponId, name,
91              description, startDateMonth, startDateDay, startDateYear,
92              startDateHour, startDateMinute, endDateMonth, endDateDay,
93              endDateYear, endDateHour, endDateMinute, neverExpire, active,
94              limitCategories, limitSkus, minOrder, discount, discountType);
95      }
96  
97      public ShoppingCouponService getWrappedShoppingCouponService() {
98          return _shoppingCouponService;
99      }
100 
101     private ShoppingCouponService _shoppingCouponService;
102 }