1   /**
2    * Copyright (c) 2000-2007 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   * <a href="ShoppingItemLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.shopping.service.impl.ShoppingItemLocalServiceImpl</code>.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks
41   * based on the propagated JAAS credentials because this service can only be accessed
42   * from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.shopping.service.ShoppingItemServiceFactory
48   * @see com.liferay.portlet.shopping.service.ShoppingItemServiceUtil
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 void addBookItems(long userId, long categoryId,
69          java.lang.String[] isbns)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portal.PortalException;
72  
73      public com.liferay.portlet.shopping.model.ShoppingItem addItem(
74          long userId, long categoryId, java.lang.String sku,
75          java.lang.String name, java.lang.String description,
76          java.lang.String properties, java.lang.String fieldsQuantities,
77          boolean requiresShipping, int stockQuantity, boolean featured,
78          java.lang.Boolean sale, boolean smallImage,
79          java.lang.String smallImageURL, java.io.File smallFile,
80          boolean mediumImage, java.lang.String mediumImageURL,
81          java.io.File mediumFile, boolean largeImage,
82          java.lang.String largeImageURL, java.io.File largeFile,
83          java.util.List itemFields, java.util.List itemPrices,
84          boolean addCommunityPermissions, boolean addGuestPermissions)
85          throws com.liferay.portal.SystemException, 
86              com.liferay.portal.PortalException;
87  
88      public com.liferay.portlet.shopping.model.ShoppingItem addItem(
89          long userId, long categoryId, java.lang.String sku,
90          java.lang.String name, java.lang.String description,
91          java.lang.String properties, java.lang.String fieldsQuantities,
92          boolean requiresShipping, int stockQuantity, boolean featured,
93          java.lang.Boolean sale, boolean smallImage,
94          java.lang.String smallImageURL, java.io.File smallFile,
95          boolean mediumImage, java.lang.String mediumImageURL,
96          java.io.File mediumFile, boolean largeImage,
97          java.lang.String largeImageURL, java.io.File largeFile,
98          java.util.List itemFields, java.util.List itemPrices,
99          java.lang.String[] communityPermissions,
100         java.lang.String[] guestPermissions)
101         throws com.liferay.portal.SystemException, 
102             com.liferay.portal.PortalException;
103 
104     public com.liferay.portlet.shopping.model.ShoppingItem addItem(
105         long userId, long categoryId, java.lang.String sku,
106         java.lang.String name, java.lang.String description,
107         java.lang.String properties, java.lang.String fieldsQuantities,
108         boolean requiresShipping, int stockQuantity, boolean featured,
109         java.lang.Boolean sale, boolean smallImage,
110         java.lang.String smallImageURL, java.io.File smallFile,
111         boolean mediumImage, java.lang.String mediumImageURL,
112         java.io.File mediumFile, boolean largeImage,
113         java.lang.String largeImageURL, java.io.File largeFile,
114         java.util.List itemFields, java.util.List itemPrices,
115         java.lang.Boolean addCommunityPermissions,
116         java.lang.Boolean addGuestPermissions,
117         java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws com.liferay.portal.SystemException, 
120             com.liferay.portal.PortalException;
121 
122     public void addItemResources(long itemId, boolean addCommunityPermissions,
123         boolean addGuestPermissions)
124         throws com.liferay.portal.SystemException, 
125             com.liferay.portal.PortalException;
126 
127     public void addItemResources(
128         com.liferay.portlet.shopping.model.ShoppingCategory category,
129         com.liferay.portlet.shopping.model.ShoppingItem item,
130         boolean addCommunityPermissions, boolean addGuestPermissions)
131         throws com.liferay.portal.SystemException, 
132             com.liferay.portal.PortalException;
133 
134     public void addItemResources(long itemId,
135         java.lang.String[] communityPermissions,
136         java.lang.String[] guestPermissions)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portal.PortalException;
139 
140     public void addItemResources(
141         com.liferay.portlet.shopping.model.ShoppingCategory category,
142         com.liferay.portlet.shopping.model.ShoppingItem item,
143         java.lang.String[] communityPermissions,
144         java.lang.String[] guestPermissions)
145         throws com.liferay.portal.SystemException, 
146             com.liferay.portal.PortalException;
147 
148     public void deleteItem(long itemId)
149         throws com.liferay.portal.SystemException, 
150             com.liferay.portal.PortalException;
151 
152     public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portal.PortalException;
155 
156     public void deleteItems(long categoryId)
157         throws com.liferay.portal.SystemException, 
158             com.liferay.portal.PortalException;
159 
160     public int getCategoriesItemsCount(java.util.List categoryIds)
161         throws com.liferay.portal.SystemException;
162 
163     public java.util.List getFeaturedItems(long groupId, long categoryId,
164         int numOfItems) throws com.liferay.portal.SystemException;
165 
166     public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
167         throws com.liferay.portal.SystemException, 
168             com.liferay.portal.PortalException;
169 
170     public com.liferay.portlet.shopping.model.ShoppingItem getItem(
171         long companyId, java.lang.String sku)
172         throws com.liferay.portal.SystemException, 
173             com.liferay.portal.PortalException;
174 
175     public java.util.List getItems(long categoryId)
176         throws com.liferay.portal.SystemException;
177 
178     public java.util.List getItems(long categoryId, int begin, int end,
179         com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException;
181 
182     public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
183         long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException, 
185             com.liferay.portal.PortalException;
186 
187     public int getItemsCount(long categoryId)
188         throws com.liferay.portal.SystemException;
189 
190     public java.util.List getSaleItems(long groupId, long categoryId,
191         int numOfItems) throws com.liferay.portal.SystemException;
192 
193     public java.util.List search(long groupId, long[] categoryIds,
194         java.lang.String keywords, int begin, int end)
195         throws com.liferay.portal.SystemException;
196 
197     public int searchCount(long groupId, long[] categoryIds,
198         java.lang.String keywords) throws com.liferay.portal.SystemException;
199 
200     public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
201         long userId, long itemId, long categoryId, java.lang.String sku,
202         java.lang.String name, java.lang.String description,
203         java.lang.String properties, java.lang.String fieldsQuantities,
204         boolean requiresShipping, int stockQuantity, boolean featured,
205         java.lang.Boolean sale, boolean smallImage,
206         java.lang.String smallImageURL, java.io.File smallFile,
207         boolean mediumImage, java.lang.String mediumImageURL,
208         java.io.File mediumFile, boolean largeImage,
209         java.lang.String largeImageURL, java.io.File largeFile,
210         java.util.List itemFields, java.util.List itemPrices)
211         throws com.liferay.portal.SystemException, 
212             com.liferay.portal.PortalException;
213 }