1
19
20 package com.liferay.portlet.messageboards.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface MBMessageService {
54 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
55 long groupId, java.lang.String className, long classPK, long threadId,
56 long parentMessageId, java.lang.String subject, java.lang.String body,
57 com.liferay.portal.theme.ThemeDisplay themeDisplay)
58 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
62 long categoryId, java.lang.String subject, java.lang.String body,
63 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
64 boolean anonymous, double priority, java.lang.String[] tagsEntries,
65 boolean addCommunityPermissions, boolean addGuestPermissions)
66 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
70 long categoryId, java.lang.String subject, java.lang.String body,
71 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
72 boolean anonymous, double priority, java.lang.String[] tagsEntries,
73 java.lang.String[] communityPermissions,
74 java.lang.String[] guestPermissions)
75 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException;
77
78 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
79 long categoryId, java.lang.String subject, java.lang.String body,
80 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
81 boolean anonymous, double priority, java.lang.String[] tagsEntries,
82 javax.portlet.PortletPreferences prefs,
83 boolean addCommunityPermissions, boolean addGuestPermissions,
84 com.liferay.portal.theme.ThemeDisplay themeDisplay)
85 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException;
87
88 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
89 long categoryId, java.lang.String subject, java.lang.String body,
90 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
91 boolean anonymous, double priority, java.lang.String[] tagsEntries,
92 javax.portlet.PortletPreferences prefs,
93 java.lang.String[] communityPermissions,
94 java.lang.String[] guestPermissions,
95 com.liferay.portal.theme.ThemeDisplay themeDisplay)
96 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
100 long categoryId, long threadId, long parentMessageId,
101 java.lang.String subject, java.lang.String body,
102 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
103 boolean anonymous, double priority, java.lang.String[] tagsEntries,
104 boolean addCommunityPermissions, boolean addGuestPermissions)
105 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
109 long categoryId, long threadId, long parentMessageId,
110 java.lang.String subject, java.lang.String body,
111 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
112 boolean anonymous, double priority, java.lang.String[] tagsEntries,
113 java.lang.String[] communityPermissions,
114 java.lang.String[] guestPermissions)
115 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException;
117
118 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
119 long categoryId, long threadId, long parentMessageId,
120 java.lang.String subject, java.lang.String body,
121 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
122 boolean anonymous, double priority, java.lang.String[] tagsEntries,
123 javax.portlet.PortletPreferences prefs,
124 boolean addCommunityPermissions, boolean addGuestPermissions,
125 com.liferay.portal.theme.ThemeDisplay themeDisplay)
126 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException;
128
129 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
130 long categoryId, long threadId, long parentMessageId,
131 java.lang.String subject, java.lang.String body,
132 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
133 boolean anonymous, double priority, java.lang.String[] tagsEntries,
134 javax.portlet.PortletPreferences prefs,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions,
137 com.liferay.portal.theme.ThemeDisplay themeDisplay)
138 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException;
140
141 public void deleteDiscussionMessage(long groupId,
142 java.lang.String className, long classPK, long messageId)
143 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException;
145
146 public void deleteMessage(long messageId)
147 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
152 long categoryId, int start, int end)
153 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public int getCategoryMessagesCount(long categoryId)
158 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
162 java.lang.String type, double version, java.lang.String displayStyle,
163 java.lang.String feedURL, java.lang.String entryURL,
164 com.liferay.portal.theme.ThemeDisplay themeDisplay)
165 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public java.lang.String getCompanyMessagesRSS(long companyId, int max,
170 java.lang.String type, double version, java.lang.String displayStyle,
171 java.lang.String feedURL, java.lang.String entryURL,
172 com.liferay.portal.theme.ThemeDisplay themeDisplay)
173 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.lang.String getGroupMessagesRSS(long groupId, int max,
178 java.lang.String type, double version, java.lang.String displayStyle,
179 java.lang.String feedURL, java.lang.String entryURL,
180 com.liferay.portal.theme.ThemeDisplay themeDisplay)
181 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
182 com.liferay.portal.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.lang.String getGroupMessagesRSS(long groupId, long userId,
186 int max, java.lang.String type, double version,
187 java.lang.String displayStyle, java.lang.String feedURL,
188 java.lang.String entryURL,
189 com.liferay.portal.theme.ThemeDisplay themeDisplay)
190 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
195 long messageId)
196 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException;
198
199 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
200 long messageId)
201 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public java.lang.String getThreadMessagesRSS(long threadId, int max,
206 java.lang.String type, double version, java.lang.String displayStyle,
207 java.lang.String feedURL, java.lang.String entryURL,
208 com.liferay.portal.theme.ThemeDisplay themeDisplay)
209 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException;
211
212 public void subscribeMessage(long messageId)
213 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException;
215
216 public void unsubscribeMessage(long messageId)
217 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException;
219
220 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
221 long groupId, java.lang.String className, long classPK, long messageId,
222 java.lang.String subject, java.lang.String body)
223 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException;
225
226 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
227 long messageId, java.lang.String subject, java.lang.String body,
228 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
229 java.util.List<String> existingFiles, double priority,
230 java.lang.String[] tagsEntries)
231 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
232 com.liferay.portal.SystemException;
233
234 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
235 long messageId, java.lang.String subject, java.lang.String body,
236 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
237 java.util.List<String> existingFiles, double priority,
238 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
239 com.liferay.portal.theme.ThemeDisplay themeDisplay)
240 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
241 com.liferay.portal.SystemException;
242 }