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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for ShoppingOrder. This utility wraps
022     * {@link com.liferay.portlet.shopping.service.impl.ShoppingOrderServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see ShoppingOrderService
030     * @see com.liferay.portlet.shopping.service.base.ShoppingOrderServiceBaseImpl
031     * @see com.liferay.portlet.shopping.service.impl.ShoppingOrderServiceImpl
032     * @generated
033     */
034    public class ShoppingOrderServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.shopping.service.impl.ShoppingOrderServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static void completeOrder(long groupId, java.lang.String number,
060                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
061                    double ppPaymentGross, java.lang.String ppReceiverEmail,
062                    java.lang.String ppPayerEmail,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    getService()
067                            .completeOrder(groupId, number, ppTxnId, ppPaymentStatus,
068                            ppPaymentGross, ppReceiverEmail, ppPayerEmail, serviceContext);
069            }
070    
071            public static void deleteOrder(long groupId, long orderId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    getService().deleteOrder(groupId, orderId);
075            }
076    
077            public static 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 getService().getOrder(groupId, orderId);
082            }
083    
084            public static void sendEmail(long groupId, long orderId,
085                    java.lang.String emailType,
086                    com.liferay.portal.service.ServiceContext serviceContext)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    getService().sendEmail(groupId, orderId, emailType, serviceContext);
090            }
091    
092            public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
093                    long groupId, long orderId, java.lang.String ppTxnId,
094                    java.lang.String ppPaymentStatus, double ppPaymentGross,
095                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    return getService()
099                                       .updateOrder(groupId, orderId, ppTxnId, ppPaymentStatus,
100                            ppPaymentGross, ppReceiverEmail, ppPayerEmail);
101            }
102    
103            public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
104                    long groupId, long orderId, java.lang.String billingFirstName,
105                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
106                    java.lang.String billingCompany, java.lang.String billingStreet,
107                    java.lang.String billingCity, java.lang.String billingState,
108                    java.lang.String billingZip, java.lang.String billingCountry,
109                    java.lang.String billingPhone, boolean shipToBilling,
110                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
111                    java.lang.String shippingEmailAddress,
112                    java.lang.String shippingCompany, java.lang.String shippingStreet,
113                    java.lang.String shippingCity, java.lang.String shippingState,
114                    java.lang.String shippingZip, java.lang.String shippingCountry,
115                    java.lang.String shippingPhone, java.lang.String ccName,
116                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
117                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException {
120                    return getService()
121                                       .updateOrder(groupId, orderId, billingFirstName,
122                            billingLastName, billingEmailAddress, billingCompany,
123                            billingStreet, billingCity, billingState, billingZip,
124                            billingCountry, billingPhone, shipToBilling, shippingFirstName,
125                            shippingLastName, shippingEmailAddress, shippingCompany,
126                            shippingStreet, shippingCity, shippingState, shippingZip,
127                            shippingCountry, shippingPhone, ccName, ccType, ccNumber,
128                            ccExpMonth, ccExpYear, ccVerNumber, comments);
129            }
130    
131            public static ShoppingOrderService getService() {
132                    if (_service == null) {
133                            _service = (ShoppingOrderService)PortalBeanLocatorUtil.locate(ShoppingOrderService.class.getName());
134    
135                            ReferenceRegistry.registerReference(ShoppingOrderServiceUtil.class,
136                                    "_service");
137                    }
138    
139                    return _service;
140            }
141    
142            /**
143             * @deprecated As of 6.2.0
144             */
145            public void setService(ShoppingOrderService service) {
146            }
147    
148            private static ShoppingOrderService _service;
149    }