001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface ShoppingItemService {
041
046 public void addBookItems(long groupId, long categoryId,
047 java.lang.String[] isbns)
048 throws com.liferay.portal.kernel.exception.PortalException,
049 com.liferay.portal.kernel.exception.SystemException;
050
051 public com.liferay.portlet.shopping.model.ShoppingItem addItem(
052 long groupId, long categoryId, java.lang.String sku,
053 java.lang.String name, java.lang.String description,
054 java.lang.String properties, java.lang.String fieldsQuantities,
055 boolean requiresShipping, int stockQuantity, boolean featured,
056 java.lang.Boolean sale, boolean smallImage,
057 java.lang.String smallImageURL, java.io.File smallFile,
058 boolean mediumImage, java.lang.String mediumImageURL,
059 java.io.File mediumFile, boolean largeImage,
060 java.lang.String largeImageURL, java.io.File largeFile,
061 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
062 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 public void deleteItem(long itemId)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072 public int getCategoriesItemsCount(long groupId,
073 java.util.List<java.lang.Long> categoryIds)
074 throws com.liferay.portal.kernel.exception.SystemException;
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077 public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
083 long groupId, long categoryId)
084 throws com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
088 long groupId, long categoryId, int start, int end,
089 com.liferay.portal.kernel.util.OrderByComparator obc)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public int getItemsCount(long groupId, long categoryId)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
098 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
099 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
103 long itemId, long groupId, long categoryId, java.lang.String sku,
104 java.lang.String name, java.lang.String description,
105 java.lang.String properties, java.lang.String fieldsQuantities,
106 boolean requiresShipping, int stockQuantity, boolean featured,
107 java.lang.Boolean sale, boolean smallImage,
108 java.lang.String smallImageURL, java.io.File smallFile,
109 boolean mediumImage, java.lang.String mediumImageURL,
110 java.io.File mediumFile, boolean largeImage,
111 java.lang.String largeImageURL, java.io.File largeFile,
112 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
113 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
114 com.liferay.portal.service.ServiceContext serviceContext)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException;
117 }