com.liferay.portlet.shopping.service
Interface ShoppingItemService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface ShoppingItemService

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.ShoppingItemServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

Author:
Brian Wing Shun Chan
See Also:
ShoppingItemServiceUtil

Method Summary
 void addBookItems(long categoryId, java.lang.String[] isbns)
           
 ShoppingItem addItem(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 deleteItem(long itemId)
           
 ShoppingItem getItem(long itemId)
           
 ShoppingItem updateItem(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<ShoppingItemField> itemFields, java.util.List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext)
           
 

Method Detail

addBookItems

void addBookItems(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

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

deleteItem

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

getItem

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

updateItem

ShoppingItem updateItem(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<ShoppingItemField> itemFields,
                        java.util.List<ShoppingItemPrice> itemPrices,
                        ServiceContext serviceContext)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException