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