1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.shopping.service;
24  
25  
26  /**
27   * <a href="ShoppingItemServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link ShoppingItemService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       ShoppingItemService
40   * @generated
41   */
42  public class ShoppingItemServiceWrapper implements ShoppingItemService {
43      public ShoppingItemServiceWrapper(ShoppingItemService shoppingItemService) {
44          _shoppingItemService = shoppingItemService;
45      }
46  
47      public void addBookItems(long categoryId, java.lang.String[] isbns)
48          throws com.liferay.portal.PortalException,
49              com.liferay.portal.SystemException {
50          _shoppingItemService.addBookItems(categoryId, isbns);
51      }
52  
53      public com.liferay.portlet.shopping.model.ShoppingItem addItem(
54          long categoryId, java.lang.String sku, java.lang.String name,
55          java.lang.String description, java.lang.String properties,
56          java.lang.String fieldsQuantities, boolean requiresShipping,
57          int stockQuantity, boolean featured, java.lang.Boolean sale,
58          boolean smallImage, java.lang.String smallImageURL,
59          java.io.File smallFile, boolean mediumImage,
60          java.lang.String mediumImageURL, java.io.File mediumFile,
61          boolean largeImage, java.lang.String largeImageURL,
62          java.io.File largeFile,
63          java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
64          java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
65          com.liferay.portal.service.ServiceContext serviceContext)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException {
68          return _shoppingItemService.addItem(categoryId, sku, name, description,
69              properties, fieldsQuantities, requiresShipping, stockQuantity,
70              featured, sale, smallImage, smallImageURL, smallFile, mediumImage,
71              mediumImageURL, mediumFile, largeImage, largeImageURL, largeFile,
72              itemFields, itemPrices, serviceContext);
73      }
74  
75      public void deleteItem(long itemId)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException {
78          _shoppingItemService.deleteItem(itemId);
79      }
80  
81      public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException {
84          return _shoppingItemService.getItem(itemId);
85      }
86  
87      public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
88          long itemId, long categoryId, java.lang.String sku,
89          java.lang.String name, java.lang.String description,
90          java.lang.String properties, java.lang.String fieldsQuantities,
91          boolean requiresShipping, int stockQuantity, boolean featured,
92          java.lang.Boolean sale, boolean smallImage,
93          java.lang.String smallImageURL, java.io.File smallFile,
94          boolean mediumImage, java.lang.String mediumImageURL,
95          java.io.File mediumFile, boolean largeImage,
96          java.lang.String largeImageURL, java.io.File largeFile,
97          java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
98          java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
99          com.liferay.portal.service.ServiceContext serviceContext)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException {
102         return _shoppingItemService.updateItem(itemId, categoryId, sku, name,
103             description, properties, fieldsQuantities, requiresShipping,
104             stockQuantity, featured, sale, smallImage, smallImageURL,
105             smallFile, mediumImage, mediumImageURL, mediumFile, largeImage,
106             largeImageURL, largeFile, itemFields, itemPrices, serviceContext);
107     }
108 
109     public ShoppingItemService getWrappedShoppingItemService() {
110         return _shoppingItemService;
111     }
112 
113     private ShoppingItemService _shoppingItemService;
114 }