com.liferay.portlet.shopping.service
Class ShoppingItemLocalServiceUtil

java.lang.Object
  extended by com.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 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.

Author:
Brian Wing Shun Chan
See Also:
ShoppingItemLocalService
Generated:

Constructor Summary
ShoppingItemLocalServiceUtil()
           
 
Method Summary
static void addBookItems(long userId, long groupId, long categoryId, java.lang.String[] isbns)
           
static ShoppingItem addItem(long userId, long groupId, 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<ShoppingItemField> itemFields, java.util.List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext)
           
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(ShoppingItem item, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addItemResources(ShoppingItem item, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static ShoppingItem addShoppingItem(ShoppingItem shoppingItem)
           
static ShoppingItem createShoppingItem(long itemId)
           
static void deleteItem(long itemId)
           
static void deleteItem(ShoppingItem item)
           
static void deleteItems(long groupId, long categoryId)
           
static void deleteShoppingItem(long itemId)
           
static void deleteShoppingItem(ShoppingItem shoppingItem)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static long dynamicQueryCount(DynamicQuery dynamicQuery)
           
static int getCategoriesItemsCount(long groupId, java.util.List<java.lang.Long> categoryIds)
           
static java.util.List<ShoppingItem> 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<ShoppingItem> getItems(long groupId, long categoryId)
           
static java.util.List<ShoppingItem> getItems(long groupId, long categoryId, int start, int end, OrderByComparator obc)
           
static int getItemsCount(long groupId, long categoryId)
           
static ShoppingItem[] getItemsPrevAndNext(long itemId, OrderByComparator obc)
           
static java.util.List<ShoppingItem> getSaleItems(long groupId, long categoryId, int numOfItems)
           
static ShoppingItemLocalService getService()
           
static ShoppingItem getShoppingItem(long itemId)
           
static java.util.List<ShoppingItem> getShoppingItems(int start, int end)
           
static int getShoppingItemsCount()
           
static java.util.List<ShoppingItem> search(long groupId, long[] categoryIds, java.lang.String keywords, int start, int end)
           
static int searchCount(long groupId, long[] categoryIds, java.lang.String keywords)
           
 void setService(ShoppingItemLocalService service)
           
static ShoppingItem updateItem(long userId, long itemId, long groupId, 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<ShoppingItemField> itemFields, java.util.List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext)
           
static ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
           
static ShoppingItem updateShoppingItem(ShoppingItem shoppingItem, boolean merge)
           
 
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 shoppingItem)
                                    throws SystemException
Throws:
SystemException

createShoppingItem

public static ShoppingItem createShoppingItem(long itemId)

deleteShoppingItem

public static void deleteShoppingItem(long itemId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

deleteShoppingItem

public static void deleteShoppingItem(ShoppingItem shoppingItem)
                               throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                                   throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                                          int start,
                                          int end)
                                   throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Throws:
SystemException

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Throws:
SystemException

getShoppingItem

public static ShoppingItem getShoppingItem(long itemId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getShoppingItems

public static java.util.List<ShoppingItem> getShoppingItems(int start,
                                                            int end)
                                                     throws SystemException
Throws:
SystemException

getShoppingItemsCount

public static int getShoppingItemsCount()
                                 throws SystemException
Throws:
SystemException

updateShoppingItem

public static ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
                                       throws SystemException
Throws:
SystemException

updateShoppingItem

public static ShoppingItem updateShoppingItem(ShoppingItem shoppingItem,
                                              boolean merge)
                                       throws SystemException
Throws:
SystemException

addBookItems

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

addItem

public static ShoppingItem addItem(long userId,
                                   long groupId,
                                   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<ShoppingItemField> itemFields,
                                   java.util.List<ShoppingItemPrice> itemPrices,
                                   ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

addItemResources

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

addItemResources

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

addItemResources

public static void addItemResources(ShoppingItem item,
                                    boolean addCommunityPermissions,
                                    boolean addGuestPermissions)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addItemResources

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

deleteItem

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

deleteItem

public static void deleteItem(ShoppingItem item)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteItems

public static void deleteItems(long groupId,
                               long categoryId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getCategoriesItemsCount

public static int getCategoriesItemsCount(long groupId,
                                          java.util.List<java.lang.Long> categoryIds)
                                   throws SystemException
Throws:
SystemException

getFeaturedItems

public static java.util.List<ShoppingItem> getFeaturedItems(long groupId,
                                                            long categoryId,
                                                            int numOfItems)
                                                     throws SystemException
Throws:
SystemException

getItem

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

getItem

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

getItemByLargeImageId

public static ShoppingItem getItemByLargeImageId(long largeImageId)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getItemByMediumImageId

public static ShoppingItem getItemByMediumImageId(long mediumImageId)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

getItemBySmallImageId

public static ShoppingItem getItemBySmallImageId(long smallImageId)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getItems

public static java.util.List<ShoppingItem> getItems(long groupId,
                                                    long categoryId)
                                             throws SystemException
Throws:
SystemException

getItems

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

getItemsCount

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

getItemsPrevAndNext

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

getSaleItems

public static java.util.List<ShoppingItem> getSaleItems(long groupId,
                                                        long categoryId,
                                                        int numOfItems)
                                                 throws SystemException
Throws:
SystemException

search

public static java.util.List<ShoppingItem> search(long groupId,
                                                  long[] categoryIds,
                                                  java.lang.String keywords,
                                                  int start,
                                                  int end)
                                           throws SystemException
Throws:
SystemException

searchCount

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

updateItem

public static ShoppingItem updateItem(long userId,
                                      long itemId,
                                      long groupId,
                                      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<ShoppingItemField> itemFields,
                                      java.util.List<ShoppingItemPrice> itemPrices,
                                      ServiceContext serviceContext)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getService

public static ShoppingItemLocalService getService()

setService

public void setService(ShoppingItemLocalService service)