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.ShoppingItemLocalServiceUtil
48   *
49   */
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 }