001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 emailAddress,
269                    java.lang.String inProtocol, java.lang.String inServerName,
270                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
271                    java.lang.String inPassword, int inReadInterval,
272                    java.lang.String outEmailAddress, boolean outCustom,
273                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
274                    java.lang.String outUserName, java.lang.String outPassword,
275                    boolean allowAnonymous, boolean mailingListActive,
276                    com.liferay.portal.service.ServiceContext serviceContext)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
280                            name, description, emailAddress, inProtocol, inServerName,
281                            inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
282                            outEmailAddress, outCustom, outServerName, outServerPort,
283                            outUseSSL, outUserName, outPassword, allowAnonymous,
284                            mailingListActive, serviceContext);
285            }
286    
287            /**
288            * @deprecated {@link #addCategory(long, long, String, String, String,
289            String, String, int, boolean, String, String, int, String,
290            boolean, String, int, boolean, String, String, boolean,
291            boolean, ServiceContext)}
292            */
293            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
294                    long userId, long parentCategoryId, java.lang.String name,
295                    java.lang.String description, java.lang.String emailAddress,
296                    java.lang.String inProtocol, java.lang.String inServerName,
297                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
298                    java.lang.String inPassword, int inReadInterval,
299                    java.lang.String outEmailAddress, boolean outCustom,
300                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
301                    java.lang.String outUserName, java.lang.String outPassword,
302                    boolean mailingListActive,
303                    com.liferay.portal.service.ServiceContext serviceContext)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    return _mbCategoryLocalService.addCategory(userId, parentCategoryId,
307                            name, description, emailAddress, inProtocol, inServerName,
308                            inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
309                            outEmailAddress, outCustom, outServerName, outServerPort,
310                            outUseSSL, outUserName, outPassword, mailingListActive,
311                            serviceContext);
312            }
313    
314            public void addCategoryResources(long categoryId,
315                    boolean addCommunityPermissions, boolean addGuestPermissions)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    _mbCategoryLocalService.addCategoryResources(categoryId,
319                            addCommunityPermissions, addGuestPermissions);
320            }
321    
322            public void addCategoryResources(long categoryId,
323                    java.lang.String[] communityPermissions,
324                    java.lang.String[] guestPermissions)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    _mbCategoryLocalService.addCategoryResources(categoryId,
328                            communityPermissions, guestPermissions);
329            }
330    
331            public void addCategoryResources(
332                    com.liferay.portlet.messageboards.model.MBCategory category,
333                    boolean addCommunityPermissions, boolean addGuestPermissions)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    _mbCategoryLocalService.addCategoryResources(category,
337                            addCommunityPermissions, addGuestPermissions);
338            }
339    
340            public void addCategoryResources(
341                    com.liferay.portlet.messageboards.model.MBCategory category,
342                    java.lang.String[] communityPermissions,
343                    java.lang.String[] guestPermissions)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    _mbCategoryLocalService.addCategoryResources(category,
347                            communityPermissions, guestPermissions);
348            }
349    
350            public void deleteCategories(long groupId)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    _mbCategoryLocalService.deleteCategories(groupId);
354            }
355    
356            public void deleteCategory(long categoryId)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    _mbCategoryLocalService.deleteCategory(categoryId);
360            }
361    
362            public void deleteCategory(
363                    com.liferay.portlet.messageboards.model.MBCategory category)
364                    throws com.liferay.portal.kernel.exception.PortalException,
365                            com.liferay.portal.kernel.exception.SystemException {
366                    _mbCategoryLocalService.deleteCategory(category);
367            }
368    
369            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
370                    long groupId)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _mbCategoryLocalService.getCategories(groupId);
373            }
374    
375            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
376                    long groupId, long parentCategoryId, int start, int end)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _mbCategoryLocalService.getCategories(groupId, parentCategoryId,
379                            start, end);
380            }
381    
382            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
383                    long groupId, long[] parentCategoryIds, int start, int end)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _mbCategoryLocalService.getCategories(groupId,
386                            parentCategoryIds, start, end);
387            }
388    
389            public int getCategoriesCount(long groupId)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    return _mbCategoryLocalService.getCategoriesCount(groupId);
392            }
393    
394            public int getCategoriesCount(long groupId, long parentCategoryId)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _mbCategoryLocalService.getCategoriesCount(groupId,
397                            parentCategoryId);
398            }
399    
400            public int getCategoriesCount(long groupId, long[] parentCategoryIds)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return _mbCategoryLocalService.getCategoriesCount(groupId,
403                            parentCategoryIds);
404            }
405    
406            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
407                    long categoryId)
408                    throws com.liferay.portal.kernel.exception.PortalException,
409                            com.liferay.portal.kernel.exception.SystemException {
410                    return _mbCategoryLocalService.getCategory(categoryId);
411            }
412    
413            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
414                    long companyId, int start, int end)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _mbCategoryLocalService.getCompanyCategories(companyId, start,
417                            end);
418            }
419    
420            public int getCompanyCategoriesCount(long companyId)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _mbCategoryLocalService.getCompanyCategoriesCount(companyId);
423            }
424    
425            public java.util.List<java.lang.Long> getSubcategoryIds(
426                    java.util.List<java.lang.Long> categoryIds, long groupId,
427                    long categoryId)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return _mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
430                            categoryId);
431            }
432    
433            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
434                    long groupId, long userId, int start, int end)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return _mbCategoryLocalService.getSubscribedCategories(groupId, userId,
437                            start, end);
438            }
439    
440            public int getSubscribedCategoriesCount(long groupId, long userId)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return _mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
443                            userId);
444            }
445    
446            public void subscribeCategory(long userId, long groupId, long categoryId)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException {
449                    _mbCategoryLocalService.subscribeCategory(userId, groupId, categoryId);
450            }
451    
452            public void unsubscribeCategory(long userId, long groupId, long categoryId)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    _mbCategoryLocalService.unsubscribeCategory(userId, groupId, categoryId);
456            }
457    
458            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
459                    long categoryId, long parentCategoryId, java.lang.String name,
460                    java.lang.String description, java.lang.String emailAddress,
461                    java.lang.String inProtocol, java.lang.String inServerName,
462                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
463                    java.lang.String inPassword, int inReadInterval,
464                    java.lang.String outEmailAddress, boolean outCustom,
465                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
466                    java.lang.String outUserName, java.lang.String outPassword,
467                    boolean allowAnonymous, boolean mailingListActive,
468                    boolean mergeWithParentCategory,
469                    com.liferay.portal.service.ServiceContext serviceContext)
470                    throws com.liferay.portal.kernel.exception.PortalException,
471                            com.liferay.portal.kernel.exception.SystemException {
472                    return _mbCategoryLocalService.updateCategory(categoryId,
473                            parentCategoryId, name, description, emailAddress, inProtocol,
474                            inServerName, inServerPort, inUseSSL, inUserName, inPassword,
475                            inReadInterval, outEmailAddress, outCustom, outServerName,
476                            outServerPort, outUseSSL, outUserName, outPassword, allowAnonymous,
477                            mailingListActive, mergeWithParentCategory, serviceContext);
478            }
479    
480            /**
481            * @deprecated {@link #updateCategory(long, long, String, String, String,
482            String, String, int, boolean, String, String, int, String,
483            boolean, String, int, boolean, String, String, boolean,
484            boolean, boolean, ServiceContext)}
485            */
486            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
487                    long categoryId, long parentCategoryId, java.lang.String name,
488                    java.lang.String description, java.lang.String emailAddress,
489                    java.lang.String inProtocol, java.lang.String inServerName,
490                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
491                    java.lang.String inPassword, int inReadInterval,
492                    java.lang.String outEmailAddress, boolean outCustom,
493                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
494                    java.lang.String outUserName, java.lang.String outPassword,
495                    boolean mailingListActive, boolean mergeWithParentCategory,
496                    com.liferay.portal.service.ServiceContext serviceContext)
497                    throws com.liferay.portal.kernel.exception.PortalException,
498                            com.liferay.portal.kernel.exception.SystemException {
499                    return _mbCategoryLocalService.updateCategory(categoryId,
500                            parentCategoryId, name, description, emailAddress, inProtocol,
501                            inServerName, inServerPort, inUseSSL, inUserName, inPassword,
502                            inReadInterval, outEmailAddress, outCustom, outServerName,
503                            outServerPort, outUseSSL, outUserName, outPassword,
504                            mailingListActive, mergeWithParentCategory, serviceContext);
505            }
506    
507            public MBCategoryLocalService getWrappedMBCategoryLocalService() {
508                    return _mbCategoryLocalService;
509            }
510    
511            public void setWrappedMBCategoryLocalService(
512                    MBCategoryLocalService mbCategoryLocalService) {
513                    _mbCategoryLocalService = mbCategoryLocalService;
514            }
515    
516            private MBCategoryLocalService _mbCategoryLocalService;
517    }