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