001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    
024    /**
025     * The interface for the shopping item remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see ShoppingItemServiceUtil
033     * @see com.liferay.portlet.shopping.service.base.ShoppingItemServiceBaseImpl
034     * @see com.liferay.portlet.shopping.service.impl.ShoppingItemServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface ShoppingItemService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link ShoppingItemServiceUtil} to access the shopping item remote service. Add custom service methods to {@link com.liferay.portlet.shopping.service.impl.ShoppingItemServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            public void addBookItems(long groupId, long categoryId,
047                    java.lang.String[] isbns)
048                    throws com.liferay.portal.kernel.exception.PortalException,
049                            com.liferay.portal.kernel.exception.SystemException;
050    
051            public com.liferay.portlet.shopping.model.ShoppingItem addItem(
052                    long groupId, long categoryId, java.lang.String sku,
053                    java.lang.String name, java.lang.String description,
054                    java.lang.String properties, java.lang.String fieldsQuantities,
055                    boolean requiresShipping, int stockQuantity, boolean featured,
056                    java.lang.Boolean sale, boolean smallImage,
057                    java.lang.String smallImageURL, java.io.File smallFile,
058                    boolean mediumImage, java.lang.String mediumImageURL,
059                    java.io.File mediumFile, boolean largeImage,
060                    java.lang.String largeImageURL, java.io.File largeFile,
061                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
062                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public void deleteItem(long itemId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072            public int getCategoriesItemsCount(long groupId,
073                    java.util.List<java.lang.Long> categoryIds)
074                    throws com.liferay.portal.kernel.exception.SystemException;
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
083                    long groupId, long categoryId)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
088                    long groupId, long categoryId, int start, int end,
089                    com.liferay.portal.kernel.util.OrderByComparator obc)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093            public int getItemsCount(long groupId, long categoryId)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
098                    long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
103                    long itemId, long groupId, 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                    com.liferay.portal.service.ServiceContext serviceContext)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException;
117    }