001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link ShoppingCouponService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ShoppingCouponService
026     * @generated
027     */
028    @ProviderType
029    public class ShoppingCouponServiceWrapper implements ShoppingCouponService,
030            ServiceWrapper<ShoppingCouponService> {
031            public ShoppingCouponServiceWrapper(
032                    ShoppingCouponService shoppingCouponService) {
033                    _shoppingCouponService = shoppingCouponService;
034            }
035    
036            @Override
037            public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
038                    java.lang.String code, boolean autoCode, java.lang.String name,
039                    java.lang.String description, int startDateMonth, int startDateDay,
040                    int startDateYear, int startDateHour, int startDateMinute,
041                    int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
042                    int endDateMinute, boolean neverExpire, boolean active,
043                    java.lang.String limitCategories, java.lang.String limitSkus,
044                    double minOrder, double discount, java.lang.String discountType,
045                    com.liferay.portal.service.ServiceContext serviceContext)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return _shoppingCouponService.addCoupon(code, autoCode, name,
048                            description, startDateMonth, startDateDay, startDateYear,
049                            startDateHour, startDateMinute, endDateMonth, endDateDay,
050                            endDateYear, endDateHour, endDateMinute, neverExpire, active,
051                            limitCategories, limitSkus, minOrder, discount, discountType,
052                            serviceContext);
053            }
054    
055            @Override
056            public void deleteCoupon(long groupId, long couponId)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    _shoppingCouponService.deleteCoupon(groupId, couponId);
059            }
060    
061            /**
062            * Returns the Spring bean ID for this bean.
063            *
064            * @return the Spring bean ID for this bean
065            */
066            @Override
067            public java.lang.String getBeanIdentifier() {
068                    return _shoppingCouponService.getBeanIdentifier();
069            }
070    
071            @Override
072            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
073                    long groupId, long couponId)
074                    throws com.liferay.portal.kernel.exception.PortalException {
075                    return _shoppingCouponService.getCoupon(groupId, couponId);
076            }
077    
078            @Override
079            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
080                    long groupId, long companyId, java.lang.String code, boolean active,
081                    java.lang.String discountType, boolean andOperator, int start, int end)
082                    throws com.liferay.portal.kernel.exception.PortalException {
083                    return _shoppingCouponService.search(groupId, companyId, code, active,
084                            discountType, andOperator, start, end);
085            }
086    
087            /**
088            * Sets the Spring bean ID for this bean.
089            *
090            * @param beanIdentifier the Spring bean ID for this bean
091            */
092            @Override
093            public void setBeanIdentifier(java.lang.String beanIdentifier) {
094                    _shoppingCouponService.setBeanIdentifier(beanIdentifier);
095            }
096    
097            @Override
098            public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
099                    long couponId, java.lang.String name, java.lang.String description,
100                    int startDateMonth, int startDateDay, int startDateYear,
101                    int startDateHour, int startDateMinute, int endDateMonth,
102                    int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
103                    boolean neverExpire, boolean active, java.lang.String limitCategories,
104                    java.lang.String limitSkus, double minOrder, double discount,
105                    java.lang.String discountType,
106                    com.liferay.portal.service.ServiceContext serviceContext)
107                    throws com.liferay.portal.kernel.exception.PortalException {
108                    return _shoppingCouponService.updateCoupon(couponId, name, description,
109                            startDateMonth, startDateDay, startDateYear, startDateHour,
110                            startDateMinute, endDateMonth, endDateDay, endDateYear,
111                            endDateHour, endDateMinute, neverExpire, active, limitCategories,
112                            limitSkus, minOrder, discount, discountType, serviceContext);
113            }
114    
115            /**
116             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
117             */
118            @Deprecated
119            public ShoppingCouponService getWrappedShoppingCouponService() {
120                    return _shoppingCouponService;
121            }
122    
123            /**
124             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
125             */
126            @Deprecated
127            public void setWrappedShoppingCouponService(
128                    ShoppingCouponService shoppingCouponService) {
129                    _shoppingCouponService = shoppingCouponService;
130            }
131    
132            @Override
133            public ShoppingCouponService getWrappedService() {
134                    return _shoppingCouponService;
135            }
136    
137            @Override
138            public void setWrappedService(ShoppingCouponService shoppingCouponService) {
139                    _shoppingCouponService = shoppingCouponService;
140            }
141    
142            private ShoppingCouponService _shoppingCouponService;
143    }