1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.shopping.service;
24  
25  
26  /**
27   * <a href="ShoppingItemLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.shopping.service.impl.ShoppingItemLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.shopping.service.ShoppingItemLocalServiceFactory
48   * @see com.liferay.portlet.shopping.service.ShoppingItemLocalServiceUtil
49   *
50   */
51  public interface ShoppingItemLocalService {
52      public com.liferay.portlet.shopping.model.ShoppingItem addShoppingItem(
53          com.liferay.portlet.shopping.model.ShoppingItem model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
65          com.liferay.portlet.shopping.model.ShoppingItem model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence getShoppingCartPersistence();
69  
70      public void setShoppingCartPersistence(
71          com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence);
72  
73      public com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence getShoppingCategoryPersistence();
74  
75      public void setShoppingCategoryPersistence(
76          com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence shoppingCategoryPersistence);
77  
78      public com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence getShoppingCouponPersistence();
79  
80      public void setShoppingCouponPersistence(
81          com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence shoppingCouponPersistence);
82  
83      public com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder getShoppingCouponFinder();
84  
85      public void setShoppingCouponFinder(
86          com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder shoppingCouponFinder);
87  
88      public com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence getShoppingItemPersistence();
89  
90      public void setShoppingItemPersistence(
91          com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence shoppingItemPersistence);
92  
93      public com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder getShoppingItemFinder();
94  
95      public void setShoppingItemFinder(
96          com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder shoppingItemFinder);
97  
98      public com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence getShoppingItemFieldPersistence();
99  
100     public void setShoppingItemFieldPersistence(
101         com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence shoppingItemFieldPersistence);
102 
103     public com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence getShoppingItemPricePersistence();
104 
105     public void setShoppingItemPricePersistence(
106         com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence shoppingItemPricePersistence);
107 
108     public com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence getShoppingOrderPersistence();
109 
110     public void setShoppingOrderPersistence(
111         com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence shoppingOrderPersistence);
112 
113     public com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder getShoppingOrderFinder();
114 
115     public void setShoppingOrderFinder(
116         com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder shoppingOrderFinder);
117 
118     public com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence getShoppingOrderItemPersistence();
119 
120     public void setShoppingOrderItemPersistence(
121         com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence shoppingOrderItemPersistence);
122 
123     public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
124 
125     public void setResourcePersistence(
126         com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
127 
128     public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
129 
130     public void setResourceFinder(
131         com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
132 
133     public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
134 
135     public void setUserPersistence(
136         com.liferay.portal.service.persistence.UserPersistence userPersistence);
137 
138     public com.liferay.portal.service.persistence.UserFinder getUserFinder();
139 
140     public void setUserFinder(
141         com.liferay.portal.service.persistence.UserFinder userFinder);
142 
143     public void afterPropertiesSet();
144 
145     public void addBookItems(long userId, long categoryId,
146         java.lang.String[] isbns)
147         throws com.liferay.portal.SystemException, 
148             com.liferay.portal.PortalException;
149 
150     public com.liferay.portlet.shopping.model.ShoppingItem addItem(
151         long userId, long categoryId, java.lang.String sku,
152         java.lang.String name, java.lang.String description,
153         java.lang.String properties, java.lang.String fieldsQuantities,
154         boolean requiresShipping, int stockQuantity, boolean featured,
155         java.lang.Boolean sale, boolean smallImage,
156         java.lang.String smallImageURL, java.io.File smallFile,
157         boolean mediumImage, java.lang.String mediumImageURL,
158         java.io.File mediumFile, boolean largeImage,
159         java.lang.String largeImageURL, java.io.File largeFile,
160         java.util.List itemFields, java.util.List itemPrices,
161         boolean addCommunityPermissions, boolean addGuestPermissions)
162         throws com.liferay.portal.SystemException, 
163             com.liferay.portal.PortalException;
164 
165     public com.liferay.portlet.shopping.model.ShoppingItem addItem(
166         long userId, long categoryId, java.lang.String sku,
167         java.lang.String name, java.lang.String description,
168         java.lang.String properties, java.lang.String fieldsQuantities,
169         boolean requiresShipping, int stockQuantity, boolean featured,
170         java.lang.Boolean sale, boolean smallImage,
171         java.lang.String smallImageURL, java.io.File smallFile,
172         boolean mediumImage, java.lang.String mediumImageURL,
173         java.io.File mediumFile, boolean largeImage,
174         java.lang.String largeImageURL, java.io.File largeFile,
175         java.util.List itemFields, java.util.List itemPrices,
176         java.lang.String[] communityPermissions,
177         java.lang.String[] guestPermissions)
178         throws com.liferay.portal.SystemException, 
179             com.liferay.portal.PortalException;
180 
181     public com.liferay.portlet.shopping.model.ShoppingItem addItem(
182         long userId, long categoryId, java.lang.String sku,
183         java.lang.String name, java.lang.String description,
184         java.lang.String properties, java.lang.String fieldsQuantities,
185         boolean requiresShipping, int stockQuantity, boolean featured,
186         java.lang.Boolean sale, boolean smallImage,
187         java.lang.String smallImageURL, java.io.File smallFile,
188         boolean mediumImage, java.lang.String mediumImageURL,
189         java.io.File mediumFile, boolean largeImage,
190         java.lang.String largeImageURL, java.io.File largeFile,
191         java.util.List itemFields, java.util.List itemPrices,
192         java.lang.Boolean addCommunityPermissions,
193         java.lang.Boolean addGuestPermissions,
194         java.lang.String[] communityPermissions,
195         java.lang.String[] guestPermissions)
196         throws com.liferay.portal.SystemException, 
197             com.liferay.portal.PortalException;
198 
199     public void addItemResources(long itemId, boolean addCommunityPermissions,
200         boolean addGuestPermissions)
201         throws com.liferay.portal.SystemException, 
202             com.liferay.portal.PortalException;
203 
204     public void addItemResources(
205         com.liferay.portlet.shopping.model.ShoppingCategory category,
206         com.liferay.portlet.shopping.model.ShoppingItem item,
207         boolean addCommunityPermissions, boolean addGuestPermissions)
208         throws com.liferay.portal.SystemException, 
209             com.liferay.portal.PortalException;
210 
211     public void addItemResources(long itemId,
212         java.lang.String[] communityPermissions,
213         java.lang.String[] guestPermissions)
214         throws com.liferay.portal.SystemException, 
215             com.liferay.portal.PortalException;
216 
217     public void addItemResources(
218         com.liferay.portlet.shopping.model.ShoppingCategory category,
219         com.liferay.portlet.shopping.model.ShoppingItem item,
220         java.lang.String[] communityPermissions,
221         java.lang.String[] guestPermissions)
222         throws com.liferay.portal.SystemException, 
223             com.liferay.portal.PortalException;
224 
225     public void deleteItem(long itemId)
226         throws com.liferay.portal.SystemException, 
227             com.liferay.portal.PortalException;
228 
229     public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
230         throws com.liferay.portal.SystemException, 
231             com.liferay.portal.PortalException;
232 
233     public void deleteItems(long categoryId)
234         throws com.liferay.portal.SystemException, 
235             com.liferay.portal.PortalException;
236 
237     public int getCategoriesItemsCount(java.util.List categoryIds)
238         throws com.liferay.portal.SystemException;
239 
240     public java.util.List getFeaturedItems(long groupId, long categoryId,
241         int numOfItems) throws com.liferay.portal.SystemException;
242 
243     public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
244         throws com.liferay.portal.SystemException, 
245             com.liferay.portal.PortalException;
246 
247     public com.liferay.portlet.shopping.model.ShoppingItem getItem(
248         long companyId, java.lang.String sku)
249         throws com.liferay.portal.SystemException, 
250             com.liferay.portal.PortalException;
251 
252     public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
253         long largeImageId)
254         throws com.liferay.portal.SystemException, 
255             com.liferay.portal.PortalException;
256 
257     public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
258         long mediumImageId)
259         throws com.liferay.portal.SystemException, 
260             com.liferay.portal.PortalException;
261 
262     public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
263         long smallImageId)
264         throws com.liferay.portal.SystemException, 
265             com.liferay.portal.PortalException;
266 
267     public java.util.List getItems(long categoryId)
268         throws com.liferay.portal.SystemException;
269 
270     public java.util.List getItems(long categoryId, int begin, int end,
271         com.liferay.portal.kernel.util.OrderByComparator obc)
272         throws com.liferay.portal.SystemException;
273 
274     public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
275         long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
276         throws com.liferay.portal.SystemException, 
277             com.liferay.portal.PortalException;
278 
279     public int getItemsCount(long categoryId)
280         throws com.liferay.portal.SystemException;
281 
282     public java.util.List getSaleItems(long groupId, long categoryId,
283         int numOfItems) throws com.liferay.portal.SystemException;
284 
285     public java.util.List search(long groupId, long[] categoryIds,
286         java.lang.String keywords, int begin, int end)
287         throws com.liferay.portal.SystemException;
288 
289     public int searchCount(long groupId, long[] categoryIds,
290         java.lang.String keywords) throws com.liferay.portal.SystemException;
291 
292     public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
293         long userId, long itemId, long categoryId, java.lang.String sku,
294         java.lang.String name, java.lang.String description,
295         java.lang.String properties, java.lang.String fieldsQuantities,
296         boolean requiresShipping, int stockQuantity, boolean featured,
297         java.lang.Boolean sale, boolean smallImage,
298         java.lang.String smallImageURL, java.io.File smallFile,
299         boolean mediumImage, java.lang.String mediumImageURL,
300         java.io.File mediumFile, boolean largeImage,
301         java.lang.String largeImageURL, java.io.File largeFile,
302         java.util.List itemFields, java.util.List itemPrices)
303         throws com.liferay.portal.SystemException, 
304             com.liferay.portal.PortalException;
305 }