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 ShoppingCouponLocalService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       ShoppingCouponLocalService
025     * @generated
026     */
027    public class ShoppingCouponLocalServiceWrapper
028            implements ShoppingCouponLocalService {
029            public ShoppingCouponLocalServiceWrapper(
030                    ShoppingCouponLocalService shoppingCouponLocalService) {
031                    _shoppingCouponLocalService = shoppingCouponLocalService;
032            }
033    
034            public com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
035                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
036                    throws com.liferay.portal.kernel.exception.SystemException {
037                    return _shoppingCouponLocalService.addShoppingCoupon(shoppingCoupon);
038            }
039    
040            public com.liferay.portlet.shopping.model.ShoppingCoupon createShoppingCoupon(
041                    long couponId) {
042                    return _shoppingCouponLocalService.createShoppingCoupon(couponId);
043            }
044    
045            public void deleteShoppingCoupon(long couponId)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    _shoppingCouponLocalService.deleteShoppingCoupon(couponId);
049            }
050    
051            public void deleteShoppingCoupon(
052                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    _shoppingCouponLocalService.deleteShoppingCoupon(shoppingCoupon);
055            }
056    
057            @SuppressWarnings("unchecked")
058            public java.util.List dynamicQuery(
059                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
060                    throws com.liferay.portal.kernel.exception.SystemException {
061                    return _shoppingCouponLocalService.dynamicQuery(dynamicQuery);
062            }
063    
064            @SuppressWarnings("unchecked")
065            public java.util.List dynamicQuery(
066                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
067                    int end) throws com.liferay.portal.kernel.exception.SystemException {
068                    return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start, end);
069            }
070    
071            @SuppressWarnings("unchecked")
072            public java.util.List dynamicQuery(
073                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
074                    int end,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start,
078                            end, orderByComparator);
079            }
080    
081            public long dynamicQueryCount(
082                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _shoppingCouponLocalService.dynamicQueryCount(dynamicQuery);
085            }
086    
087            public com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
088                    long couponId)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return _shoppingCouponLocalService.getShoppingCoupon(couponId);
092            }
093    
094            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
095                    int start, int end)
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return _shoppingCouponLocalService.getShoppingCoupons(start, end);
098            }
099    
100            public int getShoppingCouponsCount()
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _shoppingCouponLocalService.getShoppingCouponsCount();
103            }
104    
105            public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
106                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon);
109            }
110    
111            public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
112                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
113                    boolean merge)
114                    throws com.liferay.portal.kernel.exception.SystemException {
115                    return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon,
116                            merge);
117            }
118    
119            public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
120                    long userId, java.lang.String code, boolean autoCode,
121                    java.lang.String name, java.lang.String description,
122                    int startDateMonth, int startDateDay, int startDateYear,
123                    int startDateHour, int startDateMinute, int endDateMonth,
124                    int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
125                    boolean neverExpire, boolean active, java.lang.String limitCategories,
126                    java.lang.String limitSkus, double minOrder, double discount,
127                    java.lang.String discountType,
128                    com.liferay.portal.service.ServiceContext serviceContext)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException {
131                    return _shoppingCouponLocalService.addCoupon(userId, code, autoCode,
132                            name, description, startDateMonth, startDateDay, startDateYear,
133                            startDateHour, startDateMinute, endDateMonth, endDateDay,
134                            endDateYear, endDateHour, endDateMinute, neverExpire, active,
135                            limitCategories, limitSkus, minOrder, discount, discountType,
136                            serviceContext);
137            }
138    
139            public void deleteCoupon(long couponId)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    _shoppingCouponLocalService.deleteCoupon(couponId);
143            }
144    
145            public void deleteCoupons(long groupId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    _shoppingCouponLocalService.deleteCoupons(groupId);
148            }
149    
150            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
151                    long couponId)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException {
154                    return _shoppingCouponLocalService.getCoupon(couponId);
155            }
156    
157            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
158                    java.lang.String code)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    return _shoppingCouponLocalService.getCoupon(code);
162            }
163    
164            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
165                    long groupId, long companyId, java.lang.String code, boolean active,
166                    java.lang.String discountType, boolean andOperator, int start, int end)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return _shoppingCouponLocalService.search(groupId, companyId, code,
169                            active, discountType, andOperator, start, end);
170            }
171    
172            public int searchCount(long groupId, long companyId, java.lang.String code,
173                    boolean active, java.lang.String discountType, boolean andOperator)
174                    throws com.liferay.portal.kernel.exception.SystemException {
175                    return _shoppingCouponLocalService.searchCount(groupId, companyId,
176                            code, active, discountType, andOperator);
177            }
178    
179            public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
180                    long userId, long couponId, java.lang.String name,
181                    java.lang.String description, int startDateMonth, int startDateDay,
182                    int startDateYear, int startDateHour, int startDateMinute,
183                    int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
184                    int endDateMinute, boolean neverExpire, boolean active,
185                    java.lang.String limitCategories, java.lang.String limitSkus,
186                    double minOrder, double discount, java.lang.String discountType,
187                    com.liferay.portal.service.ServiceContext serviceContext)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException {
190                    return _shoppingCouponLocalService.updateCoupon(userId, couponId, name,
191                            description, startDateMonth, startDateDay, startDateYear,
192                            startDateHour, startDateMinute, endDateMonth, endDateDay,
193                            endDateYear, endDateHour, endDateMinute, neverExpire, active,
194                            limitCategories, limitSkus, minOrder, discount, discountType,
195                            serviceContext);
196            }
197    
198            public ShoppingCouponLocalService getWrappedShoppingCouponLocalService() {
199                    return _shoppingCouponLocalService;
200            }
201    
202            private ShoppingCouponLocalService _shoppingCouponLocalService;
203    }