Liferay 7.0-ce-m3

com.liferay.portlet.shopping.service
Class ShoppingItemServiceUtil

java.lang.Object
  extended by com.liferay.portlet.shopping.service.ShoppingItemServiceUtil

@ProviderType
public class ShoppingItemServiceUtil
extends Object

Provides the remote service utility for ShoppingItem. This utility wraps com.liferay.portlet.shopping.service.impl.ShoppingItemServiceImpl and is the primary access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
ShoppingItemService, com.liferay.portlet.shopping.service.base.ShoppingItemServiceBaseImpl, com.liferay.portlet.shopping.service.impl.ShoppingItemServiceImpl

Constructor Summary
ShoppingItemServiceUtil()
           
 
Method Summary
static ShoppingItem addItem(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(long itemId)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static int getCategoriesItemsCount(long groupId, List<Long> categoryIds)
           
static ShoppingItem getItem(long itemId)
           
static List<ShoppingItem> getItems(long groupId, long categoryId)
           
static List<ShoppingItem> getItems(long groupId, long categoryId, int start, int end, OrderByComparator<ShoppingItem> obc)
           
static int getItemsCount(long groupId, long categoryId)
           
static ShoppingItem[] getItemsPrevAndNext(long itemId, OrderByComparator<ShoppingItem> obc)
           
static ShoppingItemService getService()
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(ShoppingItemService service)
          Deprecated. As of 6.2.0
static ShoppingItem updateItem(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

ShoppingItemServiceUtil

public ShoppingItemServiceUtil()
Method Detail

addItem

public static ShoppingItem addItem(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(long itemId)
                       throws PortalException
Throws:
PortalException

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

getCategoriesItemsCount

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

getItem

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

getItems

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

getItems

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

getItemsCount

public static int getItemsCount(long groupId,
                                long categoryId)

getItemsPrevAndNext

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

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

updateItem

public static ShoppingItem updateItem(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

getService

public static ShoppingItemService getService()

setService

@Deprecated
public void setService(ShoppingItemService service)
Deprecated. As of 6.2.0


Liferay 7.0-ce-m3