001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    
018    /**
019     * <p>
020     * This class is a wrapper for {@link MBCategoryLocalService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       MBCategoryLocalService
025     * @generated
026     */
027    public class MBCategoryLocalServiceWrapper implements MBCategoryLocalService {
028            public MBCategoryLocalServiceWrapper(
029                    MBCategoryLocalService mbCategoryLocalService) {
030                    _mbCategoryLocalService = mbCategoryLocalService;
031            }
032    
033            public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
034                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return _mbCategoryLocalService.addMBCategory(mbCategory);
037            }
038    
039            public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
040                    long categoryId) {
041                    return _mbCategoryLocalService.createMBCategory(categoryId);
042            }
043    
044            public void deleteMBCategory(long categoryId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    _mbCategoryLocalService.deleteMBCategory(categoryId);
048            }
049    
050            public void deleteMBCategory(
051                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    _mbCategoryLocalService.deleteMBCategory(mbCategory);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end,
077                            orderByComparator);
078            }
079    
080            public long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _mbCategoryLocalService.dynamicQueryCount(dynamicQuery);
084            }
085    
086            public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
087                    long categoryId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _mbCategoryLocalService.getMBCategory(categoryId);
091            }
092    
093            public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return _mbCategoryLocalService.getMBCategoryByUuidAndGroupId(uuid,
098                            groupId);
099            }
100    
101            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
102                    int start, int end)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return _mbCategoryLocalService.getMBCategories(start, end);
105            }
106    
107            public int getMBCategoriesCount()
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return _mbCategoryLocalService.getMBCategoriesCount();
110            }
111    
112            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
113                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
114                    throws com.liferay.portal.kernel.exception.SystemException {
115                    return _mbCategoryLocalService.updateMBCategory(mbCategory);
116            }
117    
118            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
119                    com.liferay.portlet.messageboards.model.MBCategory mbCategory,
120                    boolean merge)
121                    throws com.liferay.portal.kernel.exception.SystemException {
122                    return _mbCategoryLocalService.updateMBCategory(mbCategory, merge);
123            }
124    
125            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
126                    long userId, long parentCategoryId, java.lang.String name,
127                    java.lang.String description, java.lang.String emailAddress,
128                    java.lang.String inProtocol, java.lang.String inServerName,
129                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
130                    java.lang.String inPassword, int inReadInterval,
131                    java.lang.String outEmailAddress, boolean outCustom,
132                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
133                    java.lang.String outUserName, java.lang.String outPassword,
134                    boolean mailingListActive,
135                    com.liferay.portal.service.ServiceContext serviceContext)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException {
138                    return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
139                            name, description, emailAddress, inProtocol, inServerName,
140                            inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
141                            outEmailAddress, outCustom, outServerName, outServerPort,
142                            outUseSSL, outUserName, outPassword, mailingListActive,
143                            serviceContext);
144            }
145    
146            public void addCategoryResources(long categoryId,
147                    boolean addCommunityPermissions, boolean addGuestPermissions)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException {
150                    _mbCategoryLocalService.addCategoryResources(categoryId,
151                            addCommunityPermissions, addGuestPermissions);
152            }
153    
154            public void addCategoryResources(long categoryId,
155                    java.lang.String[] communityPermissions,
156                    java.lang.String[] guestPermissions)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    _mbCategoryLocalService.addCategoryResources(categoryId,
160                            communityPermissions, guestPermissions);
161            }
162    
163            public void addCategoryResources(
164                    com.liferay.portlet.messageboards.model.MBCategory category,
165                    boolean addCommunityPermissions, boolean addGuestPermissions)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    _mbCategoryLocalService.addCategoryResources(category,
169                            addCommunityPermissions, addGuestPermissions);
170            }
171    
172            public void addCategoryResources(
173                    com.liferay.portlet.messageboards.model.MBCategory category,
174                    java.lang.String[] communityPermissions,
175                    java.lang.String[] guestPermissions)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    _mbCategoryLocalService.addCategoryResources(category,
179                            communityPermissions, guestPermissions);
180            }
181    
182            public void deleteCategories(long groupId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    _mbCategoryLocalService.deleteCategories(groupId);
186            }
187    
188            public void deleteCategory(long categoryId)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException {
191                    _mbCategoryLocalService.deleteCategory(categoryId);
192            }
193    
194            public void deleteCategory(
195                    com.liferay.portlet.messageboards.model.MBCategory category)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    _mbCategoryLocalService.deleteCategory(category);
199            }
200    
201            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
202                    long groupId)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _mbCategoryLocalService.getCategories(groupId);
205            }
206    
207            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
208                    long groupId, long parentCategoryId, int start, int end)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
211                            start, end);
212            }
213    
214            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
215                    long groupId, long[] parentCategoryIds, int start, int end)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _mbCategoryLocalService.getCategories(groupId,
218                            parentCategoryIds, start, end);
219            }
220    
221            public int getCategoriesCount(long groupId)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _mbCategoryLocalService.getCategoriesCount(groupId);
224            }
225    
226            public int getCategoriesCount(long groupId, long parentCategoryId)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _mbCategoryLocalService.getCategoriesCount(groupId,
229                            parentCategoryId);
230            }
231    
232            public int getCategoriesCount(long groupId, long[] parentCategoryIds)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _mbCategoryLocalService.getCategoriesCount(groupId,
235                            parentCategoryIds);
236            }
237    
238            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
239                    long categoryId)
240                    throws com.liferay.portal.kernel.exception.PortalException,
241                            com.liferay.portal.kernel.exception.SystemException {
242                    return _mbCategoryLocalService.getCategory(categoryId);
243            }
244    
245            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
246                    long companyId, int start, int end)
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    return _mbCategoryLocalService.getCompanyCategories(companyId, start,
249                            end);
250            }
251    
252            public int getCompanyCategoriesCount(long companyId)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    return _mbCategoryLocalService.getCompanyCategoriesCount(companyId);
255            }
256    
257            public java.util.List<java.lang.Long> getSubcategoryIds(
258                    java.util.List<java.lang.Long> categoryIds, long groupId,
259                    long categoryId)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
262                            categoryId);
263            }
264    
265            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
266                    long groupId, long userId, int start, int end)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return _mbCategoryLocalService.getSubscribedCategories(groupId, userId,
269                            start, end);
270            }
271    
272            public int getSubscribedCategoriesCount(long groupId, long userId)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return _mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
275                            userId);
276            }
277    
278            public void subscribeCategory(long userId, long groupId, long categoryId)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _mbCategoryLocalService.subscribeCategory(userId, groupId, categoryId);
282            }
283    
284            public void unsubscribeCategory(long userId, long groupId, long categoryId)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _mbCategoryLocalService.unsubscribeCategory(userId, groupId, categoryId);
288            }
289    
290            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
291                    long categoryId, long parentCategoryId, java.lang.String name,
292                    java.lang.String description, java.lang.String emailAddress,
293                    java.lang.String inProtocol, java.lang.String inServerName,
294                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
295                    java.lang.String inPassword, int inReadInterval,
296                    java.lang.String outEmailAddress, boolean outCustom,
297                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
298                    java.lang.String outUserName, java.lang.String outPassword,
299                    boolean mailingListActive, boolean mergeWithParentCategory,
300                    com.liferay.portal.service.ServiceContext serviceContext)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    return _mbCategoryLocalService.updateCategory(categoryId,
304                            parentCategoryId, name, description, emailAddress, inProtocol,
305                            inServerName, inServerPort, inUseSSL, inUserName, inPassword,
306                            inReadInterval, outEmailAddress, outCustom, outServerName,
307                            outServerPort, outUseSSL, outUserName, outPassword,
308                            mailingListActive, mergeWithParentCategory, serviceContext);
309            }
310    
311            public MBCategoryLocalService getWrappedMBCategoryLocalService() {
312                    return _mbCategoryLocalService;
313            }
314    
315            private MBCategoryLocalService _mbCategoryLocalService;
316    }