001
014
015 package com.liferay.portlet.messageboards.service;
016
017
026 public class MBMessageServiceWrapper implements MBMessageService {
027 public MBMessageServiceWrapper(MBMessageService mbMessageService) {
028 _mbMessageService = mbMessageService;
029 }
030
031 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
032 long groupId, java.lang.String className, long classPK,
033 java.lang.String permissionClassName, long permissionClassPK,
034 long threadId, long parentMessageId, java.lang.String subject,
035 java.lang.String body,
036 com.liferay.portal.service.ServiceContext serviceContext)
037 throws com.liferay.portal.kernel.exception.PortalException,
038 com.liferay.portal.kernel.exception.SystemException {
039 return _mbMessageService.addDiscussionMessage(groupId, className,
040 classPK, permissionClassName, permissionClassPK, threadId,
041 parentMessageId, subject, body, serviceContext);
042 }
043
044 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
045 long groupId, long categoryId, long threadId, long parentMessageId,
046 java.lang.String subject, java.lang.String body,
047 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
048 boolean anonymous, double priority, boolean allowPingbacks,
049 com.liferay.portal.service.ServiceContext serviceContext)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException {
052 return _mbMessageService.addMessage(groupId, categoryId, threadId,
053 parentMessageId, subject, body, files, anonymous, priority,
054 allowPingbacks, serviceContext);
055 }
056
057 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
058 long groupId, long categoryId, java.lang.String subject,
059 java.lang.String body,
060 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
061 boolean anonymous, double priority, boolean allowPingbacks,
062 com.liferay.portal.service.ServiceContext serviceContext)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 return _mbMessageService.addMessage(groupId, categoryId, subject, body,
066 files, anonymous, priority, allowPingbacks, serviceContext);
067 }
068
069 public void deleteDiscussionMessage(long groupId,
070 java.lang.String className, long classPK,
071 java.lang.String permissionClassName, long permissionClassPK,
072 long messageId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
076 permissionClassName, permissionClassPK, messageId);
077 }
078
079 public void deleteMessage(long messageId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException {
082 _mbMessageService.deleteMessage(messageId);
083 }
084
085 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
086 long groupId, long categoryId, int status, int start, int end)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 return _mbMessageService.getCategoryMessages(groupId, categoryId,
090 status, start, end);
091 }
092
093 public int getCategoryMessagesCount(long groupId, long categoryId,
094 int status) throws com.liferay.portal.kernel.exception.SystemException {
095 return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
096 status);
097 }
098
099 public java.lang.String getCategoryMessagesRSS(long groupId,
100 long categoryId, int status, int max, java.lang.String type,
101 double version, java.lang.String displayStyle,
102 java.lang.String feedURL, java.lang.String entryURL,
103 com.liferay.portal.theme.ThemeDisplay themeDisplay)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
107 status, max, type, version, displayStyle, feedURL, entryURL,
108 themeDisplay);
109 }
110
111 public java.lang.String getCompanyMessagesRSS(long companyId, int status,
112 int max, java.lang.String type, double version,
113 java.lang.String displayStyle, java.lang.String feedURL,
114 java.lang.String entryURL,
115 com.liferay.portal.theme.ThemeDisplay themeDisplay)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException {
118 return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
119 type, version, displayStyle, feedURL, entryURL, themeDisplay);
120 }
121
122 public java.lang.String getGroupMessagesRSS(long groupId, int status,
123 int max, java.lang.String type, double version,
124 java.lang.String displayStyle, java.lang.String feedURL,
125 java.lang.String entryURL,
126 com.liferay.portal.theme.ThemeDisplay themeDisplay)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException {
129 return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
130 type, version, displayStyle, feedURL, entryURL, themeDisplay);
131 }
132
133 public java.lang.String getGroupMessagesRSS(long groupId, long userId,
134 int status, int max, java.lang.String type, double version,
135 java.lang.String displayStyle, java.lang.String feedURL,
136 java.lang.String entryURL,
137 com.liferay.portal.theme.ThemeDisplay themeDisplay)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
140 return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
141 max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
142 }
143
144 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
145 long messageId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return _mbMessageService.getMessage(messageId);
149 }
150
151 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
152 long messageId, int status, java.lang.String threadView,
153 boolean includePrevAndNext)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException {
156 return _mbMessageService.getMessageDisplay(messageId, status,
157 threadView, includePrevAndNext);
158 }
159
160 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
161 long groupId, long categoryId, long threadId, int status, int start,
162 int end) throws com.liferay.portal.kernel.exception.SystemException {
163 return _mbMessageService.getThreadMessages(groupId, categoryId,
164 threadId, status, start, end);
165 }
166
167 public int getThreadMessagesCount(long groupId, long categoryId,
168 long threadId, int status)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return _mbMessageService.getThreadMessagesCount(groupId, categoryId,
171 threadId, status);
172 }
173
174 public java.lang.String getThreadMessagesRSS(long threadId, int status,
175 int max, java.lang.String type, double version,
176 java.lang.String displayStyle, java.lang.String feedURL,
177 java.lang.String entryURL,
178 com.liferay.portal.theme.ThemeDisplay themeDisplay)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
182 type, version, displayStyle, feedURL, entryURL, themeDisplay);
183 }
184
185 public void subscribeMessage(long messageId)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 _mbMessageService.subscribeMessage(messageId);
189 }
190
191 public void unsubscribeMessage(long messageId)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 _mbMessageService.unsubscribeMessage(messageId);
195 }
196
197 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
198 java.lang.String className, long classPK,
199 java.lang.String permissionClassName, long permissionClassPK,
200 long messageId, java.lang.String subject, java.lang.String body,
201 com.liferay.portal.service.ServiceContext serviceContext)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return _mbMessageService.updateDiscussionMessage(className, classPK,
205 permissionClassName, permissionClassPK, messageId, subject, body,
206 serviceContext);
207 }
208
209 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
210 long messageId, java.lang.String subject, java.lang.String body,
211 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
212 java.util.List<java.lang.String> existingFiles, double priority,
213 boolean allowPingbacks,
214 com.liferay.portal.service.ServiceContext serviceContext)
215 throws com.liferay.portal.kernel.exception.PortalException,
216 com.liferay.portal.kernel.exception.SystemException {
217 return _mbMessageService.updateMessage(messageId, subject, body, files,
218 existingFiles, priority, allowPingbacks, serviceContext);
219 }
220
221 public MBMessageService getWrappedMBMessageService() {
222 return _mbMessageService;
223 }
224
225 private MBMessageService _mbMessageService;
226 }