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