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     * Provides a wrapper for {@link MBCategoryService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see MBCategoryService
024     * @generated
025     */
026    public class MBCategoryServiceWrapper implements MBCategoryService,
027            ServiceWrapper<MBCategoryService> {
028            public MBCategoryServiceWrapper(MBCategoryService mbCategoryService) {
029                    _mbCategoryService = mbCategoryService;
030            }
031    
032            /**
033            * Returns the Spring bean ID for this bean.
034            *
035            * @return the Spring bean ID for this bean
036            */
037            @Override
038            public java.lang.String getBeanIdentifier() {
039                    return _mbCategoryService.getBeanIdentifier();
040            }
041    
042            /**
043            * Sets the Spring bean ID for this bean.
044            *
045            * @param beanIdentifier the Spring bean ID for this bean
046            */
047            @Override
048            public void setBeanIdentifier(java.lang.String beanIdentifier) {
049                    _mbCategoryService.setBeanIdentifier(beanIdentifier);
050            }
051    
052            @Override
053            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
054                    long userId, long parentCategoryId, java.lang.String name,
055                    java.lang.String description,
056                    com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return _mbCategoryService.addCategory(userId, parentCategoryId, name,
060                            description, serviceContext);
061            }
062    
063            @Override
064            public com.liferay.portlet.messageboards.model.MBCategory addCategory(
065                    long parentCategoryId, java.lang.String name,
066                    java.lang.String description, java.lang.String displayStyle,
067                    java.lang.String emailAddress, java.lang.String inProtocol,
068                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
069                    java.lang.String inUserName, java.lang.String inPassword,
070                    int inReadInterval, java.lang.String outEmailAddress,
071                    boolean outCustom, java.lang.String outServerName, int outServerPort,
072                    boolean outUseSSL, java.lang.String outUserName,
073                    java.lang.String outPassword, boolean mailingListActive,
074                    boolean allowAnonymousEmail,
075                    com.liferay.portal.service.ServiceContext serviceContext)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    return _mbCategoryService.addCategory(parentCategoryId, name,
079                            description, displayStyle, emailAddress, inProtocol, inServerName,
080                            inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
081                            outEmailAddress, outCustom, outServerName, outServerPort,
082                            outUseSSL, outUserName, outPassword, mailingListActive,
083                            allowAnonymousEmail, serviceContext);
084            }
085    
086            @Override
087            public void deleteCategory(long categoryId, boolean includeTrashedEntries)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    _mbCategoryService.deleteCategory(categoryId, includeTrashedEntries);
091            }
092    
093            @Override
094            public void deleteCategory(long groupId, long categoryId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    _mbCategoryService.deleteCategory(groupId, categoryId);
098            }
099    
100            @Override
101            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
102                    long groupId)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return _mbCategoryService.getCategories(groupId);
105            }
106    
107            @Override
108            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
109                    long groupId, int status)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return _mbCategoryService.getCategories(groupId, status);
112            }
113    
114            @Override
115            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
116                    long groupId, long parentCategoryId, int start, int end)
117                    throws com.liferay.portal.kernel.exception.SystemException {
118                    return _mbCategoryService.getCategories(groupId, parentCategoryId,
119                            start, end);
120            }
121    
122            @Override
123            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
124                    long groupId, long parentCategoryId, int status, int start, int end)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return _mbCategoryService.getCategories(groupId, parentCategoryId,
127                            status, start, end);
128            }
129    
130            @Override
131            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
132                    long groupId, long[] parentCategoryIds, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _mbCategoryService.getCategories(groupId, parentCategoryIds,
135                            start, end);
136            }
137    
138            @Override
139            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
140                    long groupId, long[] parentCategoryIds, int status, int start, int end)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return _mbCategoryService.getCategories(groupId, parentCategoryIds,
143                            status, start, end);
144            }
145    
146            @Override
147            public int getCategoriesCount(long groupId, long parentCategoryId)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId);
150            }
151    
152            @Override
153            public int getCategoriesCount(long groupId, long parentCategoryId,
154                    int status) throws com.liferay.portal.kernel.exception.SystemException {
155                    return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId,
156                            status);
157            }
158    
159            @Override
160            public int getCategoriesCount(long groupId, long[] parentCategoryIds)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return _mbCategoryService.getCategoriesCount(groupId, parentCategoryIds);
163            }
164    
165            @Override
166            public int getCategoriesCount(long groupId, long[] parentCategoryIds,
167                    int status) throws com.liferay.portal.kernel.exception.SystemException {
168                    return _mbCategoryService.getCategoriesCount(groupId,
169                            parentCategoryIds, status);
170            }
171    
172            @Override
173            public com.liferay.portlet.messageboards.model.MBCategory getCategory(
174                    long categoryId)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return _mbCategoryService.getCategory(categoryId);
178            }
179    
180            @Override
181            public long[] getCategoryIds(long groupId, long categoryId)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _mbCategoryService.getCategoryIds(groupId, categoryId);
184            }
185    
186            @Override
187            public java.util.List<java.lang.Long> getSubcategoryIds(
188                    java.util.List<java.lang.Long> categoryIds, long groupId,
189                    long categoryId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return _mbCategoryService.getSubcategoryIds(categoryIds, groupId,
192                            categoryId);
193            }
194    
195            @Override
196            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
197                    long groupId, long userId, int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _mbCategoryService.getSubscribedCategories(groupId, userId,
200                            start, end);
201            }
202    
203            @Override
204            public int getSubscribedCategoriesCount(long groupId, long userId)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _mbCategoryService.getSubscribedCategoriesCount(groupId, userId);
207            }
208    
209            @Override
210            public com.liferay.portlet.messageboards.model.MBCategory moveCategory(
211                    long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return _mbCategoryService.moveCategory(categoryId, parentCategoryId,
215                            mergeWithParentCategory);
216            }
217    
218            @Override
219            public com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
220                    long categoryId, long newCategoryId)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    return _mbCategoryService.moveCategoryFromTrash(categoryId,
224                            newCategoryId);
225            }
226    
227            @Override
228            public com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
229                    long categoryId)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    return _mbCategoryService.moveCategoryToTrash(categoryId);
233            }
234    
235            @Override
236            public void restoreCategoryFromTrash(long categoryId)
237                    throws com.liferay.portal.kernel.exception.PortalException,
238                            com.liferay.portal.kernel.exception.SystemException {
239                    _mbCategoryService.restoreCategoryFromTrash(categoryId);
240            }
241    
242            @Override
243            public void subscribeCategory(long groupId, long categoryId)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    _mbCategoryService.subscribeCategory(groupId, categoryId);
247            }
248    
249            @Override
250            public void unsubscribeCategory(long groupId, long categoryId)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    _mbCategoryService.unsubscribeCategory(groupId, categoryId);
254            }
255    
256            @Override
257            public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
258                    long categoryId, long parentCategoryId, java.lang.String name,
259                    java.lang.String description, java.lang.String displayStyle,
260                    java.lang.String emailAddress, java.lang.String inProtocol,
261                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
262                    java.lang.String inUserName, java.lang.String inPassword,
263                    int inReadInterval, java.lang.String outEmailAddress,
264                    boolean outCustom, java.lang.String outServerName, int outServerPort,
265                    boolean outUseSSL, java.lang.String outUserName,
266                    java.lang.String outPassword, boolean mailingListActive,
267                    boolean allowAnonymousEmail, boolean mergeWithParentCategory,
268                    com.liferay.portal.service.ServiceContext serviceContext)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _mbCategoryService.updateCategory(categoryId, parentCategoryId,
272                            name, description, displayStyle, emailAddress, inProtocol,
273                            inServerName, inServerPort, inUseSSL, inUserName, inPassword,
274                            inReadInterval, outEmailAddress, outCustom, outServerName,
275                            outServerPort, outUseSSL, outUserName, outPassword,
276                            mailingListActive, allowAnonymousEmail, mergeWithParentCategory,
277                            serviceContext);
278            }
279    
280            /**
281             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
282             */
283            public MBCategoryService getWrappedMBCategoryService() {
284                    return _mbCategoryService;
285            }
286    
287            /**
288             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
289             */
290            public void setWrappedMBCategoryService(MBCategoryService mbCategoryService) {
291                    _mbCategoryService = mbCategoryService;
292            }
293    
294            @Override
295            public MBCategoryService getWrappedService() {
296                    return _mbCategoryService;
297            }
298    
299            @Override
300            public void setWrappedService(MBCategoryService mbCategoryService) {
301                    _mbCategoryService = mbCategoryService;
302            }
303    
304            private MBCategoryService _mbCategoryService;
305    }