001    /**
002     * Copyright (c) 2000-2012 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    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link ShoppingCouponService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ShoppingCouponService
026     * @generated
027     */
028    public class ShoppingCouponServiceWrapper implements ShoppingCouponService,
029            ServiceWrapper<ShoppingCouponService> {
030            public ShoppingCouponServiceWrapper(
031                    ShoppingCouponService shoppingCouponService) {
032                    _shoppingCouponService = shoppingCouponService;
033            }
034    
035            public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
036                    java.lang.String code, boolean autoCode, java.lang.String name,
037                    java.lang.String description, int startDateMonth, int startDateDay,
038                    int startDateYear, int startDateHour, int startDateMinute,
039                    int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
040                    int endDateMinute, boolean neverExpire, boolean active,
041                    java.lang.String limitCategories, java.lang.String limitSkus,
042                    double minOrder, double discount, java.lang.String discountType,
043                    com.liferay.portal.service.ServiceContext serviceContext)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException {
046                    return _shoppingCouponService.addCoupon(code, autoCode, name,
047                            description, startDateMonth, startDateDay, startDateYear,
048                            startDateHour, startDateMinute, endDateMonth, endDateDay,
049                            endDateYear, endDateHour, endDateMinute, neverExpire, active,
050                            limitCategories, limitSkus, minOrder, discount, discountType,
051                            serviceContext);
052            }
053    
054            public void deleteCoupon(long groupId, long couponId)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    _shoppingCouponService.deleteCoupon(groupId, couponId);
058            }
059    
060            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
061                    long groupId, long couponId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    return _shoppingCouponService.getCoupon(groupId, couponId);
065            }
066    
067            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
068                    long groupId, long companyId, java.lang.String code, boolean active,
069                    java.lang.String discountType, boolean andOperator, int start, int end)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _shoppingCouponService.search(groupId, companyId, code, active,
073                            discountType, andOperator, start, end);
074            }
075    
076            public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
077                    long couponId, java.lang.String name, java.lang.String description,
078                    int startDateMonth, int startDateDay, int startDateYear,
079                    int startDateHour, int startDateMinute, int endDateMonth,
080                    int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
081                    boolean neverExpire, boolean active, java.lang.String limitCategories,
082                    java.lang.String limitSkus, double minOrder, double discount,
083                    java.lang.String discountType,
084                    com.liferay.portal.service.ServiceContext serviceContext)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    return _shoppingCouponService.updateCoupon(couponId, name, description,
088                            startDateMonth, startDateDay, startDateYear, startDateHour,
089                            startDateMinute, endDateMonth, endDateDay, endDateYear,
090                            endDateHour, endDateMinute, neverExpire, active, limitCategories,
091                            limitSkus, minOrder, discount, discountType, serviceContext);
092            }
093    
094            /**
095             * @deprecated Renamed to {@link #getWrappedService}
096             */
097            public ShoppingCouponService getWrappedShoppingCouponService() {
098                    return _shoppingCouponService;
099            }
100    
101            /**
102             * @deprecated Renamed to {@link #setWrappedService}
103             */
104            public void setWrappedShoppingCouponService(
105                    ShoppingCouponService shoppingCouponService) {
106                    _shoppingCouponService = shoppingCouponService;
107            }
108    
109            public ShoppingCouponService getWrappedService() {
110                    return _shoppingCouponService;
111            }
112    
113            public void setWrappedService(ShoppingCouponService shoppingCouponService) {
114                    _shoppingCouponService = shoppingCouponService;
115            }
116    
117            private ShoppingCouponService _shoppingCouponService;
118    }