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.kernel.exception.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.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException {
55          _shoppingCategoryLocalService.deleteShoppingCategory(categoryId);
56      }
57  
58      public void deleteShoppingCategory(
59          com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
60          throws com.liferay.portal.kernel.exception.SystemException {
61          _shoppingCategoryLocalService.deleteShoppingCategory(shoppingCategory);
62      }
63  
64      @SuppressWarnings("unchecked")
65      public java.util.List dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException {
68          return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery);
69      }
70  
71      @SuppressWarnings("unchecked")
72      public java.util.List dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.kernel.exception.SystemException {
75          return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
76              end);
77      }
78  
79      @SuppressWarnings("unchecked")
80      public java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
86              end, orderByComparator);
87      }
88  
89      public long dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.kernel.exception.SystemException {
92          return _shoppingCategoryLocalService.dynamicQueryCount(dynamicQuery);
93      }
94  
95      public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
96          long categoryId)
97          throws com.liferay.portal.kernel.exception.PortalException,
98              com.liferay.portal.kernel.exception.SystemException {
99          return _shoppingCategoryLocalService.getShoppingCategory(categoryId);
100     }
101 
102     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
103         int start, int end)
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return _shoppingCategoryLocalService.getShoppingCategories(start, end);
106     }
107 
108     public int getShoppingCategoriesCount()
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return _shoppingCategoryLocalService.getShoppingCategoriesCount();
111     }
112 
113     public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
114         com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
115         throws com.liferay.portal.kernel.exception.SystemException {
116         return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory);
117     }
118 
119     public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
120         com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
121         boolean merge)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory,
124             merge);
125     }
126 
127     public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
128         long userId, long parentCategoryId, java.lang.String name,
129         java.lang.String description,
130         com.liferay.portal.service.ServiceContext serviceContext)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         return _shoppingCategoryLocalService.addCategory(userId,
134             parentCategoryId, name, description, serviceContext);
135     }
136 
137     public void addCategoryResources(long categoryId,
138         boolean addCommunityPermissions, boolean addGuestPermissions)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException {
141         _shoppingCategoryLocalService.addCategoryResources(categoryId,
142             addCommunityPermissions, addGuestPermissions);
143     }
144 
145     public void addCategoryResources(long categoryId,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException {
150         _shoppingCategoryLocalService.addCategoryResources(categoryId,
151             communityPermissions, guestPermissions);
152     }
153 
154     public void addCategoryResources(
155         com.liferay.portlet.shopping.model.ShoppingCategory category,
156         boolean addCommunityPermissions, boolean addGuestPermissions)
157         throws com.liferay.portal.kernel.exception.PortalException,
158             com.liferay.portal.kernel.exception.SystemException {
159         _shoppingCategoryLocalService.addCategoryResources(category,
160             addCommunityPermissions, addGuestPermissions);
161     }
162 
163     public void addCategoryResources(
164         com.liferay.portlet.shopping.model.ShoppingCategory category,
165         java.lang.String[] communityPermissions,
166         java.lang.String[] guestPermissions)
167         throws com.liferay.portal.kernel.exception.PortalException,
168             com.liferay.portal.kernel.exception.SystemException {
169         _shoppingCategoryLocalService.addCategoryResources(category,
170             communityPermissions, guestPermissions);
171     }
172 
173     public void deleteCategories(long groupId)
174         throws com.liferay.portal.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException {
176         _shoppingCategoryLocalService.deleteCategories(groupId);
177     }
178 
179     public void deleteCategory(long categoryId)
180         throws com.liferay.portal.kernel.exception.PortalException,
181             com.liferay.portal.kernel.exception.SystemException {
182         _shoppingCategoryLocalService.deleteCategory(categoryId);
183     }
184 
185     public void deleteCategory(
186         com.liferay.portlet.shopping.model.ShoppingCategory category)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException {
189         _shoppingCategoryLocalService.deleteCategory(category);
190     }
191 
192     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
193         long groupId)
194         throws com.liferay.portal.kernel.exception.SystemException {
195         return _shoppingCategoryLocalService.getCategories(groupId);
196     }
197 
198     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
199         long groupId, long parentCategoryId, int start, int end)
200         throws com.liferay.portal.kernel.exception.SystemException {
201         return _shoppingCategoryLocalService.getCategories(groupId,
202             parentCategoryId, start, end);
203     }
204 
205     public int getCategoriesCount(long groupId, long parentCategoryId)
206         throws com.liferay.portal.kernel.exception.SystemException {
207         return _shoppingCategoryLocalService.getCategoriesCount(groupId,
208             parentCategoryId);
209     }
210 
211     public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
212         long categoryId)
213         throws com.liferay.portal.kernel.exception.PortalException,
214             com.liferay.portal.kernel.exception.SystemException {
215         return _shoppingCategoryLocalService.getCategory(categoryId);
216     }
217 
218     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
219         long categoryId)
220         throws com.liferay.portal.kernel.exception.PortalException,
221             com.liferay.portal.kernel.exception.SystemException {
222         return _shoppingCategoryLocalService.getParentCategories(categoryId);
223     }
224 
225     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
226         com.liferay.portlet.shopping.model.ShoppingCategory category)
227         throws com.liferay.portal.kernel.exception.PortalException,
228             com.liferay.portal.kernel.exception.SystemException {
229         return _shoppingCategoryLocalService.getParentCategories(category);
230     }
231 
232     public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
233         com.liferay.portlet.shopping.model.ShoppingCategory category)
234         throws com.liferay.portal.kernel.exception.PortalException,
235             com.liferay.portal.kernel.exception.SystemException {
236         return _shoppingCategoryLocalService.getParentCategory(category);
237     }
238 
239     public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
240         long groupId, long categoryId)
241         throws com.liferay.portal.kernel.exception.SystemException {
242         _shoppingCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
243             categoryId);
244     }
245 
246     public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
247         long categoryId, long parentCategoryId, java.lang.String name,
248         java.lang.String description, boolean mergeWithParentCategory,
249         com.liferay.portal.service.ServiceContext serviceContext)
250         throws com.liferay.portal.kernel.exception.PortalException,
251             com.liferay.portal.kernel.exception.SystemException {
252         return _shoppingCategoryLocalService.updateCategory(categoryId,
253             parentCategoryId, name, description, mergeWithParentCategory,
254             serviceContext);
255     }
256 
257     public ShoppingCategoryLocalService getWrappedShoppingCategoryLocalService() {
258         return _shoppingCategoryLocalService;
259     }
260 
261     private ShoppingCategoryLocalService _shoppingCategoryLocalService;
262 }