001    /**
002     * Copyright (c) 2000-2013 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.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for ShoppingItem. This utility wraps
024     * {@link com.liferay.portlet.shopping.service.impl.ShoppingItemServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see ShoppingItemService
032     * @see com.liferay.portlet.shopping.service.base.ShoppingItemServiceBaseImpl
033     * @see com.liferay.portlet.shopping.service.impl.ShoppingItemServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class ShoppingItemServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.shopping.service.impl.ShoppingItemServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            public static void addBookItems(long groupId, long categoryId,
063                    java.lang.String[] isbns)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    getService().addBookItems(groupId, categoryId, isbns);
067            }
068    
069            public static com.liferay.portlet.shopping.model.ShoppingItem addItem(
070                    long groupId, long categoryId, java.lang.String sku,
071                    java.lang.String name, java.lang.String description,
072                    java.lang.String properties, java.lang.String fieldsQuantities,
073                    boolean requiresShipping, int stockQuantity, boolean featured,
074                    java.lang.Boolean sale, boolean smallImage,
075                    java.lang.String smallImageURL, java.io.File smallFile,
076                    boolean mediumImage, java.lang.String mediumImageURL,
077                    java.io.File mediumFile, boolean largeImage,
078                    java.lang.String largeImageURL, java.io.File largeFile,
079                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
080                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
081                    com.liferay.portal.service.ServiceContext serviceContext)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return getService()
085                                       .addItem(groupId, categoryId, sku, name, description,
086                            properties, fieldsQuantities, requiresShipping, stockQuantity,
087                            featured, sale, smallImage, smallImageURL, smallFile, mediumImage,
088                            mediumImageURL, mediumFile, largeImage, largeImageURL, largeFile,
089                            itemFields, itemPrices, serviceContext);
090            }
091    
092            public static void deleteItem(long itemId)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    getService().deleteItem(itemId);
096            }
097    
098            public static int getCategoriesItemsCount(long groupId,
099                    java.util.List<java.lang.Long> categoryIds)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().getCategoriesItemsCount(groupId, categoryIds);
102            }
103    
104            public static com.liferay.portlet.shopping.model.ShoppingItem getItem(
105                    long itemId)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getItem(itemId);
109            }
110    
111            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
112                    long groupId, long categoryId)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().getItems(groupId, categoryId);
115            }
116    
117            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
118                    long groupId, long categoryId, int start, int end,
119                    com.liferay.portal.kernel.util.OrderByComparator obc)
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().getItems(groupId, categoryId, start, end, obc);
122            }
123    
124            public static int getItemsCount(long groupId, long categoryId)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return getService().getItemsCount(groupId, categoryId);
127            }
128    
129            public static com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
130                    long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException {
133                    return getService().getItemsPrevAndNext(itemId, obc);
134            }
135    
136            public static com.liferay.portlet.shopping.model.ShoppingItem updateItem(
137                    long itemId, long groupId, long categoryId, java.lang.String sku,
138                    java.lang.String name, java.lang.String description,
139                    java.lang.String properties, java.lang.String fieldsQuantities,
140                    boolean requiresShipping, int stockQuantity, boolean featured,
141                    java.lang.Boolean sale, boolean smallImage,
142                    java.lang.String smallImageURL, java.io.File smallFile,
143                    boolean mediumImage, java.lang.String mediumImageURL,
144                    java.io.File mediumFile, boolean largeImage,
145                    java.lang.String largeImageURL, java.io.File largeFile,
146                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
147                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
148                    com.liferay.portal.service.ServiceContext serviceContext)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    return getService()
152                                       .updateItem(itemId, groupId, categoryId, sku, name,
153                            description, properties, fieldsQuantities, requiresShipping,
154                            stockQuantity, featured, sale, smallImage, smallImageURL,
155                            smallFile, mediumImage, mediumImageURL, mediumFile, largeImage,
156                            largeImageURL, largeFile, itemFields, itemPrices, serviceContext);
157            }
158    
159            public static ShoppingItemService getService() {
160                    if (_service == null) {
161                            _service = (ShoppingItemService)PortalBeanLocatorUtil.locate(ShoppingItemService.class.getName());
162    
163                            ReferenceRegistry.registerReference(ShoppingItemServiceUtil.class,
164                                    "_service");
165                    }
166    
167                    return _service;
168            }
169    
170            /**
171             * @deprecated As of 6.2.0
172             */
173            public void setService(ShoppingItemService service) {
174            }
175    
176            private static ShoppingItemService _service;
177    }