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