1
22
23 package com.liferay.portlet.messageboards.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface MBThreadLocalService {
58 public com.liferay.portlet.messageboards.model.MBThread addMBThread(
59 com.liferay.portlet.messageboards.model.MBThread mbThread)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.messageboards.model.MBThread createMBThread(
63 long threadId);
64
65 public void deleteMBThread(long threadId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 public void deleteMBThread(
70 com.liferay.portlet.messageboards.model.MBThread mbThread)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.messageboards.model.MBThread getMBThread(
83 long threadId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
89 int start, int end) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getMBThreadsCount() throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
95 com.liferay.portlet.messageboards.model.MBThread mbThread)
96 throws com.liferay.portal.SystemException;
97
98 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
99 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
100 throws com.liferay.portal.SystemException;
101
102 public void deleteThread(long threadId)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public void deleteThread(
107 com.liferay.portlet.messageboards.model.MBThread thread)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 public void deleteThreads(long categoryId)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public int getCategoryThreadsCount(long categoryId)
117 throws com.liferay.portal.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
121 long groupId, int start, int end)
122 throws com.liferay.portal.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, boolean subscribed,
127 boolean includeAnonymous, int start, int end)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.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, boolean subscribed, int start, int end)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
139 long groupId, long userId, int start, int end)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public int getGroupThreadsCount(long groupId)
145 throws com.liferay.portal.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public int getGroupThreadsCount(long groupId, long userId)
149 throws com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public int getGroupThreadsCount(long groupId, long userId,
153 boolean subscribed) throws com.liferay.portal.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public int getGroupThreadsCount(long groupId, long userId,
157 boolean subscribed, boolean includeAnonymous)
158 throws com.liferay.portal.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public com.liferay.portlet.messageboards.model.MBThread getThread(
162 long threadId)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
168 long categoryId, int start, int end)
169 throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public int getThreadsCount(long categoryId)
173 throws com.liferay.portal.SystemException;
174
175 public com.liferay.portlet.messageboards.model.MBThread moveThread(
176 long categoryId, long threadId)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException;
179
180 public com.liferay.portlet.messageboards.model.MBThread splitThread(
181 long messageId, com.liferay.portal.service.ServiceContext serviceContext)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException;
184
185 public com.liferay.portlet.messageboards.model.MBThread updateThread(
186 long threadId, int viewCount)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException;
189 }