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 ShoppingOrderService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ShoppingOrderService
026     * @generated
027     */
028    @ProviderType
029    public class ShoppingOrderServiceWrapper implements ShoppingOrderService,
030            ServiceWrapper<ShoppingOrderService> {
031            public ShoppingOrderServiceWrapper(
032                    ShoppingOrderService shoppingOrderService) {
033                    _shoppingOrderService = shoppingOrderService;
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 _shoppingOrderService.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                    _shoppingOrderService.setBeanIdentifier(beanIdentifier);
054            }
055    
056            @Override
057            public void completeOrder(long groupId, 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,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _shoppingOrderService.completeOrder(groupId, number, ppTxnId,
065                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail,
066                            serviceContext);
067            }
068    
069            @Override
070            public void deleteOrder(long groupId, long orderId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    _shoppingOrderService.deleteOrder(groupId, orderId);
074            }
075    
076            @Override
077            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
078                    long groupId, long orderId)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return _shoppingOrderService.getOrder(groupId, orderId);
082            }
083    
084            @Override
085            public void sendEmail(long groupId, long orderId,
086                    java.lang.String emailType,
087                    com.liferay.portal.service.ServiceContext serviceContext)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    _shoppingOrderService.sendEmail(groupId, orderId, emailType,
091                            serviceContext);
092            }
093    
094            @Override
095            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
096                    long groupId, long orderId, java.lang.String ppTxnId,
097                    java.lang.String ppPaymentStatus, double ppPaymentGross,
098                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException {
101                    return _shoppingOrderService.updateOrder(groupId, orderId, ppTxnId,
102                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
103            }
104    
105            @Override
106            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
107                    long groupId, long orderId, java.lang.String billingFirstName,
108                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
109                    java.lang.String billingCompany, java.lang.String billingStreet,
110                    java.lang.String billingCity, java.lang.String billingState,
111                    java.lang.String billingZip, java.lang.String billingCountry,
112                    java.lang.String billingPhone, boolean shipToBilling,
113                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
114                    java.lang.String shippingEmailAddress,
115                    java.lang.String shippingCompany, java.lang.String shippingStreet,
116                    java.lang.String shippingCity, java.lang.String shippingState,
117                    java.lang.String shippingZip, java.lang.String shippingCountry,
118                    java.lang.String shippingPhone, java.lang.String ccName,
119                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
120                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException {
123                    return _shoppingOrderService.updateOrder(groupId, orderId,
124                            billingFirstName, billingLastName, billingEmailAddress,
125                            billingCompany, billingStreet, billingCity, billingState,
126                            billingZip, billingCountry, billingPhone, shipToBilling,
127                            shippingFirstName, shippingLastName, shippingEmailAddress,
128                            shippingCompany, shippingStreet, shippingCity, shippingState,
129                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
130                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
131            }
132    
133            /**
134             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
135             */
136            public ShoppingOrderService getWrappedShoppingOrderService() {
137                    return _shoppingOrderService;
138            }
139    
140            /**
141             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
142             */
143            public void setWrappedShoppingOrderService(
144                    ShoppingOrderService shoppingOrderService) {
145                    _shoppingOrderService = shoppingOrderService;
146            }
147    
148            @Override
149            public ShoppingOrderService getWrappedService() {
150                    return _shoppingOrderService;
151            }
152    
153            @Override
154            public void setWrappedService(ShoppingOrderService shoppingOrderService) {
155                    _shoppingOrderService = shoppingOrderService;
156            }
157    
158            private ShoppingOrderService _shoppingOrderService;
159    }