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 MBCategoryService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBCategoryService
024     * @generated
025     */
026    public class MBCategoryServiceWrapper implements MBCategoryService {
027            public MBCategoryServiceWrapper(MBCategoryService mbCategoryService) {
028                    _mbCategoryService = mbCategoryService;
029            }
030    
031            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
032                    long parentCategoryId, java.lang.String name,
033                    java.lang.String description, java.lang.String displayStyle,
034                    java.lang.String emailAddress, java.lang.String inProtocol,
035                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
036                    java.lang.String inUserName, java.lang.String inPassword,
037                    int inReadInterval, java.lang.String outEmailAddress,
038                    boolean outCustom, java.lang.String outServerName, int outServerPort,
039                    boolean outUseSSL, java.lang.String outUserName,
040                    java.lang.String outPassword, boolean mailingListActive,
041                    boolean allowAnonymousEmail,
042                    com.liferay.portal.service.ServiceContext serviceContext)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    return _mbCategoryService.addCategory(parentCategoryId, name,
046                            description, displayStyle, emailAddress, inProtocol, inServerName,
047                            inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
048                            outEmailAddress, outCustom, outServerName, outServerPort,
049                            outUseSSL, outUserName, outPassword, mailingListActive,
050                            allowAnonymousEmail, serviceContext);
051            }
052    
053            public void deleteCategory(long groupId, long categoryId)
054                    throws com.liferay.portal.kernel.exception.PortalException,
055                            com.liferay.portal.kernel.exception.SystemException {
056                    _mbCategoryService.deleteCategory(groupId, categoryId);
057            }
058    
059            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
060                    long groupId)
061                    throws com.liferay.portal.kernel.exception.SystemException {
062                    return _mbCategoryService.getCategories(groupId);
063            }
064    
065            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
066                    long groupId, long parentCategoryId, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException {
068                    return _mbCategoryService.getCategories(groupId, parentCategoryId,
069                            start, end);
070            }
071    
072            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
073                    long groupId, long[] parentCategoryIds, int start, int end)
074                    throws com.liferay.portal.kernel.exception.SystemException {
075                    return _mbCategoryService.getCategories(groupId, parentCategoryIds,
076                            start, end);
077            }
078    
079            public int getCategoriesCount(long groupId, long parentCategoryId)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId);
082            }
083    
084            public int getCategoriesCount(long groupId, long[] parentCategoryIds)
085                    throws com.liferay.portal.kernel.exception.SystemException {
086                    return _mbCategoryService.getCategoriesCount(groupId, parentCategoryIds);
087            }
088    
089            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
090                    long categoryId)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return _mbCategoryService.getCategory(categoryId);
094            }
095    
096            public long[] getCategoryIds(long groupId, long categoryId)
097                    throws com.liferay.portal.kernel.exception.SystemException {
098                    return _mbCategoryService.getCategoryIds(groupId, categoryId);
099            }
100    
101            public java.util.List<java.lang.Long> getSubcategoryIds(
102                    java.util.List<java.lang.Long> categoryIds, long groupId,
103                    long categoryId)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return _mbCategoryService.getSubcategoryIds(categoryIds, groupId,
106                            categoryId);
107            }
108    
109            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
110                    long groupId, long userId, int start, int end)
111                    throws com.liferay.portal.kernel.exception.SystemException {
112                    return _mbCategoryService.getSubscribedCategories(groupId, userId,
113                            start, end);
114            }
115    
116            public int getSubscribedCategoriesCount(long groupId, long userId)
117                    throws com.liferay.portal.kernel.exception.SystemException {
118                    return _mbCategoryService.getSubscribedCategoriesCount(groupId, userId);
119            }
120    
121            public void subscribeCategory(long groupId, long categoryId)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    _mbCategoryService.subscribeCategory(groupId, categoryId);
125            }
126    
127            public void unsubscribeCategory(long groupId, long categoryId)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    _mbCategoryService.unsubscribeCategory(groupId, categoryId);
131            }
132    
133            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
134                    long categoryId, long parentCategoryId, java.lang.String name,
135                    java.lang.String description, java.lang.String displayStyle,
136                    java.lang.String emailAddress, java.lang.String inProtocol,
137                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
138                    java.lang.String inUserName, java.lang.String inPassword,
139                    int inReadInterval, java.lang.String outEmailAddress,
140                    boolean outCustom, java.lang.String outServerName, int outServerPort,
141                    boolean outUseSSL, java.lang.String outUserName,
142                    java.lang.String outPassword, boolean mailingListActive,
143                    boolean allowAnonymousEmail, boolean mergeWithParentCategory,
144                    com.liferay.portal.service.ServiceContext serviceContext)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException {
147                    return _mbCategoryService.updateCategory(categoryId, parentCategoryId,
148                            name, description, displayStyle, emailAddress, inProtocol,
149                            inServerName, inServerPort, inUseSSL, inUserName, inPassword,
150                            inReadInterval, outEmailAddress, outCustom, outServerName,
151                            outServerPort, outUseSSL, outUserName, outPassword,
152                            mailingListActive, allowAnonymousEmail, mergeWithParentCategory,
153                            serviceContext);
154            }
155    
156            public MBCategoryService getWrappedMBCategoryService() {
157                    return _mbCategoryService;
158            }
159    
160            public void setWrappedMBCategoryService(MBCategoryService mbCategoryService) {
161                    _mbCategoryService = mbCategoryService;
162            }
163    
164            private MBCategoryService _mbCategoryService;
165    }