001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.shopping.service;
022:
023: /**
024: * <a href="ShoppingItemLocalService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.shopping.service.impl.ShoppingItemLocalServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * 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.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.shopping.service.ShoppingItemLocalServiceFactory
045: * @see com.liferay.portlet.shopping.service.ShoppingItemLocalServiceUtil
046: *
047: */
048: public interface ShoppingItemLocalService {
049: public com.liferay.portlet.shopping.model.ShoppingItem addShoppingItem(
050: com.liferay.portlet.shopping.model.ShoppingItem model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
063: com.liferay.portlet.shopping.model.ShoppingItem model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence getShoppingCartPersistence();
067:
068: public void setShoppingCartPersistence(
069: com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence);
070:
071: public com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence getShoppingCategoryPersistence();
072:
073: public void setShoppingCategoryPersistence(
074: com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence shoppingCategoryPersistence);
075:
076: public com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence getShoppingCouponPersistence();
077:
078: public void setShoppingCouponPersistence(
079: com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence shoppingCouponPersistence);
080:
081: public com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder getShoppingCouponFinder();
082:
083: public void setShoppingCouponFinder(
084: com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder shoppingCouponFinder);
085:
086: public com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence getShoppingItemPersistence();
087:
088: public void setShoppingItemPersistence(
089: com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence shoppingItemPersistence);
090:
091: public com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder getShoppingItemFinder();
092:
093: public void setShoppingItemFinder(
094: com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder shoppingItemFinder);
095:
096: public com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence getShoppingItemFieldPersistence();
097:
098: public void setShoppingItemFieldPersistence(
099: com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence shoppingItemFieldPersistence);
100:
101: public com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence getShoppingItemPricePersistence();
102:
103: public void setShoppingItemPricePersistence(
104: com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence shoppingItemPricePersistence);
105:
106: public com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence getShoppingOrderPersistence();
107:
108: public void setShoppingOrderPersistence(
109: com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence shoppingOrderPersistence);
110:
111: public com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder getShoppingOrderFinder();
112:
113: public void setShoppingOrderFinder(
114: com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder shoppingOrderFinder);
115:
116: public com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence getShoppingOrderItemPersistence();
117:
118: public void setShoppingOrderItemPersistence(
119: com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence shoppingOrderItemPersistence);
120:
121: public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
122:
123: public void setResourcePersistence(
124: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
125:
126: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
127:
128: public void setResourceFinder(
129: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
130:
131: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
132:
133: public void setUserPersistence(
134: com.liferay.portal.service.persistence.UserPersistence userPersistence);
135:
136: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
137:
138: public void setUserFinder(
139: com.liferay.portal.service.persistence.UserFinder userFinder);
140:
141: public void afterPropertiesSet();
142:
143: public void addBookItems(long userId, long categoryId,
144: java.lang.String[] isbns)
145: throws com.liferay.portal.SystemException,
146: com.liferay.portal.PortalException;
147:
148: public com.liferay.portlet.shopping.model.ShoppingItem addItem(
149: long userId, long categoryId, java.lang.String sku,
150: java.lang.String name, java.lang.String description,
151: java.lang.String properties,
152: java.lang.String fieldsQuantities,
153: boolean requiresShipping, int stockQuantity,
154: boolean featured, java.lang.Boolean sale,
155: boolean smallImage, java.lang.String smallImageURL,
156: java.io.File smallFile, boolean mediumImage,
157: java.lang.String mediumImageURL, java.io.File mediumFile,
158: boolean largeImage, java.lang.String largeImageURL,
159: java.io.File largeFile, java.util.List itemFields,
160: java.util.List itemPrices, boolean addCommunityPermissions,
161: 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,
169: java.lang.String fieldsQuantities,
170: boolean requiresShipping, int stockQuantity,
171: boolean featured, java.lang.Boolean sale,
172: boolean smallImage, java.lang.String smallImageURL,
173: java.io.File smallFile, boolean mediumImage,
174: java.lang.String mediumImageURL, java.io.File mediumFile,
175: boolean largeImage, java.lang.String largeImageURL,
176: java.io.File largeFile, java.util.List itemFields,
177: java.util.List itemPrices,
178: java.lang.String[] communityPermissions,
179: java.lang.String[] guestPermissions)
180: throws com.liferay.portal.SystemException,
181: com.liferay.portal.PortalException;
182:
183: public com.liferay.portlet.shopping.model.ShoppingItem addItem(
184: long userId, long categoryId, java.lang.String sku,
185: java.lang.String name, java.lang.String description,
186: java.lang.String properties,
187: java.lang.String fieldsQuantities,
188: boolean requiresShipping, int stockQuantity,
189: boolean featured, java.lang.Boolean sale,
190: boolean smallImage, java.lang.String smallImageURL,
191: java.io.File smallFile, boolean mediumImage,
192: java.lang.String mediumImageURL, java.io.File mediumFile,
193: boolean largeImage, java.lang.String largeImageURL,
194: java.io.File largeFile, java.util.List itemFields,
195: java.util.List itemPrices,
196: java.lang.Boolean addCommunityPermissions,
197: java.lang.Boolean addGuestPermissions,
198: java.lang.String[] communityPermissions,
199: java.lang.String[] guestPermissions)
200: throws com.liferay.portal.SystemException,
201: com.liferay.portal.PortalException;
202:
203: public void addItemResources(long itemId,
204: boolean addCommunityPermissions, boolean addGuestPermissions)
205: throws com.liferay.portal.SystemException,
206: com.liferay.portal.PortalException;
207:
208: public void addItemResources(
209: com.liferay.portlet.shopping.model.ShoppingCategory category,
210: com.liferay.portlet.shopping.model.ShoppingItem item,
211: boolean addCommunityPermissions, boolean addGuestPermissions)
212: throws com.liferay.portal.SystemException,
213: com.liferay.portal.PortalException;
214:
215: public void addItemResources(long itemId,
216: java.lang.String[] communityPermissions,
217: java.lang.String[] guestPermissions)
218: throws com.liferay.portal.SystemException,
219: com.liferay.portal.PortalException;
220:
221: public void addItemResources(
222: com.liferay.portlet.shopping.model.ShoppingCategory category,
223: com.liferay.portlet.shopping.model.ShoppingItem item,
224: java.lang.String[] communityPermissions,
225: java.lang.String[] guestPermissions)
226: throws com.liferay.portal.SystemException,
227: com.liferay.portal.PortalException;
228:
229: public void deleteItem(long itemId)
230: throws com.liferay.portal.SystemException,
231: com.liferay.portal.PortalException;
232:
233: public void deleteItem(
234: com.liferay.portlet.shopping.model.ShoppingItem item)
235: throws com.liferay.portal.SystemException,
236: com.liferay.portal.PortalException;
237:
238: public void deleteItems(long categoryId)
239: throws com.liferay.portal.SystemException,
240: com.liferay.portal.PortalException;
241:
242: public int getCategoriesItemsCount(java.util.List categoryIds)
243: throws com.liferay.portal.SystemException;
244:
245: public java.util.List getFeaturedItems(long groupId,
246: long categoryId, int numOfItems)
247: throws com.liferay.portal.SystemException;
248:
249: public com.liferay.portlet.shopping.model.ShoppingItem getItem(
250: long itemId) throws com.liferay.portal.SystemException,
251: com.liferay.portal.PortalException;
252:
253: public com.liferay.portlet.shopping.model.ShoppingItem getItem(
254: long companyId, java.lang.String sku)
255: throws com.liferay.portal.SystemException,
256: com.liferay.portal.PortalException;
257:
258: public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
259: long largeImageId)
260: throws com.liferay.portal.SystemException,
261: com.liferay.portal.PortalException;
262:
263: public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
264: long mediumImageId)
265: throws com.liferay.portal.SystemException,
266: com.liferay.portal.PortalException;
267:
268: public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
269: long smallImageId)
270: throws com.liferay.portal.SystemException,
271: com.liferay.portal.PortalException;
272:
273: public java.util.List getItems(long categoryId)
274: throws com.liferay.portal.SystemException;
275:
276: public java.util.List getItems(long categoryId, int begin, int end,
277: com.liferay.portal.kernel.util.OrderByComparator obc)
278: throws com.liferay.portal.SystemException;
279:
280: public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
281: long itemId,
282: com.liferay.portal.kernel.util.OrderByComparator obc)
283: throws com.liferay.portal.SystemException,
284: com.liferay.portal.PortalException;
285:
286: public int getItemsCount(long categoryId)
287: throws com.liferay.portal.SystemException;
288:
289: public java.util.List getSaleItems(long groupId, long categoryId,
290: int numOfItems) throws com.liferay.portal.SystemException;
291:
292: public java.util.List search(long groupId, long[] categoryIds,
293: java.lang.String keywords, int begin, int end)
294: throws com.liferay.portal.SystemException;
295:
296: public int searchCount(long groupId, long[] categoryIds,
297: java.lang.String keywords)
298: throws com.liferay.portal.SystemException;
299:
300: public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
301: long userId, long itemId, long categoryId,
302: java.lang.String sku, java.lang.String name,
303: java.lang.String description, java.lang.String properties,
304: java.lang.String fieldsQuantities,
305: boolean requiresShipping, int stockQuantity,
306: boolean featured, java.lang.Boolean sale,
307: boolean smallImage, java.lang.String smallImageURL,
308: java.io.File smallFile, boolean mediumImage,
309: java.lang.String mediumImageURL, java.io.File mediumFile,
310: boolean largeImage, java.lang.String largeImageURL,
311: java.io.File largeFile, java.util.List itemFields,
312: java.util.List itemPrices)
313: throws com.liferay.portal.SystemException,
314: com.liferay.portal.PortalException;
315: }
|