com.liferay.portlet.shopping.service
Interface ShoppingItemLocalService

All Known Implementing Classes:
ShoppingItemLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
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:
ShoppingItemLocalServiceUtil
Generated:

Method Summary
 void addBookItems(long userId, long groupId, long categoryId, java.lang.String[] isbns)
           
 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)
           
 void addItemResources(long itemId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addItemResources(long itemId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addItemResources(ShoppingItem item, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addItemResources(ShoppingItem item, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 ShoppingItem addShoppingItem(ShoppingItem shoppingItem)
           
 ShoppingItem createShoppingItem(long itemId)
           
 void deleteItem(long itemId)
           
 void deleteItem(ShoppingItem item)
           
 void deleteItems(long groupId, long categoryId)
           
 void deleteShoppingItem(long itemId)
           
 void deleteShoppingItem(ShoppingItem shoppingItem)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 int getCategoriesItemsCount(long groupId, java.util.List<java.lang.Long> categoryIds)
           
 java.util.List<ShoppingItem> 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<ShoppingItem> getItems(long groupId, long categoryId)
           
 java.util.List<ShoppingItem> getItems(long groupId, long categoryId, int start, int end, OrderByComparator obc)
           
 int getItemsCount(long groupId, long categoryId)
           
 ShoppingItem[] getItemsPrevAndNext(long itemId, OrderByComparator obc)
           
 java.util.List<ShoppingItem> getSaleItems(long groupId, long categoryId, int numOfItems)
           
 ShoppingItem getShoppingItem(long itemId)
           
 java.util.List<ShoppingItem> getShoppingItems(int start, int end)
           
 int getShoppingItemsCount()
           
 java.util.List<ShoppingItem> search(long groupId, long[] categoryIds, java.lang.String keywords, int start, int end)
           
 int searchCount(long groupId, long[] categoryIds, java.lang.String keywords)
           
 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)
           
 ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
           
 ShoppingItem updateShoppingItem(ShoppingItem shoppingItem, boolean merge)
           
 

Method Detail

addShoppingItem

ShoppingItem addShoppingItem(ShoppingItem shoppingItem)
                             throws SystemException
Throws:
SystemException

createShoppingItem

ShoppingItem createShoppingItem(long itemId)

deleteShoppingItem

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

deleteShoppingItem

void deleteShoppingItem(ShoppingItem shoppingItem)
                        throws SystemException
Throws:
SystemException

dynamicQuery

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

dynamicQuery

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

dynamicQuery

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

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getShoppingItem

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem getShoppingItem(long itemId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getShoppingItems

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> getShoppingItems(int start,
                                                                                       int end)
                                              throws SystemException
Throws:
SystemException

getShoppingItemsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getShoppingItemsCount()
                          throws SystemException
Throws:
SystemException

updateShoppingItem

ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
                                throws SystemException
Throws:
SystemException

updateShoppingItem

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

addBookItems

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

addItem

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

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

addItemResources

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

addItemResources

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

addItemResources

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

deleteItem

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

deleteItem

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

deleteItems

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

getCategoriesItemsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesItemsCount(long groupId,
                                                                     java.util.List<java.lang.Long> categoryIds)
                            throws SystemException
Throws:
SystemException

getFeaturedItems

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> getFeaturedItems(long groupId,
                                                                                       long categoryId,
                                                                                       int numOfItems)
                                              throws SystemException
Throws:
SystemException

getItem

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem getItem(long itemId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getItem

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem getItem(long companyId,
                                                              java.lang.String sku)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getItemByLargeImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem getItemByLargeImageId(long largeImageId)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getItemByMediumImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem getItemByMediumImageId(long mediumImageId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getItemBySmallImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem getItemBySmallImageId(long smallImageId)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getItems

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> getItems(long groupId,
                                                                               long categoryId)
                                      throws SystemException
Throws:
SystemException

getItems

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> getItems(long groupId,
                                                                               long categoryId,
                                                                               int start,
                                                                               int end,
                                                                               OrderByComparator obc)
                                      throws SystemException
Throws:
SystemException

getItemsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getItemsCount(long groupId,
                                                           long categoryId)
                  throws SystemException
Throws:
SystemException

getItemsPrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem[] getItemsPrevAndNext(long itemId,
                                                                            OrderByComparator obc)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getSaleItems

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> getSaleItems(long groupId,
                                                                                   long categoryId,
                                                                                   int numOfItems)
                                          throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> search(long groupId,
                                                                             long[] categoryIds,
                                                                             java.lang.String keywords,
                                                                             int start,
                                                                             int end)
                                    throws SystemException
Throws:
SystemException

searchCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int searchCount(long groupId,
                                                         long[] categoryIds,
                                                         java.lang.String keywords)
                throws SystemException
Throws:
SystemException

updateItem

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