1
14
15 package com.liferay.portlet.messageboards.service;
16
17
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 }