1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
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 }