com.liferay.portlet.shopping.service
Interface ShoppingItemLocalService


public interface ShoppingItemLocalService

View Source

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

This interface defines the service. The default implementation is com.liferay.portlet.shopping.service.impl.ShoppingItemLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

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

Method Summary
 void addBookItems(long userId, long categoryId, java.lang.String[] isbns)
           
 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)
           
 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)
           
 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)
           
 void addItemResources(long itemId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addItemResources(long itemId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addItemResources(ShoppingCategory category, ShoppingItem item, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addItemResources(ShoppingCategory category, ShoppingItem item, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 ShoppingItem addShoppingItem(ShoppingItem model)
           
 void afterPropertiesSet()
           
 void deleteItem(long itemId)
           
 void deleteItem(ShoppingItem item)
           
 void deleteItems(long categoryId)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 int getCategoriesItemsCount(java.util.List categoryIds)
           
 java.util.List getFeaturedItems(long groupId, long categoryId, int numOfItems)
           
 ShoppingItem getItem(long itemId)
           
 ShoppingItem getItem(long companyId, java.lang.String sku)
           
 ShoppingItem getItemByLargeImageId(long largeImageId)
           
 ShoppingItem getItemByMediumImageId(long mediumImageId)
           
 ShoppingItem getItemBySmallImageId(long smallImageId)
           
 java.util.List getItems(long categoryId)
           
 java.util.List getItems(long categoryId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getItemsCount(long categoryId)
           
 ShoppingItem[] getItemsPrevAndNext(long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ResourceFinder getResourceFinder()
           
 ResourcePersistence getResourcePersistence()
           
 java.util.List getSaleItems(long groupId, long categoryId, int numOfItems)
           
 ShoppingCartPersistence getShoppingCartPersistence()
           
 ShoppingCategoryPersistence getShoppingCategoryPersistence()
           
 ShoppingCouponFinder getShoppingCouponFinder()
           
 ShoppingCouponPersistence getShoppingCouponPersistence()
           
 ShoppingItemFieldPersistence getShoppingItemFieldPersistence()
           
 ShoppingItemFinder getShoppingItemFinder()
           
 ShoppingItemPersistence getShoppingItemPersistence()
           
 ShoppingItemPricePersistence getShoppingItemPricePersistence()
           
 ShoppingOrderFinder getShoppingOrderFinder()
           
 ShoppingOrderItemPersistence getShoppingOrderItemPersistence()
           
 ShoppingOrderPersistence getShoppingOrderPersistence()
           
 UserFinder getUserFinder()
           
 UserPersistence getUserPersistence()
           
 java.util.List search(long groupId, long[] categoryIds, java.lang.String keywords, int begin, int end)
           
 int searchCount(long groupId, long[] categoryIds, java.lang.String keywords)
           
 void setResourceFinder(ResourceFinder resourceFinder)
           
 void setResourcePersistence(ResourcePersistence resourcePersistence)
           
 void setShoppingCartPersistence(ShoppingCartPersistence shoppingCartPersistence)
           
 void setShoppingCategoryPersistence(ShoppingCategoryPersistence shoppingCategoryPersistence)
           
 void setShoppingCouponFinder(ShoppingCouponFinder shoppingCouponFinder)
           
 void setShoppingCouponPersistence(ShoppingCouponPersistence shoppingCouponPersistence)
           
 void setShoppingItemFieldPersistence(ShoppingItemFieldPersistence shoppingItemFieldPersistence)
           
 void setShoppingItemFinder(ShoppingItemFinder shoppingItemFinder)
           
 void setShoppingItemPersistence(ShoppingItemPersistence shoppingItemPersistence)
           
 void setShoppingItemPricePersistence(ShoppingItemPricePersistence shoppingItemPricePersistence)
           
 void setShoppingOrderFinder(ShoppingOrderFinder shoppingOrderFinder)
           
 void setShoppingOrderItemPersistence(ShoppingOrderItemPersistence shoppingOrderItemPersistence)
           
 void setShoppingOrderPersistence(ShoppingOrderPersistence shoppingOrderPersistence)
           
 void setUserFinder(UserFinder userFinder)
           
 void setUserPersistence(UserPersistence userPersistence)
           
 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)
           
 ShoppingItem updateShoppingItem(ShoppingItem model)
           
 

Method Detail

addShoppingItem

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

dynamicQuery

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

dynamicQuery

public 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 ShoppingItem updateShoppingItem(ShoppingItem model)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingCartPersistence

public ShoppingCartPersistence getShoppingCartPersistence()

setShoppingCartPersistence

public void setShoppingCartPersistence(ShoppingCartPersistence shoppingCartPersistence)

getShoppingCategoryPersistence

public ShoppingCategoryPersistence getShoppingCategoryPersistence()

setShoppingCategoryPersistence

public void setShoppingCategoryPersistence(ShoppingCategoryPersistence shoppingCategoryPersistence)

getShoppingCouponPersistence

public ShoppingCouponPersistence getShoppingCouponPersistence()

setShoppingCouponPersistence

public void setShoppingCouponPersistence(ShoppingCouponPersistence shoppingCouponPersistence)

getShoppingCouponFinder

public ShoppingCouponFinder getShoppingCouponFinder()

setShoppingCouponFinder

public void setShoppingCouponFinder(ShoppingCouponFinder shoppingCouponFinder)

getShoppingItemPersistence

public ShoppingItemPersistence getShoppingItemPersistence()

setShoppingItemPersistence

public void setShoppingItemPersistence(ShoppingItemPersistence shoppingItemPersistence)

getShoppingItemFinder

public ShoppingItemFinder getShoppingItemFinder()

setShoppingItemFinder

public void setShoppingItemFinder(ShoppingItemFinder shoppingItemFinder)

getShoppingItemFieldPersistence

public ShoppingItemFieldPersistence getShoppingItemFieldPersistence()

setShoppingItemFieldPersistence

public void setShoppingItemFieldPersistence(ShoppingItemFieldPersistence shoppingItemFieldPersistence)

getShoppingItemPricePersistence

public ShoppingItemPricePersistence getShoppingItemPricePersistence()

setShoppingItemPricePersistence

public void setShoppingItemPricePersistence(ShoppingItemPricePersistence shoppingItemPricePersistence)

getShoppingOrderPersistence

public ShoppingOrderPersistence getShoppingOrderPersistence()

setShoppingOrderPersistence

public void setShoppingOrderPersistence(ShoppingOrderPersistence shoppingOrderPersistence)

getShoppingOrderFinder

public ShoppingOrderFinder getShoppingOrderFinder()

setShoppingOrderFinder

public void setShoppingOrderFinder(ShoppingOrderFinder shoppingOrderFinder)

getShoppingOrderItemPersistence

public ShoppingOrderItemPersistence getShoppingOrderItemPersistence()

setShoppingOrderItemPersistence

public void setShoppingOrderItemPersistence(ShoppingOrderItemPersistence shoppingOrderItemPersistence)

getResourcePersistence

public ResourcePersistence getResourcePersistence()

setResourcePersistence

public void setResourcePersistence(ResourcePersistence resourcePersistence)

getResourceFinder

public ResourceFinder getResourceFinder()

setResourceFinder

public void setResourceFinder(ResourceFinder resourceFinder)

getUserPersistence

public UserPersistence getUserPersistence()

setUserPersistence

public void setUserPersistence(UserPersistence userPersistence)

getUserFinder

public UserFinder getUserFinder()

setUserFinder

public void setUserFinder(UserFinder userFinder)

afterPropertiesSet

public void afterPropertiesSet()

addBookItems

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

addItem

public 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.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addItem

public 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.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addItem

public 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.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addItemResources

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

addItemResources

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

addItemResources

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

addItemResources

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

deleteItem

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

deleteItem

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

deleteItems

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

getCategoriesItemsCount

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

getFeaturedItems

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

getItem

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

getItem

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

getItemByLargeImageId

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

getItemByMediumImageId

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

getItemBySmallImageId

public ShoppingItem getItemBySmallImageId(long smallImageId)
                                   throws com.liferay.portal.SystemException,
                                          com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getItems

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

getItems

public 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 ShoppingItem[] getItemsPrevAndNext(long itemId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getItemsCount

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

getSaleItems

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

search

public 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 int searchCount(long groupId,
                       long[] categoryIds,
                       java.lang.String keywords)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateItem

public 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.SystemException,
                               com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException