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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the shopping order remote service. This utility wraps {@link com.liferay.portlet.shopping.service.impl.ShoppingOrderServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * 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.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see ShoppingOrderService
032     * @see com.liferay.portlet.shopping.service.base.ShoppingOrderServiceBaseImpl
033     * @see com.liferay.portlet.shopping.service.impl.ShoppingOrderServiceImpl
034     * @generated
035     */
036    public class ShoppingOrderServiceUtil {
037            public static void completeOrder(long groupId, java.lang.String number,
038                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
039                    double ppPaymentGross, java.lang.String ppReceiverEmail,
040                    java.lang.String ppPayerEmail)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    getService()
044                            .completeOrder(groupId, number, ppTxnId, ppPaymentStatus,
045                            ppPaymentGross, ppReceiverEmail, ppPayerEmail);
046            }
047    
048            public static void deleteOrder(long groupId, long orderId)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException {
051                    getService().deleteOrder(groupId, orderId);
052            }
053    
054            public static com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
055                    long groupId, long orderId)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    return getService().getOrder(groupId, orderId);
059            }
060    
061            public static void sendEmail(long groupId, long orderId,
062                    java.lang.String emailType)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    getService().sendEmail(groupId, orderId, emailType);
066            }
067    
068            public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
069                    long groupId, long orderId, java.lang.String ppTxnId,
070                    java.lang.String ppPaymentStatus, double ppPaymentGross,
071                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return getService()
075                                       .updateOrder(groupId, orderId, ppTxnId, ppPaymentStatus,
076                            ppPaymentGross, ppReceiverEmail, ppPayerEmail);
077            }
078    
079            public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
080                    long groupId, long orderId, java.lang.String billingFirstName,
081                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
082                    java.lang.String billingCompany, java.lang.String billingStreet,
083                    java.lang.String billingCity, java.lang.String billingState,
084                    java.lang.String billingZip, java.lang.String billingCountry,
085                    java.lang.String billingPhone, boolean shipToBilling,
086                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
087                    java.lang.String shippingEmailAddress,
088                    java.lang.String shippingCompany, java.lang.String shippingStreet,
089                    java.lang.String shippingCity, java.lang.String shippingState,
090                    java.lang.String shippingZip, java.lang.String shippingCountry,
091                    java.lang.String shippingPhone, java.lang.String ccName,
092                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
093                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService()
097                                       .updateOrder(groupId, orderId, billingFirstName,
098                            billingLastName, billingEmailAddress, billingCompany,
099                            billingStreet, billingCity, billingState, billingZip,
100                            billingCountry, billingPhone, shipToBilling, shippingFirstName,
101                            shippingLastName, shippingEmailAddress, shippingCompany,
102                            shippingStreet, shippingCity, shippingState, shippingZip,
103                            shippingCountry, shippingPhone, ccName, ccType, ccNumber,
104                            ccExpMonth, ccExpYear, ccVerNumber, comments);
105            }
106    
107            public static ShoppingOrderService getService() {
108                    if (_service == null) {
109                            _service = (ShoppingOrderService)PortalBeanLocatorUtil.locate(ShoppingOrderService.class.getName());
110                    }
111    
112                    return _service;
113            }
114    
115            public void setService(ShoppingOrderService service) {
116                    _service = service;
117            }
118    
119            private static ShoppingOrderService _service;
120    }