001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface MBThreadLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.messageboards.model.MBThread addMBThread(
054 com.liferay.portlet.messageboards.model.MBThread mbThread)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.messageboards.model.MBThread createMBThread(
064 long threadId);
065
066
073 public void deleteMBThread(long threadId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteMBThread(
084 com.liferay.portlet.messageboards.model.MBThread mbThread)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portlet.messageboards.model.MBThread fetchMBThread(
151 long threadId)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portlet.messageboards.model.MBThread getMBThread(
164 long threadId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portal.model.PersistedModel getPersistedModel(
170 java.io.Serializable primaryKeyObj)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
188 int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public int getMBThreadsCount()
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201
208 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
209 com.liferay.portlet.messageboards.model.MBThread mbThread)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212
220 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
221 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
222 throws com.liferay.portal.kernel.exception.SystemException;
223
224
229 public java.lang.String getBeanIdentifier();
230
231
236 public void setBeanIdentifier(java.lang.String beanIdentifier);
237
238 public com.liferay.portlet.messageboards.model.MBThread addThread(
239 long categoryId,
240 com.liferay.portlet.messageboards.model.MBMessage message)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException;
243
244 public void deleteThread(long threadId)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException;
247
248 public void deleteThread(
249 com.liferay.portlet.messageboards.model.MBThread thread)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253 public void deleteThreads(long groupId, long categoryId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public com.liferay.portlet.messageboards.model.MBThread fetchThread(
259 long threadId)
260 throws com.liferay.portal.kernel.exception.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public int getCategoryThreadsCount(long groupId, long categoryId, int status)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
268 long groupId, int status, int start, int end)
269 throws com.liferay.portal.kernel.exception.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
273 long groupId, long userId, int status, boolean subscribed,
274 boolean includeAnonymous, int start, int end)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
280 long groupId, long userId, int status, boolean subscribed, int start,
281 int end)
282 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
287 long groupId, long userId, int status, int start, int end)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int getGroupThreadsCount(long groupId, int status)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public int getGroupThreadsCount(long groupId, long userId, int status)
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public int getGroupThreadsCount(long groupId, long userId, int status,
301 boolean subscribed)
302 throws com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public int getGroupThreadsCount(long groupId, long userId, int status,
306 boolean subscribed, boolean includeAnonymous)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads()
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
315 long categoryId, double priority)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
321 long categoryId, double priority, boolean inherit)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public com.liferay.portlet.messageboards.model.MBThread getThread(
327 long threadId)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException;
330
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
333 long groupId, long categoryId, int status, int start, int end)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public int getThreadsCount(long groupId, long categoryId, int status)
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public boolean hasAnswerMessage(long threadId)
342 throws com.liferay.portal.kernel.exception.SystemException;
343
344 public com.liferay.portlet.messageboards.model.MBThread incrementViewCounter(
345 long threadId, int increment)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 public com.liferay.portlet.messageboards.model.MBThread moveThread(
350 long groupId, long categoryId, long threadId)
351 throws com.liferay.portal.kernel.exception.PortalException,
352 com.liferay.portal.kernel.exception.SystemException;
353
354 public com.liferay.portlet.messageboards.model.MBThread splitThread(
355 long messageId, java.lang.String subject,
356 com.liferay.portal.service.ServiceContext serviceContext)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException;
359
360 public void updateQuestion(long threadId, boolean question)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException;
363
364
367 public com.liferay.portlet.messageboards.model.MBThread updateThread(
368 long threadId, int viewCount)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException;
371 }