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 ShoppingOrderLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ShoppingOrderLocalService
026     * @generated
027     */
028    @ProviderType
029    public class ShoppingOrderLocalServiceWrapper
030            implements ShoppingOrderLocalService,
031                    ServiceWrapper<ShoppingOrderLocalService> {
032            public ShoppingOrderLocalServiceWrapper(
033                    ShoppingOrderLocalService shoppingOrderLocalService) {
034                    _shoppingOrderLocalService = shoppingOrderLocalService;
035            }
036    
037            @Override
038            public com.liferay.portlet.shopping.model.ShoppingOrder addLatestOrder(
039                    long userId, long groupId)
040                    throws com.liferay.portal.kernel.exception.PortalException {
041                    return _shoppingOrderLocalService.addLatestOrder(userId, groupId);
042            }
043    
044            /**
045            * Adds the shopping order to the database. Also notifies the appropriate model listeners.
046            *
047            * @param shoppingOrder the shopping order
048            * @return the shopping order that was added
049            */
050            @Override
051            public com.liferay.portlet.shopping.model.ShoppingOrder addShoppingOrder(
052                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) {
053                    return _shoppingOrderLocalService.addShoppingOrder(shoppingOrder);
054            }
055    
056            @Override
057            public void completeOrder(java.lang.String number,
058                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
059                    double ppPaymentGross, java.lang.String ppReceiverEmail,
060                    java.lang.String ppPayerEmail, boolean updateInventory,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    _shoppingOrderLocalService.completeOrder(number, ppTxnId,
064                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail,
065                            updateInventory, serviceContext);
066            }
067    
068            /**
069            * Creates a new shopping order with the primary key. Does not add the shopping order to the database.
070            *
071            * @param orderId the primary key for the new shopping order
072            * @return the new shopping order
073            */
074            @Override
075            public com.liferay.portlet.shopping.model.ShoppingOrder createShoppingOrder(
076                    long orderId) {
077                    return _shoppingOrderLocalService.createShoppingOrder(orderId);
078            }
079    
080            @Override
081            public void deleteOrder(
082                    com.liferay.portlet.shopping.model.ShoppingOrder order)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    _shoppingOrderLocalService.deleteOrder(order);
085            }
086    
087            @Override
088            public void deleteOrder(long orderId)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    _shoppingOrderLocalService.deleteOrder(orderId);
091            }
092    
093            @Override
094            public void deleteOrders(long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException {
096                    _shoppingOrderLocalService.deleteOrders(groupId);
097            }
098    
099            /**
100            * @throws PortalException
101            */
102            @Override
103            public com.liferay.portal.model.PersistedModel deletePersistedModel(
104                    com.liferay.portal.model.PersistedModel persistedModel)
105                    throws com.liferay.portal.kernel.exception.PortalException {
106                    return _shoppingOrderLocalService.deletePersistedModel(persistedModel);
107            }
108    
109            /**
110            * Deletes the shopping order with the primary key from the database. Also notifies the appropriate model listeners.
111            *
112            * @param orderId the primary key of the shopping order
113            * @return the shopping order that was removed
114            * @throws PortalException if a shopping order with the primary key could not be found
115            */
116            @Override
117            public com.liferay.portlet.shopping.model.ShoppingOrder deleteShoppingOrder(
118                    long orderId)
119                    throws com.liferay.portal.kernel.exception.PortalException {
120                    return _shoppingOrderLocalService.deleteShoppingOrder(orderId);
121            }
122    
123            /**
124            * Deletes the shopping order from the database. Also notifies the appropriate model listeners.
125            *
126            * @param shoppingOrder the shopping order
127            * @return the shopping order that was removed
128            */
129            @Override
130            public com.liferay.portlet.shopping.model.ShoppingOrder deleteShoppingOrder(
131                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) {
132                    return _shoppingOrderLocalService.deleteShoppingOrder(shoppingOrder);
133            }
134    
135            @Override
136            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
137                    return _shoppingOrderLocalService.dynamicQuery();
138            }
139    
140            /**
141            * Performs a dynamic query on the database and returns the matching rows.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the matching rows
145            */
146            @Override
147            public <T> java.util.List<T> dynamicQuery(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
149                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery);
150            }
151    
152            /**
153            * Performs a dynamic query on the database and returns a range of the matching rows.
154            *
155            * <p>
156            * 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.ShoppingOrderModelImpl}. 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.
157            * </p>
158            *
159            * @param dynamicQuery the dynamic query
160            * @param start the lower bound of the range of model instances
161            * @param end the upper bound of the range of model instances (not inclusive)
162            * @return the range of matching rows
163            */
164            @Override
165            public <T> java.util.List<T> dynamicQuery(
166                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
167                    int end) {
168                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery, start, end);
169            }
170    
171            /**
172            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
173            *
174            * <p>
175            * 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.ShoppingOrderModelImpl}. 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.
176            * </p>
177            *
178            * @param dynamicQuery the dynamic query
179            * @param start the lower bound of the range of model instances
180            * @param end the upper bound of the range of model instances (not inclusive)
181            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
182            * @return the ordered range of matching rows
183            */
184            @Override
185            public <T> java.util.List<T> dynamicQuery(
186                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
187                    int end,
188                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
189                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery, start,
190                            end, orderByComparator);
191            }
192    
193            /**
194            * Returns the number of rows matching the dynamic query.
195            *
196            * @param dynamicQuery the dynamic query
197            * @return the number of rows matching the dynamic query
198            */
199            @Override
200            public long dynamicQueryCount(
201                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
202                    return _shoppingOrderLocalService.dynamicQueryCount(dynamicQuery);
203            }
204    
205            /**
206            * Returns the number of rows matching the dynamic query.
207            *
208            * @param dynamicQuery the dynamic query
209            * @param projection the projection to apply to the query
210            * @return the number of rows matching the dynamic query
211            */
212            @Override
213            public long dynamicQueryCount(
214                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
215                    com.liferay.portal.kernel.dao.orm.Projection projection) {
216                    return _shoppingOrderLocalService.dynamicQueryCount(dynamicQuery,
217                            projection);
218            }
219    
220            @Override
221            public com.liferay.portlet.shopping.model.ShoppingOrder fetchShoppingOrder(
222                    long orderId) {
223                    return _shoppingOrderLocalService.fetchShoppingOrder(orderId);
224            }
225    
226            @Override
227            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
228                    return _shoppingOrderLocalService.getActionableDynamicQuery();
229            }
230    
231            /**
232            * Returns the Spring bean ID for this bean.
233            *
234            * @return the Spring bean ID for this bean
235            */
236            @Override
237            public java.lang.String getBeanIdentifier() {
238                    return _shoppingOrderLocalService.getBeanIdentifier();
239            }
240    
241            @Override
242            public com.liferay.portlet.shopping.model.ShoppingOrder getLatestOrder(
243                    long userId, long groupId)
244                    throws com.liferay.portal.kernel.exception.PortalException {
245                    return _shoppingOrderLocalService.getLatestOrder(userId, groupId);
246            }
247    
248            @Override
249            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
250                    java.lang.String number)
251                    throws com.liferay.portal.kernel.exception.PortalException {
252                    return _shoppingOrderLocalService.getOrder(number);
253            }
254    
255            @Override
256            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
257                    long orderId)
258                    throws com.liferay.portal.kernel.exception.PortalException {
259                    return _shoppingOrderLocalService.getOrder(orderId);
260            }
261    
262            @Override
263            public com.liferay.portlet.shopping.model.ShoppingOrder getPayPalTxnIdOrder(
264                    java.lang.String ppTxnId)
265                    throws com.liferay.portal.kernel.exception.PortalException {
266                    return _shoppingOrderLocalService.getPayPalTxnIdOrder(ppTxnId);
267            }
268    
269            @Override
270            public com.liferay.portal.model.PersistedModel getPersistedModel(
271                    java.io.Serializable primaryKeyObj)
272                    throws com.liferay.portal.kernel.exception.PortalException {
273                    return _shoppingOrderLocalService.getPersistedModel(primaryKeyObj);
274            }
275    
276            /**
277            * Returns the shopping order with the primary key.
278            *
279            * @param orderId the primary key of the shopping order
280            * @return the shopping order
281            * @throws PortalException if a shopping order with the primary key could not be found
282            */
283            @Override
284            public com.liferay.portlet.shopping.model.ShoppingOrder getShoppingOrder(
285                    long orderId)
286                    throws com.liferay.portal.kernel.exception.PortalException {
287                    return _shoppingOrderLocalService.getShoppingOrder(orderId);
288            }
289    
290            /**
291            * Returns a range of all the shopping orders.
292            *
293            * <p>
294            * 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.ShoppingOrderModelImpl}. 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.
295            * </p>
296            *
297            * @param start the lower bound of the range of shopping orders
298            * @param end the upper bound of the range of shopping orders (not inclusive)
299            * @return the range of shopping orders
300            */
301            @Override
302            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> getShoppingOrders(
303                    int start, int end) {
304                    return _shoppingOrderLocalService.getShoppingOrders(start, end);
305            }
306    
307            /**
308            * Returns the number of shopping orders.
309            *
310            * @return the number of shopping orders
311            */
312            @Override
313            public int getShoppingOrdersCount() {
314                    return _shoppingOrderLocalService.getShoppingOrdersCount();
315            }
316    
317            @Override
318            public com.liferay.portlet.shopping.model.ShoppingOrder saveLatestOrder(
319                    com.liferay.portlet.shopping.model.ShoppingCart cart)
320                    throws com.liferay.portal.kernel.exception.PortalException {
321                    return _shoppingOrderLocalService.saveLatestOrder(cart);
322            }
323    
324            @Override
325            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> search(
326                    long groupId, long companyId, long userId, java.lang.String number,
327                    java.lang.String billingFirstName, java.lang.String billingLastName,
328                    java.lang.String billingEmailAddress,
329                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
330                    java.lang.String shippingEmailAddress,
331                    java.lang.String ppPaymentStatus, boolean andOperator, int start,
332                    int end) {
333                    return _shoppingOrderLocalService.search(groupId, companyId, userId,
334                            number, billingFirstName, billingLastName, billingEmailAddress,
335                            shippingFirstName, shippingLastName, shippingEmailAddress,
336                            ppPaymentStatus, andOperator, start, end);
337            }
338    
339            @Override
340            public int searchCount(long groupId, long companyId, long userId,
341                    java.lang.String number, java.lang.String billingFirstName,
342                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
343                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
344                    java.lang.String shippingEmailAddress,
345                    java.lang.String ppPaymentStatus, boolean andOperator) {
346                    return _shoppingOrderLocalService.searchCount(groupId, companyId,
347                            userId, number, billingFirstName, billingLastName,
348                            billingEmailAddress, shippingFirstName, shippingLastName,
349                            shippingEmailAddress, ppPaymentStatus, andOperator);
350            }
351    
352            @Override
353            public void sendEmail(
354                    com.liferay.portlet.shopping.model.ShoppingOrder order,
355                    java.lang.String emailType,
356                    com.liferay.portal.service.ServiceContext serviceContext)
357                    throws com.liferay.portal.kernel.exception.PortalException {
358                    _shoppingOrderLocalService.sendEmail(order, emailType, serviceContext);
359            }
360    
361            @Override
362            public void sendEmail(long orderId, java.lang.String emailType,
363                    com.liferay.portal.service.ServiceContext serviceContext)
364                    throws com.liferay.portal.kernel.exception.PortalException {
365                    _shoppingOrderLocalService.sendEmail(orderId, emailType, serviceContext);
366            }
367    
368            /**
369            * Sets the Spring bean ID for this bean.
370            *
371            * @param beanIdentifier the Spring bean ID for this bean
372            */
373            @Override
374            public void setBeanIdentifier(java.lang.String beanIdentifier) {
375                    _shoppingOrderLocalService.setBeanIdentifier(beanIdentifier);
376            }
377    
378            @Override
379            public com.liferay.portlet.shopping.model.ShoppingOrder updateLatestOrder(
380                    long userId, long groupId, java.lang.String billingFirstName,
381                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
382                    java.lang.String billingCompany, java.lang.String billingStreet,
383                    java.lang.String billingCity, java.lang.String billingState,
384                    java.lang.String billingZip, java.lang.String billingCountry,
385                    java.lang.String billingPhone, boolean shipToBilling,
386                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
387                    java.lang.String shippingEmailAddress,
388                    java.lang.String shippingCompany, java.lang.String shippingStreet,
389                    java.lang.String shippingCity, java.lang.String shippingState,
390                    java.lang.String shippingZip, java.lang.String shippingCountry,
391                    java.lang.String shippingPhone, java.lang.String ccName,
392                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
393                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
394                    throws com.liferay.portal.kernel.exception.PortalException {
395                    return _shoppingOrderLocalService.updateLatestOrder(userId, groupId,
396                            billingFirstName, billingLastName, billingEmailAddress,
397                            billingCompany, billingStreet, billingCity, billingState,
398                            billingZip, billingCountry, billingPhone, shipToBilling,
399                            shippingFirstName, shippingLastName, shippingEmailAddress,
400                            shippingCompany, shippingStreet, shippingCity, shippingState,
401                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
402                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
403            }
404    
405            @Override
406            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
407                    long orderId, java.lang.String billingFirstName,
408                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
409                    java.lang.String billingCompany, java.lang.String billingStreet,
410                    java.lang.String billingCity, java.lang.String billingState,
411                    java.lang.String billingZip, java.lang.String billingCountry,
412                    java.lang.String billingPhone, boolean shipToBilling,
413                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
414                    java.lang.String shippingEmailAddress,
415                    java.lang.String shippingCompany, java.lang.String shippingStreet,
416                    java.lang.String shippingCity, java.lang.String shippingState,
417                    java.lang.String shippingZip, java.lang.String shippingCountry,
418                    java.lang.String shippingPhone, java.lang.String ccName,
419                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
420                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
421                    throws com.liferay.portal.kernel.exception.PortalException {
422                    return _shoppingOrderLocalService.updateOrder(orderId,
423                            billingFirstName, billingLastName, billingEmailAddress,
424                            billingCompany, billingStreet, billingCity, billingState,
425                            billingZip, billingCountry, billingPhone, shipToBilling,
426                            shippingFirstName, shippingLastName, shippingEmailAddress,
427                            shippingCompany, shippingStreet, shippingCity, shippingState,
428                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
429                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
430            }
431    
432            @Override
433            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
434                    long orderId, java.lang.String ppTxnId,
435                    java.lang.String ppPaymentStatus, double ppPaymentGross,
436                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
437                    throws com.liferay.portal.kernel.exception.PortalException {
438                    return _shoppingOrderLocalService.updateOrder(orderId, ppTxnId,
439                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
440            }
441    
442            /**
443            * Updates the shopping order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
444            *
445            * @param shoppingOrder the shopping order
446            * @return the shopping order that was updated
447            */
448            @Override
449            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
450                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) {
451                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder);
452            }
453    
454            /**
455             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
456             */
457            @Deprecated
458            public ShoppingOrderLocalService getWrappedShoppingOrderLocalService() {
459                    return _shoppingOrderLocalService;
460            }
461    
462            /**
463             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
464             */
465            @Deprecated
466            public void setWrappedShoppingOrderLocalService(
467                    ShoppingOrderLocalService shoppingOrderLocalService) {
468                    _shoppingOrderLocalService = shoppingOrderLocalService;
469            }
470    
471            @Override
472            public ShoppingOrderLocalService getWrappedService() {
473                    return _shoppingOrderLocalService;
474            }
475    
476            @Override
477            public void setWrappedService(
478                    ShoppingOrderLocalService shoppingOrderLocalService) {
479                    _shoppingOrderLocalService = shoppingOrderLocalService;
480            }
481    
482            private ShoppingOrderLocalService _shoppingOrderLocalService;
483    }