1
14
15 package com.liferay.portlet.blogs.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class BlogsEntryLocalServiceUtil {
42 public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
43 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
44 throws com.liferay.portal.SystemException {
45 return getService().addBlogsEntry(blogsEntry);
46 }
47
48 public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
49 long entryId) {
50 return getService().createBlogsEntry(entryId);
51 }
52
53 public static void deleteBlogsEntry(long entryId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteBlogsEntry(entryId);
57 }
58
59 public static void deleteBlogsEntry(
60 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
61 throws com.liferay.portal.SystemException {
62 getService().deleteBlogsEntry(blogsEntry);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
96 long entryId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getBlogsEntry(entryId);
100 }
101
102 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
103 java.lang.String uuid, long groupId)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 return getService().getBlogsEntryByUuidAndGroupId(uuid, groupId);
107 }
108
109 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
110 int start, int end) throws com.liferay.portal.SystemException {
111 return getService().getBlogsEntries(start, end);
112 }
113
114 public static int getBlogsEntriesCount()
115 throws com.liferay.portal.SystemException {
116 return getService().getBlogsEntriesCount();
117 }
118
119 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
120 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
121 throws com.liferay.portal.SystemException {
122 return getService().updateBlogsEntry(blogsEntry);
123 }
124
125 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
126 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
127 throws com.liferay.portal.SystemException {
128 return getService().updateBlogsEntry(blogsEntry, merge);
129 }
130
131 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
132 long userId, java.lang.String title, java.lang.String content,
133 int displayDateMonth, int displayDateDay, int displayDateYear,
134 int displayDateHour, int displayDateMinute, boolean draft,
135 boolean allowTrackbacks, java.lang.String[] trackbacks,
136 com.liferay.portal.service.ServiceContext serviceContext)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 return getService()
140 .addEntry(userId, title, content, displayDateMonth,
141 displayDateDay, displayDateYear, displayDateHour,
142 displayDateMinute, draft, allowTrackbacks, trackbacks,
143 serviceContext);
144 }
145
146 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
147 java.lang.String uuid, long userId, java.lang.String title,
148 java.lang.String content, int displayDateMonth, int displayDateDay,
149 int displayDateYear, int displayDateHour, int displayDateMinute,
150 boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
151 com.liferay.portal.service.ServiceContext serviceContext)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException {
154 return getService()
155 .addEntry(uuid, userId, title, content, displayDateMonth,
156 displayDateDay, displayDateYear, displayDateHour,
157 displayDateMinute, draft, allowTrackbacks, trackbacks,
158 serviceContext);
159 }
160
161 public static void addEntryResources(long entryId,
162 boolean addCommunityPermissions, boolean addGuestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException {
165 getService()
166 .addEntryResources(entryId, addCommunityPermissions,
167 addGuestPermissions);
168 }
169
170 public static void addEntryResources(
171 com.liferay.portlet.blogs.model.BlogsEntry entry,
172 boolean addCommunityPermissions, boolean addGuestPermissions)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException {
175 getService()
176 .addEntryResources(entry, addCommunityPermissions,
177 addGuestPermissions);
178 }
179
180 public static void addEntryResources(long entryId,
181 java.lang.String[] communityPermissions,
182 java.lang.String[] guestPermissions)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 getService()
186 .addEntryResources(entryId, communityPermissions, guestPermissions);
187 }
188
189 public static void addEntryResources(
190 com.liferay.portlet.blogs.model.BlogsEntry entry,
191 java.lang.String[] communityPermissions,
192 java.lang.String[] guestPermissions)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException {
195 getService()
196 .addEntryResources(entry, communityPermissions, guestPermissions);
197 }
198
199 public static void deleteEntries(long groupId)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException {
202 getService().deleteEntries(groupId);
203 }
204
205 public static void deleteEntry(long entryId)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException {
208 getService().deleteEntry(entryId);
209 }
210
211 public static void deleteEntry(
212 com.liferay.portlet.blogs.model.BlogsEntry entry)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException {
215 getService().deleteEntry(entry);
216 }
217
218 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
219 long companyId, int start, int end)
220 throws com.liferay.portal.SystemException {
221 return getService().getCompanyEntries(companyId, start, end);
222 }
223
224 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
225 long companyId, int start, int end,
226 com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.SystemException {
228 return getService().getCompanyEntries(companyId, start, end, obc);
229 }
230
231 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
232 long companyId, boolean draft, int start, int end)
233 throws com.liferay.portal.SystemException {
234 return getService().getCompanyEntries(companyId, draft, start, end);
235 }
236
237 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
238 long companyId, boolean draft, int start, int end,
239 com.liferay.portal.kernel.util.OrderByComparator obc)
240 throws com.liferay.portal.SystemException {
241 return getService().getCompanyEntries(companyId, draft, start, end, obc);
242 }
243
244 public static int getCompanyEntriesCount(long companyId)
245 throws com.liferay.portal.SystemException {
246 return getService().getCompanyEntriesCount(companyId);
247 }
248
249 public static int getCompanyEntriesCount(long companyId, boolean draft)
250 throws com.liferay.portal.SystemException {
251 return getService().getCompanyEntriesCount(companyId, draft);
252 }
253
254 public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
255 long entryId)
256 throws com.liferay.portal.PortalException,
257 com.liferay.portal.SystemException {
258 return getService().getEntriesPrevAndNext(entryId);
259 }
260
261 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
262 long entryId)
263 throws com.liferay.portal.PortalException,
264 com.liferay.portal.SystemException {
265 return getService().getEntry(entryId);
266 }
267
268 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
269 long groupId, java.lang.String urlTitle)
270 throws com.liferay.portal.PortalException,
271 com.liferay.portal.SystemException {
272 return getService().getEntry(groupId, urlTitle);
273 }
274
275 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
276 long groupId, int start, int end)
277 throws com.liferay.portal.SystemException {
278 return getService().getGroupEntries(groupId, start, end);
279 }
280
281 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
282 long groupId, int start, int end,
283 com.liferay.portal.kernel.util.OrderByComparator obc)
284 throws com.liferay.portal.SystemException {
285 return getService().getGroupEntries(groupId, start, end, obc);
286 }
287
288 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
289 long groupId, boolean draft, int start, int end)
290 throws com.liferay.portal.SystemException {
291 return getService().getGroupEntries(groupId, draft, start, end);
292 }
293
294 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
295 long groupId, boolean draft, int start, int end,
296 com.liferay.portal.kernel.util.OrderByComparator obc)
297 throws com.liferay.portal.SystemException {
298 return getService().getGroupEntries(groupId, draft, start, end, obc);
299 }
300
301 public static int getGroupEntriesCount(long groupId)
302 throws com.liferay.portal.SystemException {
303 return getService().getGroupEntriesCount(groupId);
304 }
305
306 public static int getGroupEntriesCount(long groupId, boolean draft)
307 throws com.liferay.portal.SystemException {
308 return getService().getGroupEntriesCount(groupId, draft);
309 }
310
311 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
312 long companyId, long groupId, int start, int end)
313 throws com.liferay.portal.SystemException {
314 return getService().getGroupsEntries(companyId, groupId, start, end);
315 }
316
317 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
318 long groupId, long userId, int start, int end)
319 throws com.liferay.portal.SystemException {
320 return getService().getGroupUserEntries(groupId, userId, start, end);
321 }
322
323 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
324 long groupId, long userId, int start, int end,
325 com.liferay.portal.kernel.util.OrderByComparator obc)
326 throws com.liferay.portal.SystemException {
327 return getService().getGroupUserEntries(groupId, userId, start, end, obc);
328 }
329
330 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
331 long groupId, long userId, boolean draft, int start, int end)
332 throws com.liferay.portal.SystemException {
333 return getService()
334 .getGroupUserEntries(groupId, userId, draft, start, end);
335 }
336
337 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
338 long groupId, long userId, boolean draft, int start, int end,
339 com.liferay.portal.kernel.util.OrderByComparator obc)
340 throws com.liferay.portal.SystemException {
341 return getService()
342 .getGroupUserEntries(groupId, userId, draft, start, end, obc);
343 }
344
345 public static int getGroupUserEntriesCount(long groupId, long userId)
346 throws com.liferay.portal.SystemException {
347 return getService().getGroupUserEntriesCount(groupId, userId);
348 }
349
350 public static int getGroupUserEntriesCount(long groupId, long userId,
351 boolean draft) throws com.liferay.portal.SystemException {
352 return getService().getGroupUserEntriesCount(groupId, userId, draft);
353 }
354
355 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
356 throws com.liferay.portal.SystemException {
357 return getService().getNoAssetEntries();
358 }
359
360 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
361 long organizationId, boolean draft, int start, int end)
362 throws com.liferay.portal.SystemException {
363 return getService()
364 .getOrganizationEntries(organizationId, draft, start, end);
365 }
366
367 public static int getOrganizationEntriesCount(long organizationId,
368 boolean draft) throws com.liferay.portal.SystemException {
369 return getService().getOrganizationEntriesCount(organizationId, draft);
370 }
371
372
375 public static java.lang.String getUrlTitle(long entryId,
376 java.lang.String title) {
377 return getService().getUrlTitle(entryId, title);
378 }
379
380 public static void reIndex(long entryId)
381 throws com.liferay.portal.SystemException {
382 getService().reIndex(entryId);
383 }
384
385 public static void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
386 throws com.liferay.portal.SystemException {
387 getService().reIndex(entry);
388 }
389
390 public static void reIndex(java.lang.String[] ids)
391 throws com.liferay.portal.SystemException {
392 getService().reIndex(ids);
393 }
394
395 public static com.liferay.portal.kernel.search.Hits search(long companyId,
396 long groupId, long userId, long ownerUserId, java.lang.String keywords,
397 int start, int end) throws com.liferay.portal.SystemException {
398 return getService()
399 .search(companyId, groupId, userId, ownerUserId, keywords,
400 start, end);
401 }
402
403 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
404 long userId, long entryId, java.lang.String title,
405 java.lang.String content, int displayDateMonth, int displayDateDay,
406 int displayDateYear, int displayDateHour, int displayDateMinute,
407 boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
408 com.liferay.portal.service.ServiceContext serviceContext)
409 throws com.liferay.portal.PortalException,
410 com.liferay.portal.SystemException {
411 return getService()
412 .updateEntry(userId, entryId, title, content,
413 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
414 displayDateMinute, draft, allowTrackbacks, trackbacks,
415 serviceContext);
416 }
417
418 public static void updateEntryResources(
419 com.liferay.portlet.blogs.model.BlogsEntry entry,
420 java.lang.String[] communityPermissions,
421 java.lang.String[] guestPermissions)
422 throws com.liferay.portal.PortalException,
423 com.liferay.portal.SystemException {
424 getService()
425 .updateEntryResources(entry, communityPermissions, guestPermissions);
426 }
427
428 public static void updateTagsAsset(long userId,
429 com.liferay.portlet.blogs.model.BlogsEntry entry,
430 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
431 throws com.liferay.portal.PortalException,
432 com.liferay.portal.SystemException {
433 getService().updateTagsAsset(userId, entry, tagsCategories, tagsEntries);
434 }
435
436 public static BlogsEntryLocalService getService() {
437 if (_service == null) {
438 _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
439
440 ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
441 "_service");
442 MethodCache.remove(BlogsEntryLocalService.class);
443 }
444
445 return _service;
446 }
447
448 public void setService(BlogsEntryLocalService service) {
449 MethodCache.remove(BlogsEntryLocalService.class);
450
451 _service = service;
452
453 ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
454 "_service");
455 MethodCache.remove(BlogsEntryLocalService.class);
456 }
457
458 private static BlogsEntryLocalService _service;
459 }