1
22
23 package com.liferay.portlet.shopping.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface ShoppingItemService {
57 public void addBookItems(long categoryId, java.lang.String[] isbns)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.shopping.model.ShoppingItem addItem(
62 long categoryId, java.lang.String sku, java.lang.String name,
63 java.lang.String description, java.lang.String properties,
64 java.lang.String fieldsQuantities, boolean requiresShipping,
65 int stockQuantity, boolean featured, java.lang.Boolean sale,
66 boolean smallImage, java.lang.String smallImageURL,
67 java.io.File smallFile, boolean mediumImage,
68 java.lang.String mediumImageURL, java.io.File mediumFile,
69 boolean largeImage, java.lang.String largeImageURL,
70 java.io.File largeFile,
71 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
72 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
73 com.liferay.portal.service.ServiceContext serviceContext)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException;
76
77 public void deleteItem(long itemId)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
87 long itemId, long categoryId, java.lang.String sku,
88 java.lang.String name, java.lang.String description,
89 java.lang.String properties, java.lang.String fieldsQuantities,
90 boolean requiresShipping, int stockQuantity, boolean featured,
91 java.lang.Boolean sale, boolean smallImage,
92 java.lang.String smallImageURL, java.io.File smallFile,
93 boolean mediumImage, java.lang.String mediumImageURL,
94 java.io.File mediumFile, boolean largeImage,
95 java.lang.String largeImageURL, java.io.File largeFile,
96 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
97 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
98 com.liferay.portal.service.ServiceContext serviceContext)
99 throws com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException;
101 }