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          java.lang.String code, boolean autoCode, java.lang.String name,
42          java.lang.String description, int startDateMonth, int startDateDay,
43          int startDateYear, int startDateHour, int startDateMinute,
44          int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
45          int endDateMinute, boolean neverExpire, boolean active,
46          java.lang.String limitCategories, java.lang.String limitSkus,
47          double minOrder, double discount, java.lang.String discountType,
48          com.liferay.portal.service.ServiceContext serviceContext)
49          throws com.liferay.portal.kernel.exception.PortalException,
50              com.liferay.portal.kernel.exception.SystemException {
51          return _shoppingCouponService.addCoupon(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              serviceContext);
57      }
58  
59      public void deleteCoupon(long groupId, long couponId)
60          throws com.liferay.portal.kernel.exception.PortalException,
61              com.liferay.portal.kernel.exception.SystemException {
62          _shoppingCouponService.deleteCoupon(groupId, couponId);
63      }
64  
65      public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
66          long groupId, long couponId)
67          throws com.liferay.portal.kernel.exception.PortalException,
68              com.liferay.portal.kernel.exception.SystemException {
69          return _shoppingCouponService.getCoupon(groupId, couponId);
70      }
71  
72      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
73          long groupId, long companyId, java.lang.String code, boolean active,
74          java.lang.String discountType, boolean andOperator, int start, int end)
75          throws com.liferay.portal.kernel.exception.PortalException,
76              com.liferay.portal.kernel.exception.SystemException {
77          return _shoppingCouponService.search(groupId, companyId, code, active,
78              discountType, andOperator, start, end);
79      }
80  
81      public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
82          long couponId, java.lang.String name, java.lang.String description,
83          int startDateMonth, int startDateDay, int startDateYear,
84          int startDateHour, int startDateMinute, int endDateMonth,
85          int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
86          boolean neverExpire, boolean active, java.lang.String limitCategories,
87          java.lang.String limitSkus, double minOrder, double discount,
88          java.lang.String discountType,
89          com.liferay.portal.service.ServiceContext serviceContext)
90          throws com.liferay.portal.kernel.exception.PortalException,
91              com.liferay.portal.kernel.exception.SystemException {
92          return _shoppingCouponService.updateCoupon(couponId, name, description,
93              startDateMonth, startDateDay, startDateYear, startDateHour,
94              startDateMinute, endDateMonth, endDateDay, endDateYear,
95              endDateHour, endDateMinute, neverExpire, active, limitCategories,
96              limitSkus, minOrder, discount, discountType, serviceContext);
97      }
98  
99      public ShoppingCouponService getWrappedShoppingCouponService() {
100         return _shoppingCouponService;
101     }
102 
103     private ShoppingCouponService _shoppingCouponService;
104 }