com.liferay.portlet.shopping.service
Class ShoppingItemLocalServiceUtil

java.lang.Object
  extended bycom.liferay.portlet.shopping.service.ShoppingItemLocalServiceUtil

public class ShoppingItemLocalServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portlet.shopping.service.ShoppingItemLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

com.liferay.portlet.shopping.service.ShoppingItemLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
ShoppingItemLocalService, ShoppingItemLocalServiceFactory

Constructor Summary
ShoppingItemLocalServiceUtil()
           
 
Method Summary
static void addBookItems(long userId, long categoryId, java.lang.String[] isbns)
           
static ShoppingItem addItem(long userId, long categoryId, java.lang.String sku, java.lang.String name, java.lang.String description, java.lang.String properties, java.lang.String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, java.lang.Boolean sale, boolean smallImage, java.lang.String smallImageURL, java.io.File smallFile, boolean mediumImage, java.lang.String mediumImageURL, java.io.File mediumFile, boolean largeImage, java.lang.String largeImageURL, java.io.File largeFile, java.util.List itemFields, java.util.List itemPrices, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static ShoppingItem addItem(long userId, long categoryId, java.lang.String sku, java.lang.String name, java.lang.String description, java.lang.String properties, java.lang.String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, java.lang.Boolean sale, boolean smallImage, java.lang.String smallImageURL, java.io.File smallFile, boolean mediumImage, java.lang.String mediumImageURL, java.io.File mediumFile, boolean largeImage, java.lang.String largeImageURL, java.io.File largeFile, java.util.List itemFields, java.util.List itemPrices, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static ShoppingItem addItem(long userId, long categoryId, java.lang.String sku, java.lang.String name, java.lang.String description, java.lang.String properties, java.lang.String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, java.lang.Boolean sale, boolean smallImage, java.lang.String smallImageURL, java.io.File smallFile, boolean mediumImage, java.lang.String mediumImageURL, java.io.File mediumFile, boolean largeImage, java.lang.String largeImageURL, java.io.File largeFile, java.util.List itemFields, java.util.List itemPrices, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addItemResources(long itemId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addItemResources(long itemId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addItemResources(ShoppingCategory category, ShoppingItem item, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addItemResources(ShoppingCategory category, ShoppingItem item, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static ShoppingItem addShoppingItem(ShoppingItem model)
           
static void deleteItem(long itemId)
           
static void deleteItem(ShoppingItem item)
           
static void deleteItems(long categoryId)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static int getCategoriesItemsCount(java.util.List categoryIds)
           
static java.util.List getFeaturedItems(long groupId, long categoryId, int numOfItems)
           
static ShoppingItem getItem(long itemId)
           
static ShoppingItem getItem(long companyId, java.lang.String sku)
           
static java.util.List getItems(long categoryId)
           
static java.util.List getItems(long categoryId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getItemsCount(long categoryId)
           
static ShoppingItem[] getItemsPrevAndNext(long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List getSaleItems(long groupId, long categoryId, int numOfItems)
           
static java.util.List search(long groupId, long[] categoryIds, java.lang.String keywords, int begin, int end)
           
static int searchCount(long groupId, long[] categoryIds, java.lang.String keywords)
           
static ShoppingItem updateItem(long userId, long itemId, long categoryId, java.lang.String sku, java.lang.String name, java.lang.String description, java.lang.String properties, java.lang.String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, java.lang.Boolean sale, boolean smallImage, java.lang.String smallImageURL, java.io.File smallFile, boolean mediumImage, java.lang.String mediumImageURL, java.io.File mediumFile, boolean largeImage, java.lang.String largeImageURL, java.io.File largeFile, java.util.List itemFields, java.util.List itemPrices)
           
static ShoppingItem updateShoppingItem(ShoppingItem model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingItemLocalServiceUtil

public ShoppingItemLocalServiceUtil()
Method Detail

addShoppingItem

public static ShoppingItem addShoppingItem(ShoppingItem model)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateShoppingItem

public static ShoppingItem updateShoppingItem(ShoppingItem model)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addBookItems

public static void addBookItems(long userId,
                                long categoryId,
                                java.lang.String[] isbns)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addItem

public static ShoppingItem addItem(long userId,
                                   long categoryId,
                                   java.lang.String sku,
                                   java.lang.String name,
                                   java.lang.String description,
                                   java.lang.String properties,
                                   java.lang.String fieldsQuantities,
                                   boolean requiresShipping,
                                   int stockQuantity,
                                   boolean featured,
                                   java.lang.Boolean sale,
                                   boolean smallImage,
                                   java.lang.String smallImageURL,
                                   java.io.File smallFile,
                                   boolean mediumImage,
                                   java.lang.String mediumImageURL,
                                   java.io.File mediumFile,
                                   boolean largeImage,
                                   java.lang.String largeImageURL,
                                   java.io.File largeFile,
                                   java.util.List itemFields,
                                   java.util.List itemPrices,
                                   boolean addCommunityPermissions,
                                   boolean addGuestPermissions)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addItem

public static ShoppingItem addItem(long userId,
                                   long categoryId,
                                   java.lang.String sku,
                                   java.lang.String name,
                                   java.lang.String description,
                                   java.lang.String properties,
                                   java.lang.String fieldsQuantities,
                                   boolean requiresShipping,
                                   int stockQuantity,
                                   boolean featured,
                                   java.lang.Boolean sale,
                                   boolean smallImage,
                                   java.lang.String smallImageURL,
                                   java.io.File smallFile,
                                   boolean mediumImage,
                                   java.lang.String mediumImageURL,
                                   java.io.File mediumFile,
                                   boolean largeImage,
                                   java.lang.String largeImageURL,
                                   java.io.File largeFile,
                                   java.util.List itemFields,
                                   java.util.List itemPrices,
                                   java.lang.String[] communityPermissions,
                                   java.lang.String[] guestPermissions)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addItem

public static ShoppingItem addItem(long userId,
                                   long categoryId,
                                   java.lang.String sku,
                                   java.lang.String name,
                                   java.lang.String description,
                                   java.lang.String properties,
                                   java.lang.String fieldsQuantities,
                                   boolean requiresShipping,
                                   int stockQuantity,
                                   boolean featured,
                                   java.lang.Boolean sale,
                                   boolean smallImage,
                                   java.lang.String smallImageURL,
                                   java.io.File smallFile,
                                   boolean mediumImage,
                                   java.lang.String mediumImageURL,
                                   java.io.File mediumFile,
                                   boolean largeImage,
                                   java.lang.String largeImageURL,
                                   java.io.File largeFile,
                                   java.util.List itemFields,
                                   java.util.List itemPrices,
                                   java.lang.Boolean addCommunityPermissions,
                                   java.lang.Boolean addGuestPermissions,
                                   java.lang.String[] communityPermissions,
                                   java.lang.String[] guestPermissions)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addItemResources

public static void addItemResources(long itemId,
                                    boolean addCommunityPermissions,
                                    boolean addGuestPermissions)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addItemResources

public static void addItemResources(ShoppingCategory category,
                                    ShoppingItem item,
                                    boolean addCommunityPermissions,
                                    boolean addGuestPermissions)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addItemResources

public static void addItemResources(long itemId,
                                    java.lang.String[] communityPermissions,
                                    java.lang.String[] guestPermissions)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addItemResources

public static void addItemResources(ShoppingCategory category,
                                    ShoppingItem item,
                                    java.lang.String[] communityPermissions,
                                    java.lang.String[] guestPermissions)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteItem

public static void deleteItem(long itemId)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteItem

public static void deleteItem(ShoppingItem item)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteItems

public static void deleteItems(long categoryId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCategoriesItemsCount

public static int getCategoriesItemsCount(java.util.List categoryIds)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFeaturedItems

public static java.util.List getFeaturedItems(long groupId,
                                              long categoryId,
                                              int numOfItems)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getItem

public static ShoppingItem getItem(long itemId)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getItem

public static ShoppingItem getItem(long companyId,
                                   java.lang.String sku)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getItems

public static java.util.List getItems(long categoryId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getItems

public static java.util.List getItems(long categoryId,
                                      int begin,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getItemsPrevAndNext

public static ShoppingItem[] getItemsPrevAndNext(long itemId,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getItemsCount

public static int getItemsCount(long categoryId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSaleItems

public static java.util.List getSaleItems(long groupId,
                                          long categoryId,
                                          int numOfItems)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static java.util.List search(long groupId,
                                    long[] categoryIds,
                                    java.lang.String keywords,
                                    int begin,
                                    int end)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

public static int searchCount(long groupId,
                              long[] categoryIds,
                              java.lang.String keywords)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateItem

public static ShoppingItem updateItem(long userId,
                                      long itemId,
                                      long categoryId,
                                      java.lang.String sku,
                                      java.lang.String name,
                                      java.lang.String description,
                                      java.lang.String properties,
                                      java.lang.String fieldsQuantities,
                                      boolean requiresShipping,
                                      int stockQuantity,
                                      boolean featured,
                                      java.lang.Boolean sale,
                                      boolean smallImage,
                                      java.lang.String smallImageURL,
                                      java.io.File smallFile,
                                      boolean mediumImage,
                                      java.lang.String mediumImageURL,
                                      java.io.File mediumFile,
                                      boolean largeImage,
                                      java.lang.String largeImageURL,
                                      java.io.File largeFile,
                                      java.util.List itemFields,
                                      java.util.List itemPrices)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException