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 afterPropertiesSet()
           
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 ShoppingItem getItemByLargeImageId(long largeImageId)
           
static ShoppingItem getItemByMediumImageId(long mediumImageId)
           
static ShoppingItem getItemBySmallImageId(long smallImageId)
           
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 ResourceFinder getResourceFinder()
           
static ResourcePersistence getResourcePersistence()
           
static java.util.List getSaleItems(long groupId, long categoryId, int numOfItems)
           
static ShoppingCartPersistence getShoppingCartPersistence()
           
static ShoppingCategoryPersistence getShoppingCategoryPersistence()
           
static ShoppingCouponFinder getShoppingCouponFinder()
           
static ShoppingCouponPersistence getShoppingCouponPersistence()
           
static ShoppingItemFieldPersistence getShoppingItemFieldPersistence()
           
static ShoppingItemFinder getShoppingItemFinder()
           
static ShoppingItemPersistence getShoppingItemPersistence()
           
static ShoppingItemPricePersistence getShoppingItemPricePersistence()
           
static ShoppingOrderFinder getShoppingOrderFinder()
           
static ShoppingOrderItemPersistence getShoppingOrderItemPersistence()
           
static ShoppingOrderPersistence getShoppingOrderPersistence()
           
static UserFinder getUserFinder()
           
static UserPersistence getUserPersistence()
           
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 void setResourceFinder(ResourceFinder resourceFinder)
           
static void setResourcePersistence(ResourcePersistence resourcePersistence)
           
static void setShoppingCartPersistence(ShoppingCartPersistence shoppingCartPersistence)
           
static void setShoppingCategoryPersistence(ShoppingCategoryPersistence shoppingCategoryPersistence)
           
static void setShoppingCouponFinder(ShoppingCouponFinder shoppingCouponFinder)
           
static void setShoppingCouponPersistence(ShoppingCouponPersistence shoppingCouponPersistence)
           
static void setShoppingItemFieldPersistence(ShoppingItemFieldPersistence shoppingItemFieldPersistence)
           
static void setShoppingItemFinder(ShoppingItemFinder shoppingItemFinder)
           
static void setShoppingItemPersistence(ShoppingItemPersistence shoppingItemPersistence)
           
static void setShoppingItemPricePersistence(ShoppingItemPricePersistence shoppingItemPricePersistence)
           
static void setShoppingOrderFinder(ShoppingOrderFinder shoppingOrderFinder)
           
static void setShoppingOrderItemPersistence(ShoppingOrderItemPersistence shoppingOrderItemPersistence)
           
static void setShoppingOrderPersistence(ShoppingOrderPersistence shoppingOrderPersistence)
           
static void setUserFinder(UserFinder userFinder)
           
static void setUserPersistence(UserPersistence userPersistence)
           
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

getShoppingCartPersistence

public static ShoppingCartPersistence getShoppingCartPersistence()

setShoppingCartPersistence

public static void setShoppingCartPersistence(ShoppingCartPersistence shoppingCartPersistence)

getShoppingCategoryPersistence

public static ShoppingCategoryPersistence getShoppingCategoryPersistence()

setShoppingCategoryPersistence

public static void setShoppingCategoryPersistence(ShoppingCategoryPersistence shoppingCategoryPersistence)

getShoppingCouponPersistence

public static ShoppingCouponPersistence getShoppingCouponPersistence()

setShoppingCouponPersistence

public static void setShoppingCouponPersistence(ShoppingCouponPersistence shoppingCouponPersistence)

getShoppingCouponFinder

public static ShoppingCouponFinder getShoppingCouponFinder()

setShoppingCouponFinder

public static void setShoppingCouponFinder(ShoppingCouponFinder shoppingCouponFinder)

getShoppingItemPersistence

public static ShoppingItemPersistence getShoppingItemPersistence()

setShoppingItemPersistence

public static void setShoppingItemPersistence(ShoppingItemPersistence shoppingItemPersistence)

getShoppingItemFinder

public static ShoppingItemFinder getShoppingItemFinder()

setShoppingItemFinder

public static void setShoppingItemFinder(ShoppingItemFinder shoppingItemFinder)

getShoppingItemFieldPersistence

public static ShoppingItemFieldPersistence getShoppingItemFieldPersistence()

setShoppingItemFieldPersistence

public static void setShoppingItemFieldPersistence(ShoppingItemFieldPersistence shoppingItemFieldPersistence)

getShoppingItemPricePersistence

public static ShoppingItemPricePersistence getShoppingItemPricePersistence()

setShoppingItemPricePersistence

public static void setShoppingItemPricePersistence(ShoppingItemPricePersistence shoppingItemPricePersistence)

getShoppingOrderPersistence

public static ShoppingOrderPersistence getShoppingOrderPersistence()

setShoppingOrderPersistence

public static void setShoppingOrderPersistence(ShoppingOrderPersistence shoppingOrderPersistence)

getShoppingOrderFinder

public static ShoppingOrderFinder getShoppingOrderFinder()

setShoppingOrderFinder

public static void setShoppingOrderFinder(ShoppingOrderFinder shoppingOrderFinder)

getShoppingOrderItemPersistence

public static ShoppingOrderItemPersistence getShoppingOrderItemPersistence()

setShoppingOrderItemPersistence

public static void setShoppingOrderItemPersistence(ShoppingOrderItemPersistence shoppingOrderItemPersistence)

getResourcePersistence

public static ResourcePersistence getResourcePersistence()

setResourcePersistence

public static void setResourcePersistence(ResourcePersistence resourcePersistence)

getResourceFinder

public static ResourceFinder getResourceFinder()

setResourceFinder

public static void setResourceFinder(ResourceFinder resourceFinder)

getUserPersistence

public static UserPersistence getUserPersistence()

setUserPersistence

public static void setUserPersistence(UserPersistence userPersistence)

getUserFinder

public static UserFinder getUserFinder()

setUserFinder

public static void setUserFinder(UserFinder userFinder)

afterPropertiesSet

public static void afterPropertiesSet()

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

getItemByLargeImageId

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

getItemByMediumImageId

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

getItemBySmallImageId

public static ShoppingItem getItemBySmallImageId(long smallImageId)
                                          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