1
22
23 package com.liferay.portlet.shopping.service;
24
25
26
50 public interface ShoppingItemLocalService {
51 public com.liferay.portlet.shopping.model.ShoppingItem addShoppingItem(
52 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
53 throws com.liferay.portal.SystemException;
54
55 public void deleteShoppingItem(long itemId)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portal.PortalException;
58
59 public void deleteShoppingItem(
60 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.SystemException;
70
71 public com.liferay.portlet.shopping.model.ShoppingItem getShoppingItem(
72 long itemId)
73 throws com.liferay.portal.SystemException,
74 com.liferay.portal.PortalException;
75
76 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getShoppingItems(
77 int start, int end) throws com.liferay.portal.SystemException;
78
79 public int getShoppingItemsCount()
80 throws com.liferay.portal.SystemException;
81
82 public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
83 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
84 throws com.liferay.portal.SystemException;
85
86 public void addBookItems(long userId, long categoryId,
87 java.lang.String[] isbns)
88 throws com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException;
90
91 public com.liferay.portlet.shopping.model.ShoppingItem addItem(
92 long userId, long categoryId, java.lang.String sku,
93 java.lang.String name, java.lang.String description,
94 java.lang.String properties, java.lang.String fieldsQuantities,
95 boolean requiresShipping, int stockQuantity, boolean featured,
96 java.lang.Boolean sale, boolean smallImage,
97 java.lang.String smallImageURL, java.io.File smallFile,
98 boolean mediumImage, java.lang.String mediumImageURL,
99 java.io.File mediumFile, boolean largeImage,
100 java.lang.String largeImageURL, java.io.File largeFile,
101 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
102 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
103 boolean addCommunityPermissions, boolean addGuestPermissions)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106
107 public com.liferay.portlet.shopping.model.ShoppingItem addItem(
108 long userId, long categoryId, java.lang.String sku,
109 java.lang.String name, java.lang.String description,
110 java.lang.String properties, java.lang.String fieldsQuantities,
111 boolean requiresShipping, int stockQuantity, boolean featured,
112 java.lang.Boolean sale, boolean smallImage,
113 java.lang.String smallImageURL, java.io.File smallFile,
114 boolean mediumImage, java.lang.String mediumImageURL,
115 java.io.File mediumFile, boolean largeImage,
116 java.lang.String largeImageURL, java.io.File largeFile,
117 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
118 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
119 java.lang.String[] communityPermissions,
120 java.lang.String[] guestPermissions)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException;
123
124 public com.liferay.portlet.shopping.model.ShoppingItem addItem(
125 long userId, long categoryId, java.lang.String sku,
126 java.lang.String name, java.lang.String description,
127 java.lang.String properties, java.lang.String fieldsQuantities,
128 boolean requiresShipping, int stockQuantity, boolean featured,
129 java.lang.Boolean sale, boolean smallImage,
130 java.lang.String smallImageURL, java.io.File smallFile,
131 boolean mediumImage, java.lang.String mediumImageURL,
132 java.io.File mediumFile, boolean largeImage,
133 java.lang.String largeImageURL, java.io.File largeFile,
134 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
135 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
136 java.lang.Boolean addCommunityPermissions,
137 java.lang.Boolean addGuestPermissions,
138 java.lang.String[] communityPermissions,
139 java.lang.String[] guestPermissions)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 public void addItemResources(long itemId, boolean addCommunityPermissions,
144 boolean addGuestPermissions)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException;
147
148 public void addItemResources(
149 com.liferay.portlet.shopping.model.ShoppingCategory category,
150 com.liferay.portlet.shopping.model.ShoppingItem item,
151 boolean addCommunityPermissions, boolean addGuestPermissions)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 public void addItemResources(long itemId,
156 java.lang.String[] communityPermissions,
157 java.lang.String[] guestPermissions)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException;
160
161 public void addItemResources(
162 com.liferay.portlet.shopping.model.ShoppingCategory category,
163 com.liferay.portlet.shopping.model.ShoppingItem item,
164 java.lang.String[] communityPermissions,
165 java.lang.String[] guestPermissions)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException;
168
169 public void deleteItem(long itemId)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException;
172
173 public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException;
176
177 public void deleteItems(long categoryId)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException;
180
181 public int getCategoriesItemsCount(java.util.List<Long> categoryIds)
182 throws com.liferay.portal.SystemException;
183
184 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(
185 long groupId, long categoryId, int numOfItems)
186 throws com.liferay.portal.SystemException;
187
188 public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException;
191
192 public com.liferay.portlet.shopping.model.ShoppingItem getItem(
193 long companyId, java.lang.String sku)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException;
196
197 public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
198 long largeImageId)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException;
201
202 public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
203 long mediumImageId)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206
207 public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
208 long smallImageId)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException;
211
212 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
213 long categoryId) throws com.liferay.portal.SystemException;
214
215 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
216 long categoryId, int start, int end,
217 com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.SystemException;
219
220 public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
221 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.PortalException,
223 com.liferay.portal.SystemException;
224
225 public int getItemsCount(long categoryId)
226 throws com.liferay.portal.SystemException;
227
228 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(
229 long groupId, long categoryId, int numOfItems)
230 throws com.liferay.portal.SystemException;
231
232 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> search(
233 long groupId, long[] categoryIds, java.lang.String keywords, int start,
234 int end) throws com.liferay.portal.SystemException;
235
236 public int searchCount(long groupId, long[] categoryIds,
237 java.lang.String keywords) throws com.liferay.portal.SystemException;
238
239 public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
240 long userId, long itemId, long categoryId, java.lang.String sku,
241 java.lang.String name, java.lang.String description,
242 java.lang.String properties, java.lang.String fieldsQuantities,
243 boolean requiresShipping, int stockQuantity, boolean featured,
244 java.lang.Boolean sale, boolean smallImage,
245 java.lang.String smallImageURL, java.io.File smallFile,
246 boolean mediumImage, java.lang.String mediumImageURL,
247 java.io.File mediumFile, boolean largeImage,
248 java.lang.String largeImageURL, java.io.File largeFile,
249 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
250 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices)
251 throws com.liferay.portal.PortalException,
252 com.liferay.portal.SystemException;
253 }