001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.security.ac.AccessControlled;
026    import com.liferay.portal.service.BaseService;
027    
028    /**
029     * Provides the remote service interface for ShoppingItem. Methods of this
030     * service are expected to have security checks based on the propagated JAAS
031     * credentials because this service can be accessed remotely.
032     *
033     * @author Brian Wing Shun Chan
034     * @see ShoppingItemServiceUtil
035     * @see com.liferay.portlet.shopping.service.base.ShoppingItemServiceBaseImpl
036     * @see com.liferay.portlet.shopping.service.impl.ShoppingItemServiceImpl
037     * @generated
038     */
039    @AccessControlled
040    @JSONWebService
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface ShoppingItemService extends BaseService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * 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.
049             */
050            public com.liferay.portlet.shopping.model.ShoppingItem addItem(
051                    long groupId, long categoryId, java.lang.String sku,
052                    java.lang.String name, java.lang.String description,
053                    java.lang.String properties, java.lang.String fieldsQuantities,
054                    boolean requiresShipping, int stockQuantity, boolean featured,
055                    java.lang.Boolean sale, boolean smallImage,
056                    java.lang.String smallImageURL, java.io.File smallFile,
057                    boolean mediumImage, java.lang.String mediumImageURL,
058                    java.io.File mediumFile, boolean largeImage,
059                    java.lang.String largeImageURL, java.io.File largeFile,
060                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
061                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException;
064    
065            public void deleteItem(long itemId)
066                    throws com.liferay.portal.kernel.exception.PortalException;
067    
068            /**
069            * Returns the Spring bean ID for this bean.
070            *
071            * @return the Spring bean ID for this bean
072            */
073            public java.lang.String getBeanIdentifier();
074    
075            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076            public int getCategoriesItemsCount(long groupId,
077                    java.util.List<java.lang.Long> categoryIds);
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
081                    throws com.liferay.portal.kernel.exception.PortalException;
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
085                    long groupId, long categoryId);
086    
087            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
089                    long groupId, long categoryId, int start, int end,
090                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> obc);
091    
092            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093            public int getItemsCount(long groupId, long categoryId);
094    
095            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096            public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
097                    long itemId,
098                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> obc)
099                    throws com.liferay.portal.kernel.exception.PortalException;
100    
101            /**
102            * Sets the Spring bean ID for this bean.
103            *
104            * @param beanIdentifier the Spring bean ID for this bean
105            */
106            public void setBeanIdentifier(java.lang.String beanIdentifier);
107    
108            public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
109                    long itemId, long groupId, long categoryId, java.lang.String sku,
110                    java.lang.String name, java.lang.String description,
111                    java.lang.String properties, java.lang.String fieldsQuantities,
112                    boolean requiresShipping, int stockQuantity, boolean featured,
113                    java.lang.Boolean sale, boolean smallImage,
114                    java.lang.String smallImageURL, java.io.File smallFile,
115                    boolean mediumImage, java.lang.String mediumImageURL,
116                    java.io.File mediumFile, boolean largeImage,
117                    java.lang.String largeImageURL, java.io.File largeFile,
118                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
119                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
120                    com.liferay.portal.service.ServiceContext serviceContext)
121                    throws com.liferay.portal.kernel.exception.PortalException;
122    }