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