1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  /**
18   * <a href="MBCategoryServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link MBCategoryService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       MBCategoryService
31   * @generated
32   */
33  public class MBCategoryServiceWrapper implements MBCategoryService {
34      public MBCategoryServiceWrapper(MBCategoryService mbCategoryService) {
35          _mbCategoryService = mbCategoryService;
36      }
37  
38      public com.liferay.portlet.messageboards.model.MBCategory addCategory(
39          long parentCategoryId, java.lang.String name,
40          java.lang.String description, java.lang.String emailAddress,
41          java.lang.String inProtocol, java.lang.String inServerName,
42          int inServerPort, boolean inUseSSL, java.lang.String inUserName,
43          java.lang.String inPassword, int inReadInterval,
44          java.lang.String outEmailAddress, boolean outCustom,
45          java.lang.String outServerName, int outServerPort, boolean outUseSSL,
46          java.lang.String outUserName, java.lang.String outPassword,
47          boolean mailingListActive,
48          com.liferay.portal.service.ServiceContext serviceContext)
49          throws com.liferay.portal.PortalException,
50              com.liferay.portal.SystemException {
51          return _mbCategoryService.addCategory(parentCategoryId, name,
52              description, emailAddress, inProtocol, inServerName, inServerPort,
53              inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
54              outCustom, outServerName, outServerPort, outUseSSL, outUserName,
55              outPassword, mailingListActive, serviceContext);
56      }
57  
58      public void deleteCategory(long categoryId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          _mbCategoryService.deleteCategory(categoryId);
62      }
63  
64      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
65          long groupId, long parentCategoryId, int start, int end)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException {
68          return _mbCategoryService.getCategories(groupId, parentCategoryId,
69              start, end);
70      }
71  
72      public int getCategoriesCount(long groupId, long parentCategoryId)
73          throws com.liferay.portal.SystemException {
74          return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId);
75      }
76  
77      public com.liferay.portlet.messageboards.model.MBCategory getCategory(
78          long categoryId)
79          throws com.liferay.portal.PortalException,
80              com.liferay.portal.SystemException {
81          return _mbCategoryService.getCategory(categoryId);
82      }
83  
84      public void subscribeCategory(long categoryId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          _mbCategoryService.subscribeCategory(categoryId);
88      }
89  
90      public void unsubscribeCategory(long categoryId)
91          throws com.liferay.portal.PortalException,
92              com.liferay.portal.SystemException {
93          _mbCategoryService.unsubscribeCategory(categoryId);
94      }
95  
96      public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
97          long categoryId, long parentCategoryId, java.lang.String name,
98          java.lang.String description, java.lang.String emailAddress,
99          java.lang.String inProtocol, java.lang.String inServerName,
100         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
101         java.lang.String inPassword, int inReadInterval,
102         java.lang.String outEmailAddress, boolean outCustom,
103         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
104         java.lang.String outUserName, java.lang.String outPassword,
105         boolean mailingListActive, boolean mergeWithParentCategory)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         return _mbCategoryService.updateCategory(categoryId, parentCategoryId,
109             name, description, emailAddress, inProtocol, inServerName,
110             inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
111             outEmailAddress, outCustom, outServerName, outServerPort,
112             outUseSSL, outUserName, outPassword, mailingListActive,
113             mergeWithParentCategory);
114     }
115 
116     public MBCategoryService getWrappedMBCategoryService() {
117         return _mbCategoryService;
118     }
119 
120     private MBCategoryService _mbCategoryService;
121 }