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