001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (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
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
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            * Returns the message boards category with the primary key.
154            *
155            * @param categoryId the primary key of the message boards category
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
168                    java.io.Serializable primaryKeyObj)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _mbCategoryLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns the message boards category with the UUID in the group.
176            *
177            * @param uuid the UUID of message boards category
178            * @param groupId the group id of the message boards category
179            * @return the message boards category
180            * @throws PortalException if a message boards category with the UUID in the group could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _mbCategoryLocalService.getMBCategoryByUuidAndGroupId(uuid,
188                            groupId);
189            }
190    
191            /**
192            * Returns a range of all the message boards categories.
193            *
194            * <p>
195            * 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.
196            * </p>
197            *
198            * @param start the lower bound of the range of message boards categories
199            * @param end the upper bound of the range of message boards categories (not inclusive)
200            * @return the range of message boards categories
201            * @throws SystemException if a system exception occurred
202            */
203            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
204                    int start, int end)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _mbCategoryLocalService.getMBCategories(start, end);
207            }
208    
209            /**
210            * Returns the number of message boards categories.
211            *
212            * @return the number of message boards categories
213            * @throws SystemException if a system exception occurred
214            */
215            public int getMBCategoriesCount()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _mbCategoryLocalService.getMBCategoriesCount();
218            }
219    
220            /**
221            * Updates the message boards category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param mbCategory the message boards category
224            * @return the message boards category that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
228                    com.liferay.portlet.messageboards.model.MBCategory mbCategory)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _mbCategoryLocalService.updateMBCategory(mbCategory);
231            }
232    
233            /**
234            * Updates the message boards category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
235            *
236            * @param mbCategory the message boards category
237            * @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.
238            * @return the message boards category that was updated
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
242                    com.liferay.portlet.messageboards.model.MBCategory mbCategory,
243                    boolean merge)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _mbCategoryLocalService.updateMBCategory(mbCategory, merge);
246            }
247    
248            /**
249            * Returns the Spring bean ID for this bean.
250            *
251            * @return the Spring bean ID for this bean
252            */
253            public java.lang.String getBeanIdentifier() {
254                    return _mbCategoryLocalService.getBeanIdentifier();
255            }
256    
257            /**
258            * Sets the Spring bean ID for this bean.
259            *
260            * @param beanIdentifier the Spring bean ID for this bean
261            */
262            public void setBeanIdentifier(java.lang.String beanIdentifier) {
263                    _mbCategoryLocalService.setBeanIdentifier(beanIdentifier);
264            }
265    
266            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
267                    long userId, long parentCategoryId, java.lang.String name,
268                    java.lang.String description, java.lang.String displayStyle,
269                    java.lang.String emailAddress, java.lang.String inProtocol,
270                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
271                    java.lang.String inUserName, java.lang.String inPassword,
272                    int inReadInterval, java.lang.String outEmailAddress,
273                    boolean outCustom, java.lang.String outServerName, int outServerPort,
274                    boolean outUseSSL, java.lang.String outUserName,
275                    java.lang.String outPassword, boolean allowAnonymous,
276                    boolean mailingListActive,
277                    com.liferay.portal.service.ServiceContext serviceContext)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
281                            name, description, displayStyle, emailAddress, inProtocol,
282                            inServerName, inServerPort, inUseSSL, inUserName, inPassword,
283                            inReadInterval, outEmailAddress, outCustom, outServerName,
284                            outServerPort, outUseSSL, outUserName, outPassword, allowAnonymous,
285                            mailingListActive, serviceContext);
286            }
287    
288            public void addCategoryResources(long categoryId,
289                    boolean addGroupPermissions, boolean addGuestPermissions)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _mbCategoryLocalService.addCategoryResources(categoryId,
293                            addGroupPermissions, addGuestPermissions);
294            }
295    
296            public void addCategoryResources(long categoryId,
297                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    _mbCategoryLocalService.addCategoryResources(categoryId,
301                            groupPermissions, guestPermissions);
302            }
303    
304            public void addCategoryResources(
305                    com.liferay.portlet.messageboards.model.MBCategory category,
306                    boolean addGroupPermissions, boolean addGuestPermissions)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _mbCategoryLocalService.addCategoryResources(category,
310                            addGroupPermissions, addGuestPermissions);
311            }
312    
313            public void addCategoryResources(
314                    com.liferay.portlet.messageboards.model.MBCategory category,
315                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    _mbCategoryLocalService.addCategoryResources(category,
319                            groupPermissions, guestPermissions);
320            }
321    
322            public void deleteCategories(long groupId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    _mbCategoryLocalService.deleteCategories(groupId);
326            }
327    
328            public void deleteCategory(long categoryId)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    _mbCategoryLocalService.deleteCategory(categoryId);
332            }
333    
334            public void deleteCategory(
335                    com.liferay.portlet.messageboards.model.MBCategory category)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    _mbCategoryLocalService.deleteCategory(category);
339            }
340    
341            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
342                    long groupId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _mbCategoryLocalService.getCategories(groupId);
345            }
346    
347            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
348                    long groupId, long parentCategoryId, int start, int end)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
351                            start, end);
352            }
353    
354            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
355                    long groupId, long[] parentCategoryIds, int start, int end)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _mbCategoryLocalService.getCategories(groupId,
358                            parentCategoryIds, start, end);
359            }
360    
361            public int getCategoriesCount(long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _mbCategoryLocalService.getCategoriesCount(groupId);
364            }
365    
366            public int getCategoriesCount(long groupId, long parentCategoryId)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _mbCategoryLocalService.getCategoriesCount(groupId,
369                            parentCategoryId);
370            }
371    
372            public int getCategoriesCount(long groupId, long[] parentCategoryIds)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _mbCategoryLocalService.getCategoriesCount(groupId,
375                            parentCategoryIds);
376            }
377    
378            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
379                    long categoryId)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    return _mbCategoryLocalService.getCategory(categoryId);
383            }
384    
385            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
386                    long companyId, int start, int end)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _mbCategoryLocalService.getCompanyCategories(companyId, start,
389                            end);
390            }
391    
392            public int getCompanyCategoriesCount(long companyId)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return _mbCategoryLocalService.getCompanyCategoriesCount(companyId);
395            }
396    
397            public java.util.List<java.lang.Long> getSubcategoryIds(
398                    java.util.List<java.lang.Long> categoryIds, long groupId,
399                    long categoryId)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return _mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
402                            categoryId);
403            }
404    
405            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
406                    long groupId, long userId, int start, int end)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return _mbCategoryLocalService.getSubscribedCategories(groupId, userId,
409                            start, end);
410            }
411    
412            public int getSubscribedCategoriesCount(long groupId, long userId)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return _mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
415                            userId);
416            }
417    
418            public void subscribeCategory(long userId, long groupId, long categoryId)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    _mbCategoryLocalService.subscribeCategory(userId, groupId, categoryId);
422            }
423    
424            public void unsubscribeCategory(long userId, long groupId, long categoryId)
425                    throws com.liferay.portal.kernel.exception.PortalException,
426                            com.liferay.portal.kernel.exception.SystemException {
427                    _mbCategoryLocalService.unsubscribeCategory(userId, groupId, categoryId);
428            }
429    
430            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
431                    long categoryId, long parentCategoryId, java.lang.String name,
432                    java.lang.String description, java.lang.String displayStyle,
433                    java.lang.String emailAddress, java.lang.String inProtocol,
434                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
435                    java.lang.String inUserName, java.lang.String inPassword,
436                    int inReadInterval, java.lang.String outEmailAddress,
437                    boolean outCustom, java.lang.String outServerName, int outServerPort,
438                    boolean outUseSSL, java.lang.String outUserName,
439                    java.lang.String outPassword, boolean allowAnonymous,
440                    boolean mailingListActive, boolean mergeWithParentCategory,
441                    com.liferay.portal.service.ServiceContext serviceContext)
442                    throws com.liferay.portal.kernel.exception.PortalException,
443                            com.liferay.portal.kernel.exception.SystemException {
444                    return _mbCategoryLocalService.updateCategory(categoryId,
445                            parentCategoryId, name, description, displayStyle, emailAddress,
446                            inProtocol, inServerName, inServerPort, inUseSSL, inUserName,
447                            inPassword, inReadInterval, outEmailAddress, outCustom,
448                            outServerName, outServerPort, outUseSSL, outUserName, outPassword,
449                            allowAnonymous, mailingListActive, mergeWithParentCategory,
450                            serviceContext);
451            }
452    
453            public MBCategoryLocalService getWrappedMBCategoryLocalService() {
454                    return _mbCategoryLocalService;
455            }
456    
457            public void setWrappedMBCategoryLocalService(
458                    MBCategoryLocalService mbCategoryLocalService) {
459                    _mbCategoryLocalService = mbCategoryLocalService;
460            }
461    
462            private MBCategoryLocalService _mbCategoryLocalService;
463    }