1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  
18  /**
19   * <a href="MBCategoryServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link MBCategoryService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       MBCategoryService
32   * @generated
33   */
34  public class MBCategoryServiceWrapper implements MBCategoryService {
35      public MBCategoryServiceWrapper(MBCategoryService mbCategoryService) {
36          _mbCategoryService = mbCategoryService;
37      }
38  
39      public com.liferay.portlet.messageboards.model.MBCategory addCategory(
40          long parentCategoryId, java.lang.String name,
41          java.lang.String description, java.lang.String emailAddress,
42          java.lang.String inProtocol, java.lang.String inServerName,
43          int inServerPort, boolean inUseSSL, java.lang.String inUserName,
44          java.lang.String inPassword, int inReadInterval,
45          java.lang.String outEmailAddress, boolean outCustom,
46          java.lang.String outServerName, int outServerPort, boolean outUseSSL,
47          java.lang.String outUserName, java.lang.String outPassword,
48          boolean mailingListActive,
49          com.liferay.portal.service.ServiceContext serviceContext)
50          throws com.liferay.portal.kernel.exception.PortalException,
51              com.liferay.portal.kernel.exception.SystemException {
52          return _mbCategoryService.addCategory(parentCategoryId, name,
53              description, emailAddress, inProtocol, inServerName, inServerPort,
54              inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
55              outCustom, outServerName, outServerPort, outUseSSL, outUserName,
56              outPassword, mailingListActive, serviceContext);
57      }
58  
59      public void deleteCategory(long groupId, long categoryId)
60          throws com.liferay.portal.kernel.exception.PortalException,
61              com.liferay.portal.kernel.exception.SystemException {
62          _mbCategoryService.deleteCategory(groupId, categoryId);
63      }
64  
65      public com.liferay.portlet.messageboards.model.MBCategory getCategory(
66          long categoryId)
67          throws com.liferay.portal.kernel.exception.PortalException,
68              com.liferay.portal.kernel.exception.SystemException {
69          return _mbCategoryService.getCategory(categoryId);
70      }
71  
72      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
73          long groupId, long parentCategoryId, int start, int end)
74          throws com.liferay.portal.kernel.exception.PortalException,
75              com.liferay.portal.kernel.exception.SystemException {
76          return _mbCategoryService.getCategories(groupId, parentCategoryId,
77              start, end);
78      }
79  
80      public int getCategoriesCount(long groupId, long parentCategoryId)
81          throws com.liferay.portal.kernel.exception.SystemException {
82          return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId);
83      }
84  
85      public void subscribeCategory(long groupId, long categoryId)
86          throws com.liferay.portal.kernel.exception.PortalException,
87              com.liferay.portal.kernel.exception.SystemException {
88          _mbCategoryService.subscribeCategory(groupId, categoryId);
89      }
90  
91      public void unsubscribeCategory(long groupId, long categoryId)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          _mbCategoryService.unsubscribeCategory(groupId, categoryId);
95      }
96  
97      public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
98          long categoryId, long parentCategoryId, java.lang.String name,
99          java.lang.String description, java.lang.String emailAddress,
100         java.lang.String inProtocol, java.lang.String inServerName,
101         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
102         java.lang.String inPassword, int inReadInterval,
103         java.lang.String outEmailAddress, boolean outCustom,
104         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
105         java.lang.String outUserName, java.lang.String outPassword,
106         boolean mailingListActive, boolean mergeWithParentCategory,
107         com.liferay.portal.service.ServiceContext serviceContext)
108         throws com.liferay.portal.kernel.exception.PortalException,
109             com.liferay.portal.kernel.exception.SystemException {
110         return _mbCategoryService.updateCategory(categoryId, parentCategoryId,
111             name, description, emailAddress, inProtocol, inServerName,
112             inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
113             outEmailAddress, outCustom, outServerName, outServerPort,
114             outUseSSL, outUserName, outPassword, mailingListActive,
115             mergeWithParentCategory, serviceContext);
116     }
117 
118     public MBCategoryService getWrappedMBCategoryService() {
119         return _mbCategoryService;
120     }
121 
122     private MBCategoryService _mbCategoryService;
123 }