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