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.messageboards.service;
24  
25  
26  /**
27   * <a href="MBCategoryLocalServiceUtil.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 MBCategoryLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       MBCategoryLocalService
40   * @generated
41   */
42  public class MBCategoryLocalServiceWrapper implements MBCategoryLocalService {
43      public MBCategoryLocalServiceWrapper(
44          MBCategoryLocalService mbCategoryLocalService) {
45          _mbCategoryLocalService = mbCategoryLocalService;
46      }
47  
48      public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
49          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
50          throws com.liferay.portal.SystemException {
51          return _mbCategoryLocalService.addMBCategory(mbCategory);
52      }
53  
54      public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
55          long categoryId) {
56          return _mbCategoryLocalService.createMBCategory(categoryId);
57      }
58  
59      public void deleteMBCategory(long categoryId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          _mbCategoryLocalService.deleteMBCategory(categoryId);
63      }
64  
65      public void deleteMBCategory(
66          com.liferay.portlet.messageboards.model.MBCategory mbCategory)
67          throws com.liferay.portal.SystemException {
68          _mbCategoryLocalService.deleteMBCategory(mbCategory);
69      }
70  
71      public java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return _mbCategoryLocalService.dynamicQuery(dynamicQuery);
75      }
76  
77      public java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
84          long categoryId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return _mbCategoryLocalService.getMBCategory(categoryId);
88      }
89  
90      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return _mbCategoryLocalService.getMBCategories(start, end);
93      }
94  
95      public int getMBCategoriesCount() throws com.liferay.portal.SystemException {
96          return _mbCategoryLocalService.getMBCategoriesCount();
97      }
98  
99      public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
100         com.liferay.portlet.messageboards.model.MBCategory mbCategory)
101         throws com.liferay.portal.SystemException {
102         return _mbCategoryLocalService.updateMBCategory(mbCategory);
103     }
104 
105     public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
106         com.liferay.portlet.messageboards.model.MBCategory mbCategory,
107         boolean merge) throws com.liferay.portal.SystemException {
108         return _mbCategoryLocalService.updateMBCategory(mbCategory, merge);
109     }
110 
111     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
112         long userId, long parentCategoryId, java.lang.String name,
113         java.lang.String description, java.lang.String emailAddress,
114         java.lang.String inProtocol, java.lang.String inServerName,
115         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
116         java.lang.String inPassword, int inReadInterval,
117         java.lang.String outEmailAddress, boolean outCustom,
118         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
119         java.lang.String outUserName, java.lang.String outPassword,
120         boolean mailingListActive,
121         com.liferay.portal.service.ServiceContext serviceContext)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
125             name, description, emailAddress, inProtocol, inServerName,
126             inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
127             outEmailAddress, outCustom, outServerName, outServerPort,
128             outUseSSL, outUserName, outPassword, mailingListActive,
129             serviceContext);
130     }
131 
132     public com.liferay.portlet.messageboards.model.MBCategory addCategory(
133         java.lang.String uuid, long userId, long parentCategoryId,
134         java.lang.String name, java.lang.String description,
135         java.lang.String emailAddress, java.lang.String inProtocol,
136         java.lang.String inServerName, int inServerPort, boolean inUseSSL,
137         java.lang.String inUserName, java.lang.String inPassword,
138         int inReadInterval, java.lang.String outEmailAddress,
139         boolean outCustom, java.lang.String outServerName, int outServerPort,
140         boolean outUseSSL, java.lang.String outUserName,
141         java.lang.String outPassword, boolean mailingListActive,
142         com.liferay.portal.service.ServiceContext serviceContext)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException {
145         return _mbCategoryLocalService.addCategory(uuid, userId,
146             parentCategoryId, name, description, emailAddress, inProtocol,
147             inServerName, inServerPort, inUseSSL, inUserName, inPassword,
148             inReadInterval, outEmailAddress, outCustom, outServerName,
149             outServerPort, outUseSSL, outUserName, outPassword,
150             mailingListActive, serviceContext);
151     }
152 
153     public void addCategoryResources(long categoryId,
154         boolean addCommunityPermissions, boolean addGuestPermissions)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         _mbCategoryLocalService.addCategoryResources(categoryId,
158             addCommunityPermissions, addGuestPermissions);
159     }
160 
161     public void addCategoryResources(long categoryId,
162         java.lang.String[] communityPermissions,
163         java.lang.String[] guestPermissions)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         _mbCategoryLocalService.addCategoryResources(categoryId,
167             communityPermissions, guestPermissions);
168     }
169 
170     public void addCategoryResources(
171         com.liferay.portlet.messageboards.model.MBCategory category,
172         boolean addCommunityPermissions, boolean addGuestPermissions)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         _mbCategoryLocalService.addCategoryResources(category,
176             addCommunityPermissions, addGuestPermissions);
177     }
178 
179     public void addCategoryResources(
180         com.liferay.portlet.messageboards.model.MBCategory category,
181         java.lang.String[] communityPermissions,
182         java.lang.String[] guestPermissions)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException {
185         _mbCategoryLocalService.addCategoryResources(category,
186             communityPermissions, guestPermissions);
187     }
188 
189     public void deleteCategories(long groupId)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException {
192         _mbCategoryLocalService.deleteCategories(groupId);
193     }
194 
195     public void deleteCategory(long categoryId)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException {
198         _mbCategoryLocalService.deleteCategory(categoryId);
199     }
200 
201     public void deleteCategory(
202         com.liferay.portlet.messageboards.model.MBCategory category)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException {
205         _mbCategoryLocalService.deleteCategory(category);
206     }
207 
208     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
209         long groupId) throws com.liferay.portal.SystemException {
210         return _mbCategoryLocalService.getCategories(groupId);
211     }
212 
213     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
214         long groupId, long parentCategoryId)
215         throws com.liferay.portal.SystemException {
216         return _mbCategoryLocalService.getCategories(groupId, parentCategoryId);
217     }
218 
219     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
220         long groupId, long parentCategoryId, int start, int end)
221         throws com.liferay.portal.SystemException {
222         return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
223             start, end);
224     }
225 
226     public int getCategoriesCount(long groupId)
227         throws com.liferay.portal.SystemException {
228         return _mbCategoryLocalService.getCategoriesCount(groupId);
229     }
230 
231     public int getCategoriesCount(long groupId, long parentCategoryId)
232         throws com.liferay.portal.SystemException {
233         return _mbCategoryLocalService.getCategoriesCount(groupId,
234             parentCategoryId);
235     }
236 
237     public com.liferay.portlet.messageboards.model.MBCategory getCategory(
238         long categoryId)
239         throws com.liferay.portal.PortalException,
240             com.liferay.portal.SystemException {
241         return _mbCategoryLocalService.getCategory(categoryId);
242     }
243 
244     public void getSubcategoryIds(java.util.List<Long> categoryIds,
245         long groupId, long categoryId)
246         throws com.liferay.portal.SystemException {
247         _mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
248             categoryId);
249     }
250 
251     public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
252         long groupId, long userId, int start, int end)
253         throws com.liferay.portal.SystemException {
254         return _mbCategoryLocalService.getSubscribedCategories(groupId, userId,
255             start, end);
256     }
257 
258     public int getSubscribedCategoriesCount(long groupId, long userId)
259         throws com.liferay.portal.SystemException {
260         return _mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
261             userId);
262     }
263 
264     public com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
265         throws com.liferay.portal.SystemException {
266         return _mbCategoryLocalService.getSystemCategory();
267     }
268 
269     public void reIndex(java.lang.String[] ids)
270         throws com.liferay.portal.SystemException {
271         _mbCategoryLocalService.reIndex(ids);
272     }
273 
274     public com.liferay.portal.kernel.search.Hits search(long companyId,
275         long groupId, long userId, long[] categoryIds, long threadId,
276         java.lang.String keywords, int start, int end)
277         throws com.liferay.portal.SystemException {
278         return _mbCategoryLocalService.search(companyId, groupId, userId,
279             categoryIds, threadId, keywords, start, end);
280     }
281 
282     public void subscribeCategory(long userId, long categoryId)
283         throws com.liferay.portal.PortalException,
284             com.liferay.portal.SystemException {
285         _mbCategoryLocalService.subscribeCategory(userId, categoryId);
286     }
287 
288     public void unsubscribeCategory(long userId, long categoryId)
289         throws com.liferay.portal.PortalException,
290             com.liferay.portal.SystemException {
291         _mbCategoryLocalService.unsubscribeCategory(userId, categoryId);
292     }
293 
294     public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
295         long categoryId, long parentCategoryId, java.lang.String name,
296         java.lang.String description, java.lang.String emailAddress,
297         java.lang.String inProtocol, java.lang.String inServerName,
298         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
299         java.lang.String inPassword, int inReadInterval,
300         java.lang.String outEmailAddress, boolean outCustom,
301         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
302         java.lang.String outUserName, java.lang.String outPassword,
303         boolean mailingListActive, boolean mergeWithParentCategory)
304         throws com.liferay.portal.PortalException,
305             com.liferay.portal.SystemException {
306         return _mbCategoryLocalService.updateCategory(categoryId,
307             parentCategoryId, name, description, emailAddress, inProtocol,
308             inServerName, inServerPort, inUseSSL, inUserName, inPassword,
309             inReadInterval, outEmailAddress, outCustom, outServerName,
310             outServerPort, outUseSSL, outUserName, outPassword,
311             mailingListActive, mergeWithParentCategory);
312     }
313 
314     public MBCategoryLocalService getWrappedMBCategoryLocalService() {
315         return _mbCategoryLocalService;
316     }
317 
318     private MBCategoryLocalService _mbCategoryLocalService;
319 }