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