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 ShoppingCouponLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ShoppingCouponLocalService
026     * @generated
027     */
028    @ProviderType
029    public class ShoppingCouponLocalServiceWrapper
030            implements ShoppingCouponLocalService,
031                    ServiceWrapper<ShoppingCouponLocalService> {
032            public ShoppingCouponLocalServiceWrapper(
033                    ShoppingCouponLocalService shoppingCouponLocalService) {
034                    _shoppingCouponLocalService = shoppingCouponLocalService;
035            }
036    
037            @Override
038            public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
039                    long userId, java.lang.String code, boolean autoCode,
040                    java.lang.String name, java.lang.String description,
041                    int startDateMonth, int startDateDay, int startDateYear,
042                    int startDateHour, int startDateMinute, int endDateMonth,
043                    int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
044                    boolean neverExpire, boolean active, java.lang.String limitCategories,
045                    java.lang.String limitSkus, double minOrder, double discount,
046                    java.lang.String discountType,
047                    com.liferay.portal.service.ServiceContext serviceContext)
048                    throws com.liferay.portal.kernel.exception.PortalException {
049                    return _shoppingCouponLocalService.addCoupon(userId, code, autoCode,
050                            name, description, startDateMonth, startDateDay, startDateYear,
051                            startDateHour, startDateMinute, endDateMonth, endDateDay,
052                            endDateYear, endDateHour, endDateMinute, neverExpire, active,
053                            limitCategories, limitSkus, minOrder, discount, discountType,
054                            serviceContext);
055            }
056    
057            /**
058            * Adds the shopping coupon to the database. Also notifies the appropriate model listeners.
059            *
060            * @param shoppingCoupon the shopping coupon
061            * @return the shopping coupon that was added
062            */
063            @Override
064            public com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
065                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon) {
066                    return _shoppingCouponLocalService.addShoppingCoupon(shoppingCoupon);
067            }
068    
069            /**
070            * Creates a new shopping coupon with the primary key. Does not add the shopping coupon to the database.
071            *
072            * @param couponId the primary key for the new shopping coupon
073            * @return the new shopping coupon
074            */
075            @Override
076            public com.liferay.portlet.shopping.model.ShoppingCoupon createShoppingCoupon(
077                    long couponId) {
078                    return _shoppingCouponLocalService.createShoppingCoupon(couponId);
079            }
080    
081            @Override
082            public void deleteCoupon(
083                    com.liferay.portlet.shopping.model.ShoppingCoupon coupon) {
084                    _shoppingCouponLocalService.deleteCoupon(coupon);
085            }
086    
087            @Override
088            public void deleteCoupon(long couponId)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    _shoppingCouponLocalService.deleteCoupon(couponId);
091            }
092    
093            @Override
094            public void deleteCoupons(long groupId) {
095                    _shoppingCouponLocalService.deleteCoupons(groupId);
096            }
097    
098            /**
099            * @throws PortalException
100            */
101            @Override
102            public com.liferay.portal.model.PersistedModel deletePersistedModel(
103                    com.liferay.portal.model.PersistedModel persistedModel)
104                    throws com.liferay.portal.kernel.exception.PortalException {
105                    return _shoppingCouponLocalService.deletePersistedModel(persistedModel);
106            }
107    
108            /**
109            * Deletes the shopping coupon with the primary key from the database. Also notifies the appropriate model listeners.
110            *
111            * @param couponId the primary key of the shopping coupon
112            * @return the shopping coupon that was removed
113            * @throws PortalException if a shopping coupon with the primary key could not be found
114            */
115            @Override
116            public com.liferay.portlet.shopping.model.ShoppingCoupon deleteShoppingCoupon(
117                    long couponId)
118                    throws com.liferay.portal.kernel.exception.PortalException {
119                    return _shoppingCouponLocalService.deleteShoppingCoupon(couponId);
120            }
121    
122            /**
123            * Deletes the shopping coupon from the database. Also notifies the appropriate model listeners.
124            *
125            * @param shoppingCoupon the shopping coupon
126            * @return the shopping coupon that was removed
127            */
128            @Override
129            public com.liferay.portlet.shopping.model.ShoppingCoupon deleteShoppingCoupon(
130                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon) {
131                    return _shoppingCouponLocalService.deleteShoppingCoupon(shoppingCoupon);
132            }
133    
134            @Override
135            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
136                    return _shoppingCouponLocalService.dynamicQuery();
137            }
138    
139            /**
140            * Performs a dynamic query on the database and returns the matching rows.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the matching rows
144            */
145            @Override
146            public <T> java.util.List<T> dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
148                    return _shoppingCouponLocalService.dynamicQuery(dynamicQuery);
149            }
150    
151            /**
152            * Performs a dynamic query on the database and returns a range of the matching rows.
153            *
154            * <p>
155            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
156            * </p>
157            *
158            * @param dynamicQuery the dynamic query
159            * @param start the lower bound of the range of model instances
160            * @param end the upper bound of the range of model instances (not inclusive)
161            * @return the range of matching rows
162            */
163            @Override
164            public <T> java.util.List<T> dynamicQuery(
165                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
166                    int end) {
167                    return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start, end);
168            }
169    
170            /**
171            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
172            *
173            * <p>
174            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
175            * </p>
176            *
177            * @param dynamicQuery the dynamic query
178            * @param start the lower bound of the range of model instances
179            * @param end the upper bound of the range of model instances (not inclusive)
180            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
181            * @return the ordered range of matching rows
182            */
183            @Override
184            public <T> java.util.List<T> dynamicQuery(
185                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
186                    int end,
187                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
188                    return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start,
189                            end, orderByComparator);
190            }
191    
192            /**
193            * Returns the number of rows matching the dynamic query.
194            *
195            * @param dynamicQuery the dynamic query
196            * @return the number of rows matching the dynamic query
197            */
198            @Override
199            public long dynamicQueryCount(
200                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
201                    return _shoppingCouponLocalService.dynamicQueryCount(dynamicQuery);
202            }
203    
204            /**
205            * Returns the number of rows matching the dynamic query.
206            *
207            * @param dynamicQuery the dynamic query
208            * @param projection the projection to apply to the query
209            * @return the number of rows matching the dynamic query
210            */
211            @Override
212            public long dynamicQueryCount(
213                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
214                    com.liferay.portal.kernel.dao.orm.Projection projection) {
215                    return _shoppingCouponLocalService.dynamicQueryCount(dynamicQuery,
216                            projection);
217            }
218    
219            @Override
220            public com.liferay.portlet.shopping.model.ShoppingCoupon fetchShoppingCoupon(
221                    long couponId) {
222                    return _shoppingCouponLocalService.fetchShoppingCoupon(couponId);
223            }
224    
225            @Override
226            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
227                    return _shoppingCouponLocalService.getActionableDynamicQuery();
228            }
229    
230            /**
231            * Returns the Spring bean ID for this bean.
232            *
233            * @return the Spring bean ID for this bean
234            */
235            @Override
236            public java.lang.String getBeanIdentifier() {
237                    return _shoppingCouponLocalService.getBeanIdentifier();
238            }
239    
240            @Override
241            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
242                    java.lang.String code)
243                    throws com.liferay.portal.kernel.exception.PortalException {
244                    return _shoppingCouponLocalService.getCoupon(code);
245            }
246    
247            @Override
248            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
249                    long couponId)
250                    throws com.liferay.portal.kernel.exception.PortalException {
251                    return _shoppingCouponLocalService.getCoupon(couponId);
252            }
253    
254            @Override
255            public com.liferay.portal.model.PersistedModel getPersistedModel(
256                    java.io.Serializable primaryKeyObj)
257                    throws com.liferay.portal.kernel.exception.PortalException {
258                    return _shoppingCouponLocalService.getPersistedModel(primaryKeyObj);
259            }
260    
261            /**
262            * Returns the shopping coupon with the primary key.
263            *
264            * @param couponId the primary key of the shopping coupon
265            * @return the shopping coupon
266            * @throws PortalException if a shopping coupon with the primary key could not be found
267            */
268            @Override
269            public com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
270                    long couponId)
271                    throws com.liferay.portal.kernel.exception.PortalException {
272                    return _shoppingCouponLocalService.getShoppingCoupon(couponId);
273            }
274    
275            /**
276            * Returns a range of all the shopping coupons.
277            *
278            * <p>
279            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
280            * </p>
281            *
282            * @param start the lower bound of the range of shopping coupons
283            * @param end the upper bound of the range of shopping coupons (not inclusive)
284            * @return the range of shopping coupons
285            */
286            @Override
287            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
288                    int start, int end) {
289                    return _shoppingCouponLocalService.getShoppingCoupons(start, end);
290            }
291    
292            /**
293            * Returns the number of shopping coupons.
294            *
295            * @return the number of shopping coupons
296            */
297            @Override
298            public int getShoppingCouponsCount() {
299                    return _shoppingCouponLocalService.getShoppingCouponsCount();
300            }
301    
302            @Override
303            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
304                    long groupId, long companyId, java.lang.String code, boolean active,
305                    java.lang.String discountType, boolean andOperator, int start, int end) {
306                    return _shoppingCouponLocalService.search(groupId, companyId, code,
307                            active, discountType, andOperator, start, end);
308            }
309    
310            @Override
311            public int searchCount(long groupId, long companyId, java.lang.String code,
312                    boolean active, java.lang.String discountType, boolean andOperator) {
313                    return _shoppingCouponLocalService.searchCount(groupId, companyId,
314                            code, active, discountType, andOperator);
315            }
316    
317            /**
318            * Sets the Spring bean ID for this bean.
319            *
320            * @param beanIdentifier the Spring bean ID for this bean
321            */
322            @Override
323            public void setBeanIdentifier(java.lang.String beanIdentifier) {
324                    _shoppingCouponLocalService.setBeanIdentifier(beanIdentifier);
325            }
326    
327            @Override
328            public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
329                    long userId, long couponId, java.lang.String name,
330                    java.lang.String description, int startDateMonth, int startDateDay,
331                    int startDateYear, int startDateHour, int startDateMinute,
332                    int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
333                    int endDateMinute, boolean neverExpire, boolean active,
334                    java.lang.String limitCategories, java.lang.String limitSkus,
335                    double minOrder, double discount, java.lang.String discountType,
336                    com.liferay.portal.service.ServiceContext serviceContext)
337                    throws com.liferay.portal.kernel.exception.PortalException {
338                    return _shoppingCouponLocalService.updateCoupon(userId, couponId, name,
339                            description, startDateMonth, startDateDay, startDateYear,
340                            startDateHour, startDateMinute, endDateMonth, endDateDay,
341                            endDateYear, endDateHour, endDateMinute, neverExpire, active,
342                            limitCategories, limitSkus, minOrder, discount, discountType,
343                            serviceContext);
344            }
345    
346            /**
347            * Updates the shopping coupon in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
348            *
349            * @param shoppingCoupon the shopping coupon
350            * @return the shopping coupon that was updated
351            */
352            @Override
353            public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
354                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon) {
355                    return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon);
356            }
357    
358            /**
359             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
360             */
361            @Deprecated
362            public ShoppingCouponLocalService getWrappedShoppingCouponLocalService() {
363                    return _shoppingCouponLocalService;
364            }
365    
366            /**
367             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
368             */
369            @Deprecated
370            public void setWrappedShoppingCouponLocalService(
371                    ShoppingCouponLocalService shoppingCouponLocalService) {
372                    _shoppingCouponLocalService = shoppingCouponLocalService;
373            }
374    
375            @Override
376            public ShoppingCouponLocalService getWrappedService() {
377                    return _shoppingCouponLocalService;
378            }
379    
380            @Override
381            public void setWrappedService(
382                    ShoppingCouponLocalService shoppingCouponLocalService) {
383                    _shoppingCouponLocalService = shoppingCouponLocalService;
384            }
385    
386            private ShoppingCouponLocalService _shoppingCouponLocalService;
387    }