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.SystemException {
75          return _mbCategoryService.getCategories(groupId, parentCategoryId,
76              start, end);
77      }
78  
79      public int getCategoriesCount(long groupId, long parentCategoryId)
80          throws com.liferay.portal.kernel.exception.SystemException {
81          return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId);
82      }
83  
84      public java.util.List<java.lang.Long> getSubcategoryIds(
85          java.util.List<java.lang.Long> categoryIds, long groupId,
86          long categoryId)
87          throws com.liferay.portal.kernel.exception.SystemException {
88          return _mbCategoryService.getSubcategoryIds(categoryIds, groupId,
89              categoryId);
90      }
91  
92      public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
93          long groupId, long userId, int start, int end)
94          throws com.liferay.portal.kernel.exception.SystemException {
95          return _mbCategoryService.getSubscribedCategories(groupId, userId,
96              start, end);
97      }
98  
99      public int getSubscribedCategoriesCount(long groupId, long userId)
100         throws com.liferay.portal.kernel.exception.SystemException {
101         return _mbCategoryService.getSubscribedCategoriesCount(groupId, userId);
102     }
103 
104     public void subscribeCategory(long groupId, long categoryId)
105         throws com.liferay.portal.kernel.exception.PortalException,
106             com.liferay.portal.kernel.exception.SystemException {
107         _mbCategoryService.subscribeCategory(groupId, categoryId);
108     }
109 
110     public void unsubscribeCategory(long groupId, long categoryId)
111         throws com.liferay.portal.kernel.exception.PortalException,
112             com.liferay.portal.kernel.exception.SystemException {
113         _mbCategoryService.unsubscribeCategory(groupId, categoryId);
114     }
115 
116     public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
117         long categoryId, long parentCategoryId, java.lang.String name,
118         java.lang.String description, java.lang.String emailAddress,
119         java.lang.String inProtocol, java.lang.String inServerName,
120         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
121         java.lang.String inPassword, int inReadInterval,
122         java.lang.String outEmailAddress, boolean outCustom,
123         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
124         java.lang.String outUserName, java.lang.String outPassword,
125         boolean mailingListActive, boolean mergeWithParentCategory,
126         com.liferay.portal.service.ServiceContext serviceContext)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException {
129         return _mbCategoryService.updateCategory(categoryId, parentCategoryId,
130             name, description, emailAddress, inProtocol, inServerName,
131             inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
132             outEmailAddress, outCustom, outServerName, outServerPort,
133             outUseSSL, outUserName, outPassword, mailingListActive,
134             mergeWithParentCategory, serviceContext);
135     }
136 
137     public MBCategoryService getWrappedMBCategoryService() {
138         return _mbCategoryService;
139     }
140 
141     private MBCategoryService _mbCategoryService;
142 }