1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.blogs.service;
24  
25  
26  /**
27   * <a href="BlogsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.blogs.service.BlogsEntryLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * <p>
43   * <code>com.liferay.portlet.blogs.service.BlogsEntryLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.blogs.service.BlogsEntryLocalService
50   * @see com.liferay.portlet.blogs.service.BlogsEntryLocalServiceFactory
51   *
52   */
53  public class BlogsEntryLocalServiceUtil {
54      public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
55          com.liferay.portlet.blogs.model.BlogsEntry model)
56          throws com.liferay.portal.SystemException {
57          BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
58  
59          return blogsEntryLocalService.addBlogsEntry(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          BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
66  
67          return blogsEntryLocalService.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          BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
74  
75          return blogsEntryLocalService.dynamicQuery(queryInitializer, begin, end);
76      }
77  
78      public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
79          com.liferay.portlet.blogs.model.BlogsEntry model)
80          throws com.liferay.portal.SystemException {
81          BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
82  
83          return blogsEntryLocalService.updateBlogsEntry(model);
84      }
85  
86      public static com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence getBlogsEntryPersistence() {
87          BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
88  
89          return blogsEntryLocalService.getBlogsEntryPersistence();
90      }
91  
92      public static void setBlogsEntryPersistence(
93          com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence blogsEntryPersistence) {
94          BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
95  
96          blogsEntryLocalService.setBlogsEntryPersistence(blogsEntryPersistence);
97      }
98  
99      public static com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder getBlogsEntryFinder() {
100         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
101 
102         return blogsEntryLocalService.getBlogsEntryFinder();
103     }
104 
105     public static void setBlogsEntryFinder(
106         com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder blogsEntryFinder) {
107         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
108 
109         blogsEntryLocalService.setBlogsEntryFinder(blogsEntryFinder);
110     }
111 
112     public static com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
113         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
114 
115         return blogsEntryLocalService.getBlogsStatsUserPersistence();
116     }
117 
118     public static void setBlogsStatsUserPersistence(
119         com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence blogsStatsUserPersistence) {
120         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
121 
122         blogsEntryLocalService.setBlogsStatsUserPersistence(blogsStatsUserPersistence);
123     }
124 
125     public static com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder getBlogsStatsUserFinder() {
126         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
127 
128         return blogsEntryLocalService.getBlogsStatsUserFinder();
129     }
130 
131     public static void setBlogsStatsUserFinder(
132         com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder blogsStatsUserFinder) {
133         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
134 
135         blogsEntryLocalService.setBlogsStatsUserFinder(blogsStatsUserFinder);
136     }
137 
138     public static com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence() {
139         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
140 
141         return blogsEntryLocalService.getCompanyPersistence();
142     }
143 
144     public static void setCompanyPersistence(
145         com.liferay.portal.service.persistence.CompanyPersistence companyPersistence) {
146         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
147 
148         blogsEntryLocalService.setCompanyPersistence(companyPersistence);
149     }
150 
151     public static com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence() {
152         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
153 
154         return blogsEntryLocalService.getGroupPersistence();
155     }
156 
157     public static void setGroupPersistence(
158         com.liferay.portal.service.persistence.GroupPersistence groupPersistence) {
159         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
160 
161         blogsEntryLocalService.setGroupPersistence(groupPersistence);
162     }
163 
164     public static com.liferay.portal.service.persistence.GroupFinder getGroupFinder() {
165         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
166 
167         return blogsEntryLocalService.getGroupFinder();
168     }
169 
170     public static void setGroupFinder(
171         com.liferay.portal.service.persistence.GroupFinder groupFinder) {
172         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
173 
174         blogsEntryLocalService.setGroupFinder(groupFinder);
175     }
176 
177     public static com.liferay.portal.service.persistence.OrganizationPersistence getOrganizationPersistence() {
178         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
179 
180         return blogsEntryLocalService.getOrganizationPersistence();
181     }
182 
183     public static void setOrganizationPersistence(
184         com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence) {
185         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
186 
187         blogsEntryLocalService.setOrganizationPersistence(organizationPersistence);
188     }
189 
190     public static com.liferay.portal.service.persistence.OrganizationFinder getOrganizationFinder() {
191         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
192 
193         return blogsEntryLocalService.getOrganizationFinder();
194     }
195 
196     public static void setOrganizationFinder(
197         com.liferay.portal.service.persistence.OrganizationFinder organizationFinder) {
198         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
199 
200         blogsEntryLocalService.setOrganizationFinder(organizationFinder);
201     }
202 
203     public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
204         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
205 
206         return blogsEntryLocalService.getResourcePersistence();
207     }
208 
209     public static void setResourcePersistence(
210         com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
211         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
212 
213         blogsEntryLocalService.setResourcePersistence(resourcePersistence);
214     }
215 
216     public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
217         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
218 
219         return blogsEntryLocalService.getResourceFinder();
220     }
221 
222     public static void setResourceFinder(
223         com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
224         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
225 
226         blogsEntryLocalService.setResourceFinder(resourceFinder);
227     }
228 
229     public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
230         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
231 
232         return blogsEntryLocalService.getUserPersistence();
233     }
234 
235     public static void setUserPersistence(
236         com.liferay.portal.service.persistence.UserPersistence userPersistence) {
237         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
238 
239         blogsEntryLocalService.setUserPersistence(userPersistence);
240     }
241 
242     public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
243         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
244 
245         return blogsEntryLocalService.getUserFinder();
246     }
247 
248     public static void setUserFinder(
249         com.liferay.portal.service.persistence.UserFinder userFinder) {
250         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
251 
252         blogsEntryLocalService.setUserFinder(userFinder);
253     }
254 
255     public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
256         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
257 
258         return blogsEntryLocalService.getMBMessagePersistence();
259     }
260 
261     public static void setMBMessagePersistence(
262         com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
263         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
264 
265         blogsEntryLocalService.setMBMessagePersistence(mbMessagePersistence);
266     }
267 
268     public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
269         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
270 
271         return blogsEntryLocalService.getMBMessageFinder();
272     }
273 
274     public static void setMBMessageFinder(
275         com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
276         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
277 
278         blogsEntryLocalService.setMBMessageFinder(mbMessageFinder);
279     }
280 
281     public static com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence getRatingsStatsPersistence() {
282         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
283 
284         return blogsEntryLocalService.getRatingsStatsPersistence();
285     }
286 
287     public static void setRatingsStatsPersistence(
288         com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence ratingsStatsPersistence) {
289         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
290 
291         blogsEntryLocalService.setRatingsStatsPersistence(ratingsStatsPersistence);
292     }
293 
294     public static com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence() {
295         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
296 
297         return blogsEntryLocalService.getTagsAssetPersistence();
298     }
299 
300     public static void setTagsAssetPersistence(
301         com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence) {
302         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
303 
304         blogsEntryLocalService.setTagsAssetPersistence(tagsAssetPersistence);
305     }
306 
307     public static com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder() {
308         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
309 
310         return blogsEntryLocalService.getTagsAssetFinder();
311     }
312 
313     public static void setTagsAssetFinder(
314         com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder) {
315         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
316 
317         blogsEntryLocalService.setTagsAssetFinder(tagsAssetFinder);
318     }
319 
320     public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
321         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
322 
323         return blogsEntryLocalService.getTagsEntryPersistence();
324     }
325 
326     public static void setTagsEntryPersistence(
327         com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
328         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
329 
330         blogsEntryLocalService.setTagsEntryPersistence(tagsEntryPersistence);
331     }
332 
333     public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
334         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
335 
336         return blogsEntryLocalService.getTagsEntryFinder();
337     }
338 
339     public static void setTagsEntryFinder(
340         com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
341         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
342 
343         blogsEntryLocalService.setTagsEntryFinder(tagsEntryFinder);
344     }
345 
346     public static void afterPropertiesSet() {
347         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
348 
349         blogsEntryLocalService.afterPropertiesSet();
350     }
351 
352     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
353         long userId, long plid, java.lang.String title,
354         java.lang.String content, int displayDateMonth, int displayDateDay,
355         int displayDateYear, int displayDateHour, int displayDateMinute,
356         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
357         boolean addGuestPermissions,
358         com.liferay.portal.theme.ThemeDisplay themeDisplay)
359         throws com.liferay.portal.PortalException, 
360             com.liferay.portal.SystemException {
361         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
362 
363         return blogsEntryLocalService.addEntry(userId, plid, title, content,
364             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
365             displayDateMinute, tagsEntries, addCommunityPermissions,
366             addGuestPermissions, themeDisplay);
367     }
368 
369     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
370         java.lang.String uuid, long userId, long plid, java.lang.String title,
371         java.lang.String content, int displayDateMonth, int displayDateDay,
372         int displayDateYear, int displayDateHour, int displayDateMinute,
373         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
374         boolean addGuestPermissions,
375         com.liferay.portal.theme.ThemeDisplay themeDisplay)
376         throws com.liferay.portal.PortalException, 
377             com.liferay.portal.SystemException {
378         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
379 
380         return blogsEntryLocalService.addEntry(uuid, userId, plid, title,
381             content, displayDateMonth, displayDateDay, displayDateYear,
382             displayDateHour, displayDateMinute, tagsEntries,
383             addCommunityPermissions, addGuestPermissions, themeDisplay);
384     }
385 
386     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
387         long userId, long plid, java.lang.String title,
388         java.lang.String content, int displayDateMonth, int displayDateDay,
389         int displayDateYear, int displayDateHour, int displayDateMinute,
390         java.lang.String[] tagsEntries,
391         java.lang.String[] communityPermissions,
392         java.lang.String[] guestPermissions,
393         com.liferay.portal.theme.ThemeDisplay themeDisplay)
394         throws com.liferay.portal.PortalException, 
395             com.liferay.portal.SystemException {
396         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
397 
398         return blogsEntryLocalService.addEntry(userId, plid, title, content,
399             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
400             displayDateMinute, tagsEntries, communityPermissions,
401             guestPermissions, themeDisplay);
402     }
403 
404     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
405         java.lang.String uuid, long userId, long plid, java.lang.String title,
406         java.lang.String content, int displayDateMonth, int displayDateDay,
407         int displayDateYear, int displayDateHour, int displayDateMinute,
408         java.lang.String[] tagsEntries,
409         java.lang.Boolean addCommunityPermissions,
410         java.lang.Boolean addGuestPermissions,
411         java.lang.String[] communityPermissions,
412         java.lang.String[] guestPermissions,
413         com.liferay.portal.theme.ThemeDisplay themeDisplay)
414         throws com.liferay.portal.PortalException, 
415             com.liferay.portal.SystemException {
416         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
417 
418         return blogsEntryLocalService.addEntry(uuid, userId, plid, title,
419             content, displayDateMonth, displayDateDay, displayDateYear,
420             displayDateHour, displayDateMinute, tagsEntries,
421             addCommunityPermissions, addGuestPermissions, communityPermissions,
422             guestPermissions, themeDisplay);
423     }
424 
425     public static void addEntryResources(long entryId,
426         boolean addCommunityPermissions, boolean addGuestPermissions)
427         throws com.liferay.portal.PortalException, 
428             com.liferay.portal.SystemException {
429         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
430 
431         blogsEntryLocalService.addEntryResources(entryId,
432             addCommunityPermissions, addGuestPermissions);
433     }
434 
435     public static void addEntryResources(
436         com.liferay.portlet.blogs.model.BlogsEntry entry,
437         boolean addCommunityPermissions, boolean addGuestPermissions)
438         throws com.liferay.portal.PortalException, 
439             com.liferay.portal.SystemException {
440         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
441 
442         blogsEntryLocalService.addEntryResources(entry,
443             addCommunityPermissions, addGuestPermissions);
444     }
445 
446     public static void addEntryResources(long entryId,
447         java.lang.String[] communityPermissions,
448         java.lang.String[] guestPermissions)
449         throws com.liferay.portal.PortalException, 
450             com.liferay.portal.SystemException {
451         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
452 
453         blogsEntryLocalService.addEntryResources(entryId, communityPermissions,
454             guestPermissions);
455     }
456 
457     public static void addEntryResources(
458         com.liferay.portlet.blogs.model.BlogsEntry entry,
459         java.lang.String[] communityPermissions,
460         java.lang.String[] guestPermissions)
461         throws com.liferay.portal.PortalException, 
462             com.liferay.portal.SystemException {
463         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
464 
465         blogsEntryLocalService.addEntryResources(entry, communityPermissions,
466             guestPermissions);
467     }
468 
469     public static void deleteEntries(long groupId)
470         throws com.liferay.portal.PortalException, 
471             com.liferay.portal.SystemException {
472         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
473 
474         blogsEntryLocalService.deleteEntries(groupId);
475     }
476 
477     public static void deleteEntry(long entryId)
478         throws com.liferay.portal.PortalException, 
479             com.liferay.portal.SystemException {
480         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
481 
482         blogsEntryLocalService.deleteEntry(entryId);
483     }
484 
485     public static void deleteEntry(
486         com.liferay.portlet.blogs.model.BlogsEntry entry)
487         throws com.liferay.portal.PortalException, 
488             com.liferay.portal.SystemException {
489         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
490 
491         blogsEntryLocalService.deleteEntry(entry);
492     }
493 
494     public static java.util.List getCompanyEntries(long companyId, int begin,
495         int end) throws com.liferay.portal.SystemException {
496         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
497 
498         return blogsEntryLocalService.getCompanyEntries(companyId, begin, end);
499     }
500 
501     public static java.util.List getCompanyEntries(long companyId, int begin,
502         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
503         throws com.liferay.portal.SystemException {
504         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
505 
506         return blogsEntryLocalService.getCompanyEntries(companyId, begin, end,
507             obc);
508     }
509 
510     public static int getCompanyEntriesCount(long companyId)
511         throws com.liferay.portal.SystemException {
512         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
513 
514         return blogsEntryLocalService.getCompanyEntriesCount(companyId);
515     }
516 
517     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
518         long entryId)
519         throws com.liferay.portal.PortalException, 
520             com.liferay.portal.SystemException {
521         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
522 
523         return blogsEntryLocalService.getEntry(entryId);
524     }
525 
526     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
527         long groupId, java.lang.String urlTitle)
528         throws com.liferay.portal.PortalException, 
529             com.liferay.portal.SystemException {
530         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
531 
532         return blogsEntryLocalService.getEntry(groupId, urlTitle);
533     }
534 
535     public static java.util.List getGroupEntries(long groupId, int begin,
536         int end) throws com.liferay.portal.SystemException {
537         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
538 
539         return blogsEntryLocalService.getGroupEntries(groupId, begin, end);
540     }
541 
542     public static java.util.List getGroupEntries(long groupId, int begin,
543         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
544         throws com.liferay.portal.SystemException {
545         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
546 
547         return blogsEntryLocalService.getGroupEntries(groupId, begin, end, obc);
548     }
549 
550     public static int getGroupEntriesCount(long groupId)
551         throws com.liferay.portal.SystemException {
552         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
553 
554         return blogsEntryLocalService.getGroupEntriesCount(groupId);
555     }
556 
557     public static java.util.List getGroupUserEntries(long groupId, long userId,
558         int begin, int end) throws com.liferay.portal.SystemException {
559         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
560 
561         return blogsEntryLocalService.getGroupUserEntries(groupId, userId,
562             begin, end);
563     }
564 
565     public static int getGroupUserEntriesCount(long groupId, long userId)
566         throws com.liferay.portal.SystemException {
567         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
568 
569         return blogsEntryLocalService.getGroupUserEntriesCount(groupId, userId);
570     }
571 
572     public static java.util.List getNoAssetEntries()
573         throws com.liferay.portal.SystemException {
574         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
575 
576         return blogsEntryLocalService.getNoAssetEntries();
577     }
578 
579     public static java.util.List getOrganizationEntries(long organizationId,
580         int begin, int end) throws com.liferay.portal.SystemException {
581         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
582 
583         return blogsEntryLocalService.getOrganizationEntries(organizationId,
584             begin, end);
585     }
586 
587     public static int getOrganizationEntriesCount(long organizationId)
588         throws com.liferay.portal.SystemException {
589         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
590 
591         return blogsEntryLocalService.getOrganizationEntriesCount(organizationId);
592     }
593 
594     public static java.lang.String getUrlTitle(long entryId,
595         java.lang.String title) {
596         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
597 
598         return blogsEntryLocalService.getUrlTitle(entryId, title);
599     }
600 
601     public static void reIndex(java.lang.String[] ids)
602         throws com.liferay.portal.SystemException {
603         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
604 
605         blogsEntryLocalService.reIndex(ids);
606     }
607 
608     public static com.liferay.portal.kernel.search.Hits search(long companyId,
609         long groupId, long userId, java.lang.String keywords)
610         throws com.liferay.portal.SystemException {
611         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
612 
613         return blogsEntryLocalService.search(companyId, groupId, userId,
614             keywords);
615     }
616 
617     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
618         long userId, long entryId, java.lang.String title,
619         java.lang.String content, int displayDateMonth, int displayDateDay,
620         int displayDateYear, int displayDateHour, int displayDateMinute,
621         java.lang.String[] tagsEntries,
622         com.liferay.portal.theme.ThemeDisplay themeDisplay)
623         throws com.liferay.portal.PortalException, 
624             com.liferay.portal.SystemException {
625         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
626 
627         return blogsEntryLocalService.updateEntry(userId, entryId, title,
628             content, displayDateMonth, displayDateDay, displayDateYear,
629             displayDateHour, displayDateMinute, tagsEntries, themeDisplay);
630     }
631 
632     public static void updateTagsAsset(long userId,
633         com.liferay.portlet.blogs.model.BlogsEntry entry,
634         java.lang.String[] tagsEntries)
635         throws com.liferay.portal.PortalException, 
636             com.liferay.portal.SystemException {
637         BlogsEntryLocalService blogsEntryLocalService = BlogsEntryLocalServiceFactory.getService();
638 
639         blogsEntryLocalService.updateTagsAsset(userId, entry, tagsEntries);
640     }
641 }