1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
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.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.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteMBThread(
62 com.liferay.portlet.messageboards.model.MBThread mbThread)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.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.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.PortalException,
77 com.liferay.portal.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) throws com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public int getMBThreadsCount() throws com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
87 com.liferay.portlet.messageboards.model.MBThread mbThread)
88 throws com.liferay.portal.SystemException;
89
90 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
91 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
92 throws com.liferay.portal.SystemException;
93
94 public void deleteThread(long threadId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 public void deleteThread(
99 com.liferay.portlet.messageboards.model.MBThread thread)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 public void deleteThreads(long categoryId)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public int getCategoriesThreadsCount(java.util.List<Long> categoryIds)
109 throws com.liferay.portal.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public int getCategoryThreadsCount(long categoryId)
113 throws com.liferay.portal.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
117 long groupId, int start, int end)
118 throws com.liferay.portal.SystemException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
122 long groupId, long userId, boolean subscribed,
123 boolean includeAnonymous, int start, int end)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
129 long groupId, long userId, boolean subscribed, int start, int end)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
135 long groupId, long userId, int start, int end)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public int getGroupThreadsCount(long groupId)
141 throws com.liferay.portal.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public int getGroupThreadsCount(long groupId, long userId)
145 throws com.liferay.portal.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public int getGroupThreadsCount(long groupId, long userId,
149 boolean subscribed) throws com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public int getGroupThreadsCount(long groupId, long userId,
153 boolean subscribed, boolean includeAnonymous)
154 throws com.liferay.portal.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.PortalException,
160 com.liferay.portal.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.PortalException,
166 com.liferay.portal.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.PortalException,
172 com.liferay.portal.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
176 long categoryId, int start, int end)
177 throws com.liferay.portal.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public int getThreadsCount(long categoryId)
181 throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public boolean hasReadThread(long userId, long threadId)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException;
187
188 public com.liferay.portlet.messageboards.model.MBThread moveThread(
189 long categoryId, long threadId)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException;
192
193 public com.liferay.portlet.messageboards.model.MBThread splitThread(
194 long messageId, javax.portlet.PortletPreferences prefs,
195 com.liferay.portal.theme.ThemeDisplay themeDisplay)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException;
198
199 public com.liferay.portlet.messageboards.model.MBThread updateThread(
200 long threadId, int viewCount)
201 throws com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException;
203 }