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