001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service;
016    
017    
018    /**
019     * <p>
020     * This class is a wrapper for {@link ShoppingCouponService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       ShoppingCouponService
025     * @generated
026     */
027    public class ShoppingCouponServiceWrapper implements ShoppingCouponService {
028            public ShoppingCouponServiceWrapper(
029                    ShoppingCouponService shoppingCouponService) {
030                    _shoppingCouponService = shoppingCouponService;
031            }
032    
033            public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
034                    java.lang.String code, boolean autoCode, java.lang.String name,
035                    java.lang.String description, int startDateMonth, int startDateDay,
036                    int startDateYear, int startDateHour, int startDateMinute,
037                    int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
038                    int endDateMinute, boolean neverExpire, boolean active,
039                    java.lang.String limitCategories, java.lang.String limitSkus,
040                    double minOrder, double discount, java.lang.String discountType,
041                    com.liferay.portal.service.ServiceContext serviceContext)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    return _shoppingCouponService.addCoupon(code, autoCode, name,
045                            description, startDateMonth, startDateDay, startDateYear,
046                            startDateHour, startDateMinute, endDateMonth, endDateDay,
047                            endDateYear, endDateHour, endDateMinute, neverExpire, active,
048                            limitCategories, limitSkus, minOrder, discount, discountType,
049                            serviceContext);
050            }
051    
052            public void deleteCoupon(long groupId, long couponId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException {
055                    _shoppingCouponService.deleteCoupon(groupId, couponId);
056            }
057    
058            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
059                    long groupId, long couponId)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    return _shoppingCouponService.getCoupon(groupId, couponId);
063            }
064    
065            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
066                    long groupId, long companyId, java.lang.String code, boolean active,
067                    java.lang.String discountType, boolean andOperator, int start, int end)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _shoppingCouponService.search(groupId, companyId, code, active,
071                            discountType, andOperator, start, end);
072            }
073    
074            public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
075                    long couponId, java.lang.String name, java.lang.String description,
076                    int startDateMonth, int startDateDay, int startDateYear,
077                    int startDateHour, int startDateMinute, int endDateMonth,
078                    int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
079                    boolean neverExpire, boolean active, java.lang.String limitCategories,
080                    java.lang.String limitSkus, double minOrder, double discount,
081                    java.lang.String discountType,
082                    com.liferay.portal.service.ServiceContext serviceContext)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return _shoppingCouponService.updateCoupon(couponId, name, description,
086                            startDateMonth, startDateDay, startDateYear, startDateHour,
087                            startDateMinute, endDateMonth, endDateDay, endDateYear,
088                            endDateHour, endDateMinute, neverExpire, active, limitCategories,
089                            limitSkus, minOrder, discount, discountType, serviceContext);
090            }
091    
092            public ShoppingCouponService getWrappedShoppingCouponService() {
093                    return _shoppingCouponService;
094            }
095    
096            private ShoppingCouponService _shoppingCouponService;
097    }