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