Liferay 6.0.5

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

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

public class ShoppingItemServiceHttp
extends Object

This class provides a HTTP utility for the ShoppingItemServiceUtil 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:
ShoppingItemServiceSoap, HttpPrincipal, ShoppingItemServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
ShoppingItemServiceHttp()
           
 
Method Summary
static void addBookItems(HttpPrincipal httpPrincipal, long groupId, long categoryId, String[] isbns)
           
static ShoppingItem addItem(HttpPrincipal httpPrincipal, long groupId, long categoryId, String sku, String name, String description, String properties, String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, Boolean sale, boolean smallImage, String smallImageURL, File smallFile, boolean mediumImage, String mediumImageURL, File mediumFile, boolean largeImage, String largeImageURL, File largeFile, List<ShoppingItemField> itemFields, List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext)
           
static void deleteItem(HttpPrincipal httpPrincipal, long itemId)
           
static ShoppingItem getItem(HttpPrincipal httpPrincipal, long itemId)
           
static ShoppingItem updateItem(HttpPrincipal httpPrincipal, long itemId, long groupId, long categoryId, String sku, String name, String description, String properties, String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, Boolean sale, boolean smallImage, String smallImageURL, File smallFile, boolean mediumImage, String mediumImageURL, File mediumFile, boolean largeImage, String largeImageURL, File largeFile, List<ShoppingItemField> itemFields, List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingItemServiceHttp

public ShoppingItemServiceHttp()
Method Detail

addBookItems

public static void addBookItems(HttpPrincipal httpPrincipal,
                                long groupId,
                                long categoryId,
                                String[] isbns)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

addItem

public static ShoppingItem addItem(HttpPrincipal httpPrincipal,
                                   long groupId,
                                   long categoryId,
                                   String sku,
                                   String name,
                                   String description,
                                   String properties,
                                   String fieldsQuantities,
                                   boolean requiresShipping,
                                   int stockQuantity,
                                   boolean featured,
                                   Boolean sale,
                                   boolean smallImage,
                                   String smallImageURL,
                                   File smallFile,
                                   boolean mediumImage,
                                   String mediumImageURL,
                                   File mediumFile,
                                   boolean largeImage,
                                   String largeImageURL,
                                   File largeFile,
                                   List<ShoppingItemField> itemFields,
                                   List<ShoppingItemPrice> itemPrices,
                                   ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

deleteItem

public static void deleteItem(HttpPrincipal httpPrincipal,
                              long itemId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getItem

public static ShoppingItem getItem(HttpPrincipal httpPrincipal,
                                   long itemId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

updateItem

public static ShoppingItem updateItem(HttpPrincipal httpPrincipal,
                                      long itemId,
                                      long groupId,
                                      long categoryId,
                                      String sku,
                                      String name,
                                      String description,
                                      String properties,
                                      String fieldsQuantities,
                                      boolean requiresShipping,
                                      int stockQuantity,
                                      boolean featured,
                                      Boolean sale,
                                      boolean smallImage,
                                      String smallImageURL,
                                      File smallFile,
                                      boolean mediumImage,
                                      String mediumImageURL,
                                      File mediumFile,
                                      boolean largeImage,
                                      String largeImageURL,
                                      File largeFile,
                                      List<ShoppingItemField> itemFields,
                                      List<ShoppingItemPrice> itemPrices,
                                      ServiceContext serviceContext)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

Liferay 6.0.5