1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service;
24  
25  
26  /**
27   * <a href="MBCategoryServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link MBCategoryService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       MBCategoryService
40   * @generated
41   */
42  public class MBCategoryServiceWrapper implements MBCategoryService {
43      public MBCategoryServiceWrapper(MBCategoryService mbCategoryService) {
44          _mbCategoryService = mbCategoryService;
45      }
46  
47      public com.liferay.portlet.messageboards.model.MBCategory addCategory(
48          long parentCategoryId, java.lang.String name,
49          java.lang.String description, java.lang.String emailAddress,
50          java.lang.String inProtocol, java.lang.String inServerName,
51          int inServerPort, boolean inUseSSL, java.lang.String inUserName,
52          java.lang.String inPassword, int inReadInterval,
53          java.lang.String outEmailAddress, boolean outCustom,
54          java.lang.String outServerName, int outServerPort, boolean outUseSSL,
55          java.lang.String outUserName, java.lang.String outPassword,
56          boolean mailingListActive,
57          com.liferay.portal.service.ServiceContext serviceContext)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException {
60          return _mbCategoryService.addCategory(parentCategoryId, name,
61              description, emailAddress, inProtocol, inServerName, inServerPort,
62              inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
63              outCustom, outServerName, outServerPort, outUseSSL, outUserName,
64              outPassword, mailingListActive, serviceContext);
65      }
66  
67      public void deleteCategory(long categoryId)
68          throws com.liferay.portal.PortalException,
69              com.liferay.portal.SystemException {
70          _mbCategoryService.deleteCategory(categoryId);
71      }
72  
73      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
74          long groupId, long parentCategoryId, int start, int end)
75          throws com.liferay.portal.PortalException,
76              com.liferay.portal.SystemException {
77          return _mbCategoryService.getCategories(groupId, parentCategoryId,
78              start, end);
79      }
80  
81      public int getCategoriesCount(long groupId, long parentCategoryId)
82          throws com.liferay.portal.SystemException {
83          return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId);
84      }
85  
86      public com.liferay.portlet.messageboards.model.MBCategory getCategory(
87          long categoryId)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException {
90          return _mbCategoryService.getCategory(categoryId);
91      }
92  
93      public void subscribeCategory(long categoryId)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException {
96          _mbCategoryService.subscribeCategory(categoryId);
97      }
98  
99      public void unsubscribeCategory(long categoryId)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException {
102         _mbCategoryService.unsubscribeCategory(categoryId);
103     }
104 
105     public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
106         long categoryId, long parentCategoryId, java.lang.String name,
107         java.lang.String description, java.lang.String emailAddress,
108         java.lang.String inProtocol, java.lang.String inServerName,
109         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
110         java.lang.String inPassword, int inReadInterval,
111         java.lang.String outEmailAddress, boolean outCustom,
112         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
113         java.lang.String outUserName, java.lang.String outPassword,
114         boolean mailingListActive, boolean mergeWithParentCategory)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return _mbCategoryService.updateCategory(categoryId, parentCategoryId,
118             name, description, emailAddress, inProtocol, inServerName,
119             inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
120             outEmailAddress, outCustom, outServerName, outServerPort,
121             outUseSSL, outUserName, outPassword, mailingListActive,
122             mergeWithParentCategory);
123     }
124 
125     public MBCategoryService getWrappedMBCategoryService() {
126         return _mbCategoryService;
127     }
128 
129     private MBCategoryService _mbCategoryService;
130 }