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="ShoppingItemService.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.ShoppingItemServiceImpl</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 remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.shopping.service.ShoppingItemServiceFactory
045: * @see com.liferay.portlet.shopping.service.ShoppingItemServiceUtil
046: *
047: */
048: public interface ShoppingItemService {
049: public void addBookItems(long categoryId, java.lang.String[] isbns)
050: throws java.rmi.RemoteException,
051: com.liferay.portal.SystemException,
052: com.liferay.portal.PortalException;
053:
054: public com.liferay.portlet.shopping.model.ShoppingItem addItem(
055: long categoryId, java.lang.String sku,
056: java.lang.String name, java.lang.String description,
057: java.lang.String properties,
058: java.lang.String fieldsQuantities,
059: boolean requiresShipping, int stockQuantity,
060: boolean featured, java.lang.Boolean sale,
061: boolean smallImage, java.lang.String smallImageURL,
062: java.io.File smallFile, boolean mediumImage,
063: java.lang.String mediumImageURL, java.io.File mediumFile,
064: boolean largeImage, java.lang.String largeImageURL,
065: java.io.File largeFile, java.util.List itemFields,
066: java.util.List itemPrices, boolean addCommunityPermissions,
067: boolean addGuestPermissions)
068: throws java.rmi.RemoteException,
069: com.liferay.portal.SystemException,
070: com.liferay.portal.PortalException;
071:
072: public com.liferay.portlet.shopping.model.ShoppingItem addItem(
073: long categoryId, java.lang.String sku,
074: java.lang.String name, java.lang.String description,
075: java.lang.String properties,
076: java.lang.String fieldsQuantities,
077: boolean requiresShipping, int stockQuantity,
078: boolean featured, java.lang.Boolean sale,
079: boolean smallImage, java.lang.String smallImageURL,
080: java.io.File smallFile, boolean mediumImage,
081: java.lang.String mediumImageURL, java.io.File mediumFile,
082: boolean largeImage, java.lang.String largeImageURL,
083: java.io.File largeFile, java.util.List itemFields,
084: java.util.List itemPrices,
085: java.lang.String[] communityPermissions,
086: java.lang.String[] guestPermissions)
087: throws java.rmi.RemoteException,
088: com.liferay.portal.SystemException,
089: com.liferay.portal.PortalException;
090:
091: public void deleteItem(long itemId)
092: throws java.rmi.RemoteException,
093: com.liferay.portal.SystemException,
094: com.liferay.portal.PortalException;
095:
096: public com.liferay.portlet.shopping.model.ShoppingItem getItem(
097: long itemId) throws java.rmi.RemoteException,
098: com.liferay.portal.SystemException,
099: com.liferay.portal.PortalException;
100:
101: public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
102: long itemId, long categoryId, java.lang.String sku,
103: java.lang.String name, java.lang.String description,
104: java.lang.String properties,
105: java.lang.String fieldsQuantities,
106: boolean requiresShipping, int stockQuantity,
107: boolean featured, java.lang.Boolean sale,
108: boolean smallImage, java.lang.String smallImageURL,
109: java.io.File smallFile, boolean mediumImage,
110: java.lang.String mediumImageURL, java.io.File mediumFile,
111: boolean largeImage, java.lang.String largeImageURL,
112: java.io.File largeFile, java.util.List itemFields,
113: java.util.List itemPrices) throws java.rmi.RemoteException,
114: com.liferay.portal.SystemException,
115: com.liferay.portal.PortalException;
116: }
|