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