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