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