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     * <p>
019     * This class is a wrapper for {@link MBCategoryLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBCategoryLocalService
024     * @generated
025     */
026    public class MBCategoryLocalServiceWrapper implements MBCategoryLocalService {
027            public MBCategoryLocalServiceWrapper(
028                    MBCategoryLocalService mbCategoryLocalService) {
029                    _mbCategoryLocalService = mbCategoryLocalService;
030            }
031    
032            /**
033            * Adds the message boards category to the database. Also notifies the appropriate model listeners.
034            *
035            * @param mbCategory the message boards category to add
036            * @return the message boards category that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
040                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _mbCategoryLocalService.addMBCategory(mbCategory);
043            }
044    
045            /**
046            * Creates a new message boards category with the primary key. Does not add the message boards category to the database.
047            *
048            * @param categoryId the primary key for the new message boards category
049            * @return the new message boards category
050            */
051            public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
052                    long categoryId) {
053                    return _mbCategoryLocalService.createMBCategory(categoryId);
054            }
055    
056            /**
057            * Deletes the message boards category with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param categoryId the primary key of the message boards category to delete
060            * @throws PortalException if a message boards category with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteMBCategory(long categoryId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _mbCategoryLocalService.deleteMBCategory(categoryId);
067            }
068    
069            /**
070            * Deletes the message boards category from the database. Also notifies the appropriate model listeners.
071            *
072            * @param mbCategory the message boards category to delete
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteMBCategory(
076                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _mbCategoryLocalService.deleteMBCategory(mbCategory);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query to search with
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query to search with
103            * @param start the lower bound of the range of model instances to return
104            * @param end the upper bound of the range of model instances to return (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query to search with
123            * @param start the lower bound of the range of model instances to return
124            * @param end the upper bound of the range of model instances to return (not inclusive)
125            * @param orderByComparator the comparator to order the results by
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _mbCategoryLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Counts the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query to search with
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _mbCategoryLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Gets the message boards category with the primary key.
154            *
155            * @param categoryId the primary key of the message boards category to get
156            * @return the message boards category
157            * @throws PortalException if a message boards category with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
161                    long categoryId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _mbCategoryLocalService.getMBCategory(categoryId);
165            }
166    
167            /**
168            * Gets the message boards category with the UUID and group id.
169            *
170            * @param uuid the UUID of message boards category to get
171            * @param groupId the group id of the message boards category to get
172            * @return the message boards category
173            * @throws PortalException if a message boards category with the UUID and group id could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
177                    java.lang.String uuid, long groupId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _mbCategoryLocalService.getMBCategoryByUuidAndGroupId(uuid,
181                            groupId);
182            }
183    
184            /**
185            * Gets a range of all the message boards categories.
186            *
187            * <p>
188            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
189            * </p>
190            *
191            * @param start the lower bound of the range of message boards categories to return
192            * @param end the upper bound of the range of message boards categories to return (not inclusive)
193            * @return the range of message boards categories
194            * @throws SystemException if a system exception occurred
195            */
196            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
197                    int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _mbCategoryLocalService.getMBCategories(start, end);
200            }
201    
202            /**
203            * Gets the number of message boards categories.
204            *
205            * @return the number of message boards categories
206            * @throws SystemException if a system exception occurred
207            */
208            public int getMBCategoriesCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _mbCategoryLocalService.getMBCategoriesCount();
211            }
212    
213            /**
214            * Updates the message boards category in the database. Also notifies the appropriate model listeners.
215            *
216            * @param mbCategory the message boards category to update
217            * @return the message boards category that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
221                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _mbCategoryLocalService.updateMBCategory(mbCategory);
224            }
225    
226            /**
227            * Updates the message boards category in the database. Also notifies the appropriate model listeners.
228            *
229            * @param mbCategory the message boards category to update
230            * @param merge whether to merge the message boards category with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
231            * @return the message boards category that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
235                    com.liferay.portlet.messageboards.model.MBCategory mbCategory,
236                    boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _mbCategoryLocalService.updateMBCategory(mbCategory, merge);
239            }
240    
241            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
242                    long userId, long parentCategoryId, java.lang.String name,
243                    java.lang.String description, java.lang.String emailAddress,
244                    java.lang.String inProtocol, java.lang.String inServerName,
245                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
246                    java.lang.String inPassword, int inReadInterval,
247                    java.lang.String outEmailAddress, boolean outCustom,
248                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
249                    java.lang.String outUserName, java.lang.String outPassword,
250                    boolean mailingListActive,
251                    com.liferay.portal.service.ServiceContext serviceContext)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
255                            name, description, emailAddress, inProtocol, inServerName,
256                            inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
257                            outEmailAddress, outCustom, outServerName, outServerPort,
258                            outUseSSL, outUserName, outPassword, mailingListActive,
259                            serviceContext);
260            }
261    
262            public void addCategoryResources(long categoryId,
263                    boolean addCommunityPermissions, boolean addGuestPermissions)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    _mbCategoryLocalService.addCategoryResources(categoryId,
267                            addCommunityPermissions, addGuestPermissions);
268            }
269    
270            public void addCategoryResources(long categoryId,
271                    java.lang.String[] communityPermissions,
272                    java.lang.String[] guestPermissions)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _mbCategoryLocalService.addCategoryResources(categoryId,
276                            communityPermissions, guestPermissions);
277            }
278    
279            public void addCategoryResources(
280                    com.liferay.portlet.messageboards.model.MBCategory category,
281                    boolean addCommunityPermissions, boolean addGuestPermissions)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    _mbCategoryLocalService.addCategoryResources(category,
285                            addCommunityPermissions, addGuestPermissions);
286            }
287    
288            public void addCategoryResources(
289                    com.liferay.portlet.messageboards.model.MBCategory category,
290                    java.lang.String[] communityPermissions,
291                    java.lang.String[] guestPermissions)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _mbCategoryLocalService.addCategoryResources(category,
295                            communityPermissions, guestPermissions);
296            }
297    
298            public void deleteCategories(long groupId)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _mbCategoryLocalService.deleteCategories(groupId);
302            }
303    
304            public void deleteCategory(long categoryId)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    _mbCategoryLocalService.deleteCategory(categoryId);
308            }
309    
310            public void deleteCategory(
311                    com.liferay.portlet.messageboards.model.MBCategory category)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _mbCategoryLocalService.deleteCategory(category);
315            }
316    
317            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
318                    long groupId)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return _mbCategoryLocalService.getCategories(groupId);
321            }
322    
323            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
324                    long groupId, long parentCategoryId, int start, int end)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
327                            start, end);
328            }
329    
330            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
331                    long groupId, long[] parentCategoryIds, int start, int end)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _mbCategoryLocalService.getCategories(groupId,
334                            parentCategoryIds, start, end);
335            }
336    
337            public int getCategoriesCount(long groupId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _mbCategoryLocalService.getCategoriesCount(groupId);
340            }
341    
342            public int getCategoriesCount(long groupId, long parentCategoryId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _mbCategoryLocalService.getCategoriesCount(groupId,
345                            parentCategoryId);
346            }
347    
348            public int getCategoriesCount(long groupId, long[] parentCategoryIds)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _mbCategoryLocalService.getCategoriesCount(groupId,
351                            parentCategoryIds);
352            }
353    
354            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
355                    long categoryId)
356                    throws com.liferay.portal.kernel.exception.PortalException,
357                            com.liferay.portal.kernel.exception.SystemException {
358                    return _mbCategoryLocalService.getCategory(categoryId);
359            }
360    
361            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
362                    long companyId, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _mbCategoryLocalService.getCompanyCategories(companyId, start,
365                            end);
366            }
367    
368            public int getCompanyCategoriesCount(long companyId)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _mbCategoryLocalService.getCompanyCategoriesCount(companyId);
371            }
372    
373            public java.util.List<java.lang.Long> getSubcategoryIds(
374                    java.util.List<java.lang.Long> categoryIds, long groupId,
375                    long categoryId)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return _mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
378                            categoryId);
379            }
380    
381            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
382                    long groupId, long userId, int start, int end)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _mbCategoryLocalService.getSubscribedCategories(groupId, userId,
385                            start, end);
386            }
387    
388            public int getSubscribedCategoriesCount(long groupId, long userId)
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    return _mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
391                            userId);
392            }
393    
394            public void subscribeCategory(long userId, long groupId, long categoryId)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    _mbCategoryLocalService.subscribeCategory(userId, groupId, categoryId);
398            }
399    
400            public void unsubscribeCategory(long userId, long groupId, long categoryId)
401                    throws com.liferay.portal.kernel.exception.PortalException,
402                            com.liferay.portal.kernel.exception.SystemException {
403                    _mbCategoryLocalService.unsubscribeCategory(userId, groupId, categoryId);
404            }
405    
406            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
407                    long categoryId, long parentCategoryId, java.lang.String name,
408                    java.lang.String description, java.lang.String emailAddress,
409                    java.lang.String inProtocol, java.lang.String inServerName,
410                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
411                    java.lang.String inPassword, int inReadInterval,
412                    java.lang.String outEmailAddress, boolean outCustom,
413                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
414                    java.lang.String outUserName, java.lang.String outPassword,
415                    boolean mailingListActive, boolean mergeWithParentCategory,
416                    com.liferay.portal.service.ServiceContext serviceContext)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException {
419                    return _mbCategoryLocalService.updateCategory(categoryId,
420                            parentCategoryId, name, description, emailAddress, inProtocol,
421                            inServerName, inServerPort, inUseSSL, inUserName, inPassword,
422                            inReadInterval, outEmailAddress, outCustom, outServerName,
423                            outServerPort, outUseSSL, outUserName, outPassword,
424                            mailingListActive, mergeWithParentCategory, serviceContext);
425            }
426    
427            public MBCategoryLocalService getWrappedMBCategoryLocalService() {
428                    return _mbCategoryLocalService;
429            }
430    
431            private MBCategoryLocalService _mbCategoryLocalService;
432    }