1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="MBThreadLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       MBThreadLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface MBThreadLocalService {
50      public com.liferay.portlet.messageboards.model.MBThread addMBThread(
51          com.liferay.portlet.messageboards.model.MBThread mbThread)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.messageboards.model.MBThread createMBThread(
55          long threadId);
56  
57      public void deleteMBThread(long threadId)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteMBThread(
62          com.liferay.portlet.messageboards.model.MBThread mbThread)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.messageboards.model.MBThread getMBThread(
75          long threadId)
76          throws com.liferay.portal.kernel.exception.PortalException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80      public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
81          int start, int end)
82          throws com.liferay.portal.kernel.exception.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public int getMBThreadsCount()
86          throws com.liferay.portal.kernel.exception.SystemException;
87  
88      public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
89          com.liferay.portlet.messageboards.model.MBThread mbThread)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
93          com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public void deleteThread(long threadId)
97          throws com.liferay.portal.kernel.exception.PortalException,
98              com.liferay.portal.kernel.exception.SystemException;
99  
100     public void deleteThread(
101         com.liferay.portlet.messageboards.model.MBThread thread)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException;
104 
105     public void deleteThreads(long groupId, long categoryId)
106         throws com.liferay.portal.kernel.exception.PortalException,
107             com.liferay.portal.kernel.exception.SystemException;
108 
109     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110     public int getCategoryThreadsCount(long groupId, long categoryId, int status)
111         throws com.liferay.portal.kernel.exception.SystemException;
112 
113     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
115         long groupId, int status, int start, int end)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
120         long groupId, long userId, int status, int start, int end)
121         throws com.liferay.portal.kernel.exception.PortalException,
122             com.liferay.portal.kernel.exception.SystemException;
123 
124     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
126         long groupId, long userId, int status, boolean subscribed, int start,
127         int end)
128         throws com.liferay.portal.kernel.exception.PortalException,
129             com.liferay.portal.kernel.exception.SystemException;
130 
131     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
133         long groupId, long userId, int status, boolean subscribed,
134         boolean includeAnonymous, int start, int end)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException;
137 
138     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139     public int getGroupThreadsCount(long groupId, int status)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public int getGroupThreadsCount(long groupId, long userId, int status)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147     public int getGroupThreadsCount(long groupId, long userId, int status,
148         boolean subscribed)
149         throws com.liferay.portal.kernel.exception.SystemException;
150 
151     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152     public int getGroupThreadsCount(long groupId, long userId, int status,
153         boolean subscribed, boolean includeAnonymous)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
158         long categoryId, double priority)
159         throws com.liferay.portal.kernel.exception.PortalException,
160             com.liferay.portal.kernel.exception.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
164         long categoryId, double priority, boolean inherit)
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.portlet.messageboards.model.MBThread getThread(
170         long threadId)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
176         long groupId, long categoryId, int status, int start, int end)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public int getThreadsCount(long groupId, long categoryId, int status)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public com.liferay.portlet.messageboards.model.MBThread moveThread(
184         long groupId, long categoryId, long threadId)
185         throws com.liferay.portal.kernel.exception.PortalException,
186             com.liferay.portal.kernel.exception.SystemException;
187 
188     public com.liferay.portlet.messageboards.model.MBThread splitThread(
189         long messageId, com.liferay.portal.service.ServiceContext serviceContext)
190         throws com.liferay.portal.kernel.exception.PortalException,
191             com.liferay.portal.kernel.exception.SystemException;
192 
193     public com.liferay.portlet.messageboards.model.MBThread updateThread(
194         long threadId, int viewCount)
195         throws com.liferay.portal.kernel.exception.PortalException,
196             com.liferay.portal.kernel.exception.SystemException;
197 }