Liferay 7.0-ce-m6

com.liferay.portlet.shopping.service
Interface ShoppingItemService

All Superinterfaces:
BaseService
All Known Implementing Classes:
ShoppingItemServiceWrapper

@AccessControlled
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface ShoppingItemService
extends BaseService

Provides the remote service interface for ShoppingItem. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
ShoppingItemServiceUtil, com.liferay.portlet.shopping.service.base.ShoppingItemServiceBaseImpl, com.liferay.portlet.shopping.service.impl.ShoppingItemServiceImpl

Method Summary
 ShoppingItem addItem(long groupId, long categoryId, String sku, String name, String description, String properties, String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, Boolean sale, boolean smallImage, String smallImageURL, File smallFile, boolean mediumImage, String mediumImageURL, File mediumFile, boolean largeImage, String largeImageURL, File largeFile, List<ShoppingItemField> itemFields, List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext)
           
 void deleteItem(long itemId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 int getCategoriesItemsCount(long groupId, List<Long> categoryIds)
           
 ShoppingItem getItem(long itemId)
           
 List<ShoppingItem> getItems(long groupId, long categoryId)
           
 List<ShoppingItem> getItems(long groupId, long categoryId, int start, int end, OrderByComparator<ShoppingItem> obc)
           
 int getItemsCount(long groupId, long categoryId)
           
 ShoppingItem[] getItemsPrevAndNext(long itemId, OrderByComparator<ShoppingItem> obc)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 ShoppingItem updateItem(long itemId, long groupId, long categoryId, String sku, String name, String description, String properties, String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, Boolean sale, boolean smallImage, String smallImageURL, File smallFile, boolean mediumImage, String mediumImageURL, File mediumFile, boolean largeImage, String largeImageURL, File largeFile, List<ShoppingItemField> itemFields, List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext)
           
 

Method Detail

addItem

ShoppingItem addItem(long groupId,
                     long categoryId,
                     String sku,
                     String name,
                     String description,
                     String properties,
                     String fieldsQuantities,
                     boolean requiresShipping,
                     int stockQuantity,
                     boolean featured,
                     Boolean sale,
                     boolean smallImage,
                     String smallImageURL,
                     File smallFile,
                     boolean mediumImage,
                     String mediumImageURL,
                     File mediumFile,
                     boolean largeImage,
                     String largeImageURL,
                     File largeFile,
                     List<ShoppingItemField> itemFields,
                     List<ShoppingItemPrice> itemPrices,
                     ServiceContext serviceContext)
                     throws PortalException
Throws:
PortalException

deleteItem

void deleteItem(long itemId)
                throws PortalException
Throws:
PortalException

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

getCategoriesItemsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesItemsCount(long groupId,
                                                                     List<Long> categoryIds)

getItem

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

getItems

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<ShoppingItem> getItems(long groupId,
                                                                     long categoryId)

getItems

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<ShoppingItem> getItems(long groupId,
                                                                     long categoryId,
                                                                     int start,
                                                                     int end,
                                                                     OrderByComparator<ShoppingItem> obc)

getItemsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getItemsCount(long groupId,
                                                           long categoryId)

getItemsPrevAndNext

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

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

updateItem

ShoppingItem updateItem(long itemId,
                        long groupId,
                        long categoryId,
                        String sku,
                        String name,
                        String description,
                        String properties,
                        String fieldsQuantities,
                        boolean requiresShipping,
                        int stockQuantity,
                        boolean featured,
                        Boolean sale,
                        boolean smallImage,
                        String smallImageURL,
                        File smallFile,
                        boolean mediumImage,
                        String mediumImageURL,
                        File mediumFile,
                        boolean largeImage,
                        String largeImageURL,
                        File largeFile,
                        List<ShoppingItemField> itemFields,
                        List<ShoppingItemPrice> itemPrices,
                        ServiceContext serviceContext)
                        throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m6