1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.shopping.service;
16  
17  
18  /**
19   * <a href="ShoppingCategoryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link ShoppingCategoryLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       ShoppingCategoryLocalService
32   * @generated
33   */
34  public class ShoppingCategoryLocalServiceWrapper
35      implements ShoppingCategoryLocalService {
36      public ShoppingCategoryLocalServiceWrapper(
37          ShoppingCategoryLocalService shoppingCategoryLocalService) {
38          _shoppingCategoryLocalService = shoppingCategoryLocalService;
39      }
40  
41      public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
42          com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
43          throws com.liferay.portal.SystemException {
44          return _shoppingCategoryLocalService.addShoppingCategory(shoppingCategory);
45      }
46  
47      public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
48          long categoryId) {
49          return _shoppingCategoryLocalService.createShoppingCategory(categoryId);
50      }
51  
52      public void deleteShoppingCategory(long categoryId)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException {
55          _shoppingCategoryLocalService.deleteShoppingCategory(categoryId);
56      }
57  
58      public void deleteShoppingCategory(
59          com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
60          throws com.liferay.portal.SystemException {
61          _shoppingCategoryLocalService.deleteShoppingCategory(shoppingCategory);
62      }
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException {
73          return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
74              end);
75      }
76  
77      public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
78          long categoryId)
79          throws com.liferay.portal.PortalException,
80              com.liferay.portal.SystemException {
81          return _shoppingCategoryLocalService.getShoppingCategory(categoryId);
82      }
83  
84      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
85          int start, int end) throws com.liferay.portal.SystemException {
86          return _shoppingCategoryLocalService.getShoppingCategories(start, end);
87      }
88  
89      public int getShoppingCategoriesCount()
90          throws com.liferay.portal.SystemException {
91          return _shoppingCategoryLocalService.getShoppingCategoriesCount();
92      }
93  
94      public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
95          com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
96          throws com.liferay.portal.SystemException {
97          return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory);
98      }
99  
100     public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
101         com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
102         boolean merge) throws com.liferay.portal.SystemException {
103         return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory,
104             merge);
105     }
106 
107     public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
108         long userId, long plid, long parentCategoryId, java.lang.String name,
109         java.lang.String description, boolean addCommunityPermissions,
110         boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return _shoppingCategoryLocalService.addCategory(userId, plid,
114             parentCategoryId, name, description, addCommunityPermissions,
115             addGuestPermissions);
116     }
117 
118     public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
119         long userId, long plid, long parentCategoryId, java.lang.String name,
120         java.lang.String description,
121         java.lang.Boolean addCommunityPermissions,
122         java.lang.Boolean addGuestPermissions,
123         java.lang.String[] communityPermissions,
124         java.lang.String[] guestPermissions)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return _shoppingCategoryLocalService.addCategory(userId, plid,
128             parentCategoryId, name, description, addCommunityPermissions,
129             addGuestPermissions, communityPermissions, guestPermissions);
130     }
131 
132     public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
133         long userId, long plid, long parentCategoryId, java.lang.String name,
134         java.lang.String description, java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         return _shoppingCategoryLocalService.addCategory(userId, plid,
139             parentCategoryId, name, description, communityPermissions,
140             guestPermissions);
141     }
142 
143     public void addCategoryResources(long categoryId,
144         boolean addCommunityPermissions, boolean addGuestPermissions)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         _shoppingCategoryLocalService.addCategoryResources(categoryId,
148             addCommunityPermissions, addGuestPermissions);
149     }
150 
151     public void addCategoryResources(long categoryId,
152         java.lang.String[] communityPermissions,
153         java.lang.String[] guestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         _shoppingCategoryLocalService.addCategoryResources(categoryId,
157             communityPermissions, guestPermissions);
158     }
159 
160     public void addCategoryResources(
161         com.liferay.portlet.shopping.model.ShoppingCategory category,
162         boolean addCommunityPermissions, boolean addGuestPermissions)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         _shoppingCategoryLocalService.addCategoryResources(category,
166             addCommunityPermissions, addGuestPermissions);
167     }
168 
169     public void addCategoryResources(
170         com.liferay.portlet.shopping.model.ShoppingCategory category,
171         java.lang.String[] communityPermissions,
172         java.lang.String[] guestPermissions)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         _shoppingCategoryLocalService.addCategoryResources(category,
176             communityPermissions, guestPermissions);
177     }
178 
179     public void deleteCategories(long groupId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         _shoppingCategoryLocalService.deleteCategories(groupId);
183     }
184 
185     public void deleteCategory(long categoryId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException {
188         _shoppingCategoryLocalService.deleteCategory(categoryId);
189     }
190 
191     public void deleteCategory(
192         com.liferay.portlet.shopping.model.ShoppingCategory category)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         _shoppingCategoryLocalService.deleteCategory(category);
196     }
197 
198     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
199         long groupId) throws com.liferay.portal.SystemException {
200         return _shoppingCategoryLocalService.getCategories(groupId);
201     }
202 
203     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
204         long groupId, long parentCategoryId, int start, int end)
205         throws com.liferay.portal.SystemException {
206         return _shoppingCategoryLocalService.getCategories(groupId,
207             parentCategoryId, start, end);
208     }
209 
210     public int getCategoriesCount(long groupId, long parentCategoryId)
211         throws com.liferay.portal.SystemException {
212         return _shoppingCategoryLocalService.getCategoriesCount(groupId,
213             parentCategoryId);
214     }
215 
216     public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
217         long categoryId)
218         throws com.liferay.portal.PortalException,
219             com.liferay.portal.SystemException {
220         return _shoppingCategoryLocalService.getCategory(categoryId);
221     }
222 
223     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
224         long categoryId)
225         throws com.liferay.portal.PortalException,
226             com.liferay.portal.SystemException {
227         return _shoppingCategoryLocalService.getParentCategories(categoryId);
228     }
229 
230     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
231         com.liferay.portlet.shopping.model.ShoppingCategory category)
232         throws com.liferay.portal.PortalException,
233             com.liferay.portal.SystemException {
234         return _shoppingCategoryLocalService.getParentCategories(category);
235     }
236 
237     public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
238         com.liferay.portlet.shopping.model.ShoppingCategory category)
239         throws com.liferay.portal.PortalException,
240             com.liferay.portal.SystemException {
241         return _shoppingCategoryLocalService.getParentCategory(category);
242     }
243 
244     public void getSubcategoryIds(java.util.List<Long> categoryIds,
245         long groupId, long categoryId)
246         throws com.liferay.portal.SystemException {
247         _shoppingCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
248             categoryId);
249     }
250 
251     public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
252         long categoryId, long parentCategoryId, java.lang.String name,
253         java.lang.String description, boolean mergeWithParentCategory)
254         throws com.liferay.portal.PortalException,
255             com.liferay.portal.SystemException {
256         return _shoppingCategoryLocalService.updateCategory(categoryId,
257             parentCategoryId, name, description, mergeWithParentCategory);
258     }
259 
260     public ShoppingCategoryLocalService getWrappedShoppingCategoryLocalService() {
261         return _shoppingCategoryLocalService;
262     }
263 
264     private ShoppingCategoryLocalService _shoppingCategoryLocalService;
265 }