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