Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.service.http
Class ShoppingOrderServiceHttp

java.lang.Object
  extended by com.liferay.portlet.shopping.service.http.ShoppingOrderServiceHttp

public class ShoppingOrderServiceHttp
extends Object

This class provides a HTTP utility for the ShoppingOrderServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it requires an additional HttpPrincipal parameter.

The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.

Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.

The HTTP utility is only generated for remote services.

See Also:
ShoppingOrderServiceSoap, HttpPrincipal, ShoppingOrderServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
ShoppingOrderServiceHttp()
           
 
Method Summary
static void completeOrder(HttpPrincipal httpPrincipal, long groupId, String number, String ppTxnId, String ppPaymentStatus, double ppPaymentGross, String ppReceiverEmail, String ppPayerEmail, ServiceContext serviceContext)
           
static void deleteOrder(HttpPrincipal httpPrincipal, long groupId, long orderId)
           
static ShoppingOrder getOrder(HttpPrincipal httpPrincipal, long groupId, long orderId)
           
static void sendEmail(HttpPrincipal httpPrincipal, long groupId, long orderId, String emailType, ServiceContext serviceContext)
           
static ShoppingOrder updateOrder(HttpPrincipal httpPrincipal, long groupId, long orderId, String ppTxnId, String ppPaymentStatus, double ppPaymentGross, String ppReceiverEmail, String ppPayerEmail)
           
static ShoppingOrder updateOrder(HttpPrincipal httpPrincipal, long groupId, long orderId, String billingFirstName, String billingLastName, String billingEmailAddress, String billingCompany, String billingStreet, String billingCity, String billingState, String billingZip, String billingCountry, String billingPhone, boolean shipToBilling, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String shippingCompany, String shippingStreet, String shippingCity, String shippingState, String shippingZip, String shippingCountry, String shippingPhone, String ccName, String ccType, String ccNumber, int ccExpMonth, int ccExpYear, String ccVerNumber, String comments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingOrderServiceHttp

public ShoppingOrderServiceHttp()
Method Detail

completeOrder

public static void completeOrder(HttpPrincipal httpPrincipal,
                                 long groupId,
                                 String number,
                                 String ppTxnId,
                                 String ppPaymentStatus,
                                 double ppPaymentGross,
                                 String ppReceiverEmail,
                                 String ppPayerEmail,
                                 ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteOrder

public static void deleteOrder(HttpPrincipal httpPrincipal,
                               long groupId,
                               long orderId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getOrder

public static ShoppingOrder getOrder(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     long orderId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

sendEmail

public static void sendEmail(HttpPrincipal httpPrincipal,
                             long groupId,
                             long orderId,
                             String emailType,
                             ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateOrder

public static ShoppingOrder updateOrder(HttpPrincipal httpPrincipal,
                                        long groupId,
                                        long orderId,
                                        String ppTxnId,
                                        String ppPaymentStatus,
                                        double ppPaymentGross,
                                        String ppReceiverEmail,
                                        String ppPayerEmail)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

updateOrder

public static ShoppingOrder updateOrder(HttpPrincipal httpPrincipal,
                                        long groupId,
                                        long orderId,
                                        String billingFirstName,
                                        String billingLastName,
                                        String billingEmailAddress,
                                        String billingCompany,
                                        String billingStreet,
                                        String billingCity,
                                        String billingState,
                                        String billingZip,
                                        String billingCountry,
                                        String billingPhone,
                                        boolean shipToBilling,
                                        String shippingFirstName,
                                        String shippingLastName,
                                        String shippingEmailAddress,
                                        String shippingCompany,
                                        String shippingStreet,
                                        String shippingCity,
                                        String shippingState,
                                        String shippingZip,
                                        String shippingCountry,
                                        String shippingPhone,
                                        String ccName,
                                        String ccType,
                                        String ccNumber,
                                        int ccExpMonth,
                                        int ccExpYear,
                                        String ccVerNumber,
                                        String comments)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

Liferay 6.1.2-ce-ga3