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