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