1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
47 public class MBThreadLocalServiceUtil {
48 public static com.liferay.portlet.messageboards.model.MBThread addMBThread(
49 com.liferay.portlet.messageboards.model.MBThread mbThread)
50 throws com.liferay.portal.SystemException {
51 return _service.addMBThread(mbThread);
52 }
53
54 public static void deleteMBThread(long threadId)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException {
57 _service.deleteMBThread(threadId);
58 }
59
60 public static void deleteMBThread(
61 com.liferay.portlet.messageboards.model.MBThread mbThread)
62 throws com.liferay.portal.SystemException {
63 _service.deleteMBThread(mbThread);
64 }
65
66 public static java.util.List<Object> dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return _service.dynamicQuery(dynamicQuery);
70 }
71
72 public static java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74 int end) throws com.liferay.portal.SystemException {
75 return _service.dynamicQuery(dynamicQuery, start, end);
76 }
77
78 public static com.liferay.portlet.messageboards.model.MBThread getMBThread(
79 long threadId)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException {
82 return _service.getMBThread(threadId);
83 }
84
85 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
86 int start, int end) throws com.liferay.portal.SystemException {
87 return _service.getMBThreads(start, end);
88 }
89
90 public static int getMBThreadsCount()
91 throws com.liferay.portal.SystemException {
92 return _service.getMBThreadsCount();
93 }
94
95 public static com.liferay.portlet.messageboards.model.MBThread updateMBThread(
96 com.liferay.portlet.messageboards.model.MBThread mbThread)
97 throws com.liferay.portal.SystemException {
98 return _service.updateMBThread(mbThread);
99 }
100
101 public static void deleteThread(long threadId)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException {
104 _service.deleteThread(threadId);
105 }
106
107 public static void deleteThread(
108 com.liferay.portlet.messageboards.model.MBThread thread)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException {
111 _service.deleteThread(thread);
112 }
113
114 public static void deleteThreads(long categoryId)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException {
117 _service.deleteThreads(categoryId);
118 }
119
120 public static int getCategoriesThreadsCount(
121 java.util.List<Long> categoryIds)
122 throws com.liferay.portal.SystemException {
123 return _service.getCategoriesThreadsCount(categoryIds);
124 }
125
126 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
127 long groupId, int start, int end)
128 throws com.liferay.portal.SystemException {
129 return _service.getGroupThreads(groupId, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
133 long groupId, long userId, int start, int end)
134 throws com.liferay.portal.SystemException {
135 return _service.getGroupThreads(groupId, userId, start, end);
136 }
137
138 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
139 long groupId, long userId, boolean subscribed, int start, int end)
140 throws com.liferay.portal.SystemException {
141 return _service.getGroupThreads(groupId, userId, subscribed, start, end);
142 }
143
144 public static int getGroupThreadsCount(long groupId)
145 throws com.liferay.portal.SystemException {
146 return _service.getGroupThreadsCount(groupId);
147 }
148
149 public static int getGroupThreadsCount(long groupId, long userId)
150 throws com.liferay.portal.SystemException {
151 return _service.getGroupThreadsCount(groupId, userId);
152 }
153
154 public static int getGroupThreadsCount(long groupId, long userId,
155 boolean subscribed) throws com.liferay.portal.SystemException {
156 return _service.getGroupThreadsCount(groupId, userId, subscribed);
157 }
158
159 public static com.liferay.portlet.messageboards.model.MBThread getThread(
160 long threadId)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException {
163 return _service.getThread(threadId);
164 }
165
166 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
167 long categoryId, int start, int end)
168 throws com.liferay.portal.SystemException {
169 return _service.getThreads(categoryId, start, end);
170 }
171
172 public static int getThreadsCount(long categoryId)
173 throws com.liferay.portal.SystemException {
174 return _service.getThreadsCount(categoryId);
175 }
176
177 public static boolean hasReadThread(long userId, long threadId)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException {
180 return _service.hasReadThread(userId, threadId);
181 }
182
183 public static com.liferay.portlet.messageboards.model.MBThread moveThread(
184 long categoryId, long threadId)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException {
187 return _service.moveThread(categoryId, threadId);
188 }
189
190 public static com.liferay.portlet.messageboards.model.MBThread splitThread(
191 long messageId, javax.portlet.PortletPreferences prefs,
192 com.liferay.portal.theme.ThemeDisplay themeDisplay)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException {
195 return _service.splitThread(messageId, prefs, themeDisplay);
196 }
197
198 public static com.liferay.portlet.messageboards.model.MBThread updateThread(
199 long threadId, int viewCount)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException {
202 return _service.updateThread(threadId, viewCount);
203 }
204
205 public static MBThreadLocalService getService() {
206 return _service;
207 }
208
209 public void setService(MBThreadLocalService service) {
210 _service = service;
211 }
212
213 private static MBThreadLocalService _service;
214 }