1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
53 public class MBBanLocalServiceUtil {
54 public static com.liferay.portlet.messageboards.model.MBBan addMBBan(
55 com.liferay.portlet.messageboards.model.MBBan model)
56 throws com.liferay.portal.SystemException {
57 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
58
59 return mbBanLocalService.addMBBan(model);
60 }
61
62 public static java.util.List dynamicQuery(
63 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64 throws com.liferay.portal.SystemException {
65 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
66
67 return mbBanLocalService.dynamicQuery(queryInitializer);
68 }
69
70 public static java.util.List dynamicQuery(
71 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72 int begin, int end) throws com.liferay.portal.SystemException {
73 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
74
75 return mbBanLocalService.dynamicQuery(queryInitializer, begin, end);
76 }
77
78 public static com.liferay.portlet.messageboards.model.MBBan updateMBBan(
79 com.liferay.portlet.messageboards.model.MBBan model)
80 throws com.liferay.portal.SystemException {
81 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
82
83 return mbBanLocalService.updateMBBan(model);
84 }
85
86 public static com.liferay.portlet.messageboards.service.persistence.MBBanPersistence getMBBanPersistence() {
87 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
88
89 return mbBanLocalService.getMBBanPersistence();
90 }
91
92 public static void setMBBanPersistence(
93 com.liferay.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence) {
94 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
95
96 mbBanLocalService.setMBBanPersistence(mbBanPersistence);
97 }
98
99 public static com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence getMBCategoryPersistence() {
100 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
101
102 return mbBanLocalService.getMBCategoryPersistence();
103 }
104
105 public static void setMBCategoryPersistence(
106 com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence mbCategoryPersistence) {
107 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
108
109 mbBanLocalService.setMBCategoryPersistence(mbCategoryPersistence);
110 }
111
112 public static com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder getMBCategoryFinder() {
113 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
114
115 return mbBanLocalService.getMBCategoryFinder();
116 }
117
118 public static void setMBCategoryFinder(
119 com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder mbCategoryFinder) {
120 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
121
122 mbBanLocalService.setMBCategoryFinder(mbCategoryFinder);
123 }
124
125 public static com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence getMBDiscussionPersistence() {
126 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
127
128 return mbBanLocalService.getMBDiscussionPersistence();
129 }
130
131 public static void setMBDiscussionPersistence(
132 com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence mbDiscussionPersistence) {
133 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
134
135 mbBanLocalService.setMBDiscussionPersistence(mbDiscussionPersistence);
136 }
137
138 public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
139 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
140
141 return mbBanLocalService.getMBMessagePersistence();
142 }
143
144 public static void setMBMessagePersistence(
145 com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
146 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
147
148 mbBanLocalService.setMBMessagePersistence(mbMessagePersistence);
149 }
150
151 public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
152 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
153
154 return mbBanLocalService.getMBMessageFinder();
155 }
156
157 public static void setMBMessageFinder(
158 com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
159 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
160
161 mbBanLocalService.setMBMessageFinder(mbMessageFinder);
162 }
163
164 public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence getMBMessageFlagPersistence() {
165 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
166
167 return mbBanLocalService.getMBMessageFlagPersistence();
168 }
169
170 public static void setMBMessageFlagPersistence(
171 com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence mbMessageFlagPersistence) {
172 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
173
174 mbBanLocalService.setMBMessageFlagPersistence(mbMessageFlagPersistence);
175 }
176
177 public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder getMBMessageFlagFinder() {
178 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
179
180 return mbBanLocalService.getMBMessageFlagFinder();
181 }
182
183 public static void setMBMessageFlagFinder(
184 com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder mbMessageFlagFinder) {
185 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
186
187 mbBanLocalService.setMBMessageFlagFinder(mbMessageFlagFinder);
188 }
189
190 public static com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence getMBStatsUserPersistence() {
191 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
192
193 return mbBanLocalService.getMBStatsUserPersistence();
194 }
195
196 public static void setMBStatsUserPersistence(
197 com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence) {
198 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
199
200 mbBanLocalService.setMBStatsUserPersistence(mbStatsUserPersistence);
201 }
202
203 public static com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence getMBThreadPersistence() {
204 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
205
206 return mbBanLocalService.getMBThreadPersistence();
207 }
208
209 public static void setMBThreadPersistence(
210 com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence mbThreadPersistence) {
211 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
212
213 mbBanLocalService.setMBThreadPersistence(mbThreadPersistence);
214 }
215
216 public static com.liferay.portlet.messageboards.service.persistence.MBThreadFinder getMBThreadFinder() {
217 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
218
219 return mbBanLocalService.getMBThreadFinder();
220 }
221
222 public static void setMBThreadFinder(
223 com.liferay.portlet.messageboards.service.persistence.MBThreadFinder mbThreadFinder) {
224 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
225
226 mbBanLocalService.setMBThreadFinder(mbThreadFinder);
227 }
228
229 public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
230 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
231
232 return mbBanLocalService.getUserPersistence();
233 }
234
235 public static void setUserPersistence(
236 com.liferay.portal.service.persistence.UserPersistence userPersistence) {
237 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
238
239 mbBanLocalService.setUserPersistence(userPersistence);
240 }
241
242 public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
243 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
244
245 return mbBanLocalService.getUserFinder();
246 }
247
248 public static void setUserFinder(
249 com.liferay.portal.service.persistence.UserFinder userFinder) {
250 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
251
252 mbBanLocalService.setUserFinder(userFinder);
253 }
254
255 public static void afterPropertiesSet() {
256 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
257
258 mbBanLocalService.afterPropertiesSet();
259 }
260
261 public static com.liferay.portlet.messageboards.model.MBBan addBan(
262 long userId, long plid, long banUserId)
263 throws com.liferay.portal.PortalException,
264 com.liferay.portal.SystemException {
265 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
266
267 return mbBanLocalService.addBan(userId, plid, banUserId);
268 }
269
270 public static void checkBan(long groupId, long banUserId)
271 throws com.liferay.portal.PortalException,
272 com.liferay.portal.SystemException {
273 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
274
275 mbBanLocalService.checkBan(groupId, banUserId);
276 }
277
278 public static void deleteBan(long plid, long banUserId)
279 throws com.liferay.portal.PortalException,
280 com.liferay.portal.SystemException {
281 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
282
283 mbBanLocalService.deleteBan(plid, banUserId);
284 }
285
286 public static void deleteBansByBanUserId(long banUserId)
287 throws com.liferay.portal.SystemException {
288 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
289
290 mbBanLocalService.deleteBansByBanUserId(banUserId);
291 }
292
293 public static void deleteBansByGroupId(long groupId)
294 throws com.liferay.portal.SystemException {
295 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
296
297 mbBanLocalService.deleteBansByGroupId(groupId);
298 }
299
300 public static void expireBans() throws com.liferay.portal.SystemException {
301 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
302
303 mbBanLocalService.expireBans();
304 }
305
306 public static java.util.List getBans(long groupId, int start, int end)
307 throws com.liferay.portal.SystemException {
308 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
309
310 return mbBanLocalService.getBans(groupId, start, end);
311 }
312
313 public static int getBansCount(long groupId)
314 throws com.liferay.portal.SystemException {
315 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
316
317 return mbBanLocalService.getBansCount(groupId);
318 }
319
320 public static boolean hasBan(long groupId, long banUserId)
321 throws com.liferay.portal.SystemException {
322 MBBanLocalService mbBanLocalService = MBBanLocalServiceFactory.getService();
323
324 return mbBanLocalService.hasBan(groupId, banUserId);
325 }
326 }