Liferay 6.1.2-ce-ga3

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 it 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 int getCategoriesItemsCount(HttpPrincipal httpPrincipal, long groupId, List<Long> categoryIds)
           
static ShoppingItem getItem(HttpPrincipal httpPrincipal, long itemId)
           
static List<ShoppingItem> getItems(HttpPrincipal httpPrincipal, long groupId, long categoryId)
           
static List<ShoppingItem> getItems(HttpPrincipal httpPrincipal, long groupId, long categoryId, int start, int end, OrderByComparator obc)
           
static int getItemsCount(HttpPrincipal httpPrincipal, long groupId, long categoryId)
           
static ShoppingItem[] getItemsPrevAndNext(HttpPrincipal httpPrincipal, long itemId, OrderByComparator obc)
           
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

getCategoriesItemsCount

public static int getCategoriesItemsCount(HttpPrincipal httpPrincipal,
                                          long groupId,
                                          List<Long> categoryIds)
                                   throws SystemException
Throws:
SystemException

getItem

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

getItems

public static List<ShoppingItem> getItems(HttpPrincipal httpPrincipal,
                                          long groupId,
                                          long categoryId)
                                   throws SystemException
Throws:
SystemException

getItems

public static List<ShoppingItem> getItems(HttpPrincipal httpPrincipal,
                                          long groupId,
                                          long categoryId,
                                          int start,
                                          int end,
                                          OrderByComparator obc)
                                   throws SystemException
Throws:
SystemException

getItemsCount

public static int getItemsCount(HttpPrincipal httpPrincipal,
                                long groupId,
                                long categoryId)
                         throws SystemException
Throws:
SystemException

getItemsPrevAndNext

public static ShoppingItem[] getItemsPrevAndNext(HttpPrincipal httpPrincipal,
                                                 long itemId,
                                                 OrderByComparator obc)
                                          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.1.2-ce-ga3