1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
42 public class MBMessageServiceWrapper implements MBMessageService {
43 public MBMessageServiceWrapper(MBMessageService mbMessageService) {
44 _mbMessageService = mbMessageService;
45 }
46
47 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
48 java.lang.String className, long classPK, long threadId,
49 long parentMessageId, java.lang.String subject, java.lang.String body,
50 com.liferay.portal.service.ServiceContext serviceContext)
51 throws com.liferay.portal.PortalException,
52 com.liferay.portal.SystemException {
53 return _mbMessageService.addDiscussionMessage(className, classPK,
54 threadId, parentMessageId, subject, body, serviceContext);
55 }
56
57 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
58 long categoryId, long threadId, long parentMessageId,
59 java.lang.String subject, java.lang.String body,
60 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
61 boolean anonymous, double priority,
62 com.liferay.portal.service.ServiceContext serviceContext)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 return _mbMessageService.addMessage(categoryId, threadId,
66 parentMessageId, subject, body, files, anonymous, priority,
67 serviceContext);
68 }
69
70 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
71 long categoryId, java.lang.String subject, java.lang.String body,
72 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
73 boolean anonymous, double priority,
74 com.liferay.portal.service.ServiceContext serviceContext)
75 throws com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException {
77 return _mbMessageService.addMessage(categoryId, subject, body, files,
78 anonymous, priority, serviceContext);
79 }
80
81 public void deleteDiscussionMessage(long groupId,
82 java.lang.String className, long classPK, long messageId)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException {
85 _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
86 messageId);
87 }
88
89 public void deleteMessage(long messageId)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException {
92 _mbMessageService.deleteMessage(messageId);
93 }
94
95 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
96 long categoryId, int start, int end)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return _mbMessageService.getCategoryMessages(categoryId, start, end);
100 }
101
102 public int getCategoryMessagesCount(long categoryId)
103 throws com.liferay.portal.SystemException {
104 return _mbMessageService.getCategoryMessagesCount(categoryId);
105 }
106
107 public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
108 java.lang.String type, double version, java.lang.String displayStyle,
109 java.lang.String feedURL, java.lang.String entryURL,
110 com.liferay.portal.theme.ThemeDisplay themeDisplay)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException {
113 return _mbMessageService.getCategoryMessagesRSS(categoryId, max, type,
114 version, displayStyle, feedURL, entryURL, themeDisplay);
115 }
116
117 public java.lang.String getCompanyMessagesRSS(long companyId, int max,
118 java.lang.String type, double version, java.lang.String displayStyle,
119 java.lang.String feedURL, java.lang.String entryURL,
120 com.liferay.portal.theme.ThemeDisplay themeDisplay)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException {
123 return _mbMessageService.getCompanyMessagesRSS(companyId, max, type,
124 version, displayStyle, feedURL, entryURL, themeDisplay);
125 }
126
127 public java.lang.String getGroupMessagesRSS(long groupId, int max,
128 java.lang.String type, double version, java.lang.String displayStyle,
129 java.lang.String feedURL, java.lang.String entryURL,
130 com.liferay.portal.theme.ThemeDisplay themeDisplay)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException {
133 return _mbMessageService.getGroupMessagesRSS(groupId, max, type,
134 version, displayStyle, feedURL, entryURL, themeDisplay);
135 }
136
137 public java.lang.String getGroupMessagesRSS(long groupId, long userId,
138 int max, java.lang.String type, double version,
139 java.lang.String displayStyle, java.lang.String feedURL,
140 java.lang.String entryURL,
141 com.liferay.portal.theme.ThemeDisplay themeDisplay)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException {
144 return _mbMessageService.getGroupMessagesRSS(groupId, userId, max,
145 type, version, displayStyle, feedURL, entryURL, themeDisplay);
146 }
147
148 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
149 long messageId)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException {
152 return _mbMessageService.getMessage(messageId);
153 }
154
155 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
156 long messageId, java.lang.String threadView)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException {
159 return _mbMessageService.getMessageDisplay(messageId, threadView);
160 }
161
162 public java.lang.String getThreadMessagesRSS(long threadId, int max,
163 java.lang.String type, double version, java.lang.String displayStyle,
164 java.lang.String feedURL, java.lang.String entryURL,
165 com.liferay.portal.theme.ThemeDisplay themeDisplay)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException {
168 return _mbMessageService.getThreadMessagesRSS(threadId, max, type,
169 version, displayStyle, feedURL, entryURL, themeDisplay);
170 }
171
172 public void subscribeMessage(long messageId)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException {
175 _mbMessageService.subscribeMessage(messageId);
176 }
177
178 public void unsubscribeMessage(long messageId)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 _mbMessageService.unsubscribeMessage(messageId);
182 }
183
184 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
185 java.lang.String className, long classPK, long messageId,
186 java.lang.String subject, java.lang.String body,
187 com.liferay.portal.service.ServiceContext serviceContext)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException {
190 return _mbMessageService.updateDiscussionMessage(className, classPK,
191 messageId, subject, body, serviceContext);
192 }
193
194 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
195 long messageId, java.lang.String subject, java.lang.String body,
196 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
197 java.util.List<String> existingFiles, double priority,
198 com.liferay.portal.service.ServiceContext serviceContext)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException {
201 return _mbMessageService.updateMessage(messageId, subject, body, files,
202 existingFiles, priority, serviceContext);
203 }
204
205 public MBMessageService getWrappedMBMessageService() {
206 return _mbMessageService;
207 }
208
209 private MBMessageService _mbMessageService;
210 }