Liferay 7.0-ce-m6

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

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

@ProviderType
public class ShoppingItemServiceHttp
extends Object

Provides the 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 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<ShoppingItem> obc)
           
static int getItemsCount(HttpPrincipal httpPrincipal, long groupId, long categoryId)
           
static ShoppingItem[] getItemsPrevAndNext(HttpPrincipal httpPrincipal, long itemId, OrderByComparator<ShoppingItem> 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

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
Throws:
PortalException

deleteItem

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

getCategoriesItemsCount

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

getItem

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

getItems

public static List<ShoppingItem> getItems(HttpPrincipal httpPrincipal,
                                          long groupId,
                                          long categoryId)

getItems

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

getItemsCount

public static int getItemsCount(HttpPrincipal httpPrincipal,
                                long groupId,
                                long categoryId)

getItemsPrevAndNext

public static ShoppingItem[] getItemsPrevAndNext(HttpPrincipal httpPrincipal,
                                                 long itemId,
                                                 OrderByComparator<ShoppingItem> obc)
                                          throws PortalException
Throws:
PortalException

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
Throws:
PortalException

Liferay 7.0-ce-m6