1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.blogs.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="BlogsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link BlogsEntryLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       BlogsEntryLocalService
37   * @generated
38   */
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 com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
76          long entryId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getBlogsEntry(entryId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getBlogsEntries(start, end);
85      }
86  
87      public static int getBlogsEntriesCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getBlogsEntriesCount();
90      }
91  
92      public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
93          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
94          throws com.liferay.portal.SystemException {
95          return getService().updateBlogsEntry(blogsEntry);
96      }
97  
98      public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
99          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
100         throws com.liferay.portal.SystemException {
101         return getService().updateBlogsEntry(blogsEntry, merge);
102     }
103 
104     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
105         long userId, long plid, java.lang.String title,
106         java.lang.String content, int displayDateMonth, int displayDateDay,
107         int displayDateYear, int displayDateHour, int displayDateMinute,
108         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
109         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
110         boolean addGuestPermissions,
111         com.liferay.portal.theme.ThemeDisplay themeDisplay)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException {
114         return getService()
115                    .addEntry(userId, plid, title, content, displayDateMonth,
116             displayDateDay, displayDateYear, displayDateHour,
117             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
118             addCommunityPermissions, addGuestPermissions, themeDisplay);
119     }
120 
121     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
122         java.lang.String uuid, long userId, long plid, java.lang.String title,
123         java.lang.String content, int displayDateMonth, int displayDateDay,
124         int displayDateYear, int displayDateHour, int displayDateMinute,
125         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
126         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
127         boolean addGuestPermissions,
128         com.liferay.portal.theme.ThemeDisplay themeDisplay)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         return getService()
132                    .addEntry(uuid, userId, plid, title, content,
133             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
134             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
135             addCommunityPermissions, addGuestPermissions, themeDisplay);
136     }
137 
138     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
139         long userId, long plid, java.lang.String title,
140         java.lang.String content, int displayDateMonth, int displayDateDay,
141         int displayDateYear, int displayDateHour, int displayDateMinute,
142         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
143         java.lang.String[] tagsEntries,
144         java.lang.String[] communityPermissions,
145         java.lang.String[] guestPermissions,
146         com.liferay.portal.theme.ThemeDisplay themeDisplay)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         return getService()
150                    .addEntry(userId, plid, title, content, displayDateMonth,
151             displayDateDay, displayDateYear, displayDateHour,
152             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
153             communityPermissions, guestPermissions, themeDisplay);
154     }
155 
156     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
157         java.lang.String uuid, long userId, long plid, java.lang.String title,
158         java.lang.String content, int displayDateMonth, int displayDateDay,
159         int displayDateYear, int displayDateHour, int displayDateMinute,
160         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
161         java.lang.String[] tagsEntries,
162         java.lang.Boolean addCommunityPermissions,
163         java.lang.Boolean addGuestPermissions,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions,
166         com.liferay.portal.theme.ThemeDisplay themeDisplay)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException {
169         return getService()
170                    .addEntry(uuid, userId, plid, title, content,
171             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
172             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
173             addCommunityPermissions, addGuestPermissions, communityPermissions,
174             guestPermissions, themeDisplay);
175     }
176 
177     public static void addEntryResources(long entryId,
178         boolean addCommunityPermissions, boolean addGuestPermissions)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         getService()
182             .addEntryResources(entryId, addCommunityPermissions,
183             addGuestPermissions);
184     }
185 
186     public static void addEntryResources(
187         com.liferay.portlet.blogs.model.BlogsEntry entry,
188         boolean addCommunityPermissions, boolean addGuestPermissions)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         getService()
192             .addEntryResources(entry, addCommunityPermissions,
193             addGuestPermissions);
194     }
195 
196     public static void addEntryResources(long entryId,
197         java.lang.String[] communityPermissions,
198         java.lang.String[] guestPermissions)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException {
201         getService()
202             .addEntryResources(entryId, communityPermissions, guestPermissions);
203     }
204 
205     public static void addEntryResources(
206         com.liferay.portlet.blogs.model.BlogsEntry entry,
207         java.lang.String[] communityPermissions,
208         java.lang.String[] guestPermissions)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException {
211         getService()
212             .addEntryResources(entry, communityPermissions, guestPermissions);
213     }
214 
215     public static void deleteEntries(long groupId)
216         throws com.liferay.portal.PortalException,
217             com.liferay.portal.SystemException {
218         getService().deleteEntries(groupId);
219     }
220 
221     public static void deleteEntry(long entryId)
222         throws com.liferay.portal.PortalException,
223             com.liferay.portal.SystemException {
224         getService().deleteEntry(entryId);
225     }
226 
227     public static void deleteEntry(
228         com.liferay.portlet.blogs.model.BlogsEntry entry)
229         throws com.liferay.portal.PortalException,
230             com.liferay.portal.SystemException {
231         getService().deleteEntry(entry);
232     }
233 
234     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
235         long companyId, int start, int end)
236         throws com.liferay.portal.SystemException {
237         return getService().getCompanyEntries(companyId, start, end);
238     }
239 
240     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
241         long companyId, int start, int end,
242         com.liferay.portal.kernel.util.OrderByComparator obc)
243         throws com.liferay.portal.SystemException {
244         return getService().getCompanyEntries(companyId, start, end, obc);
245     }
246 
247     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
248         long companyId, boolean draft, int start, int end)
249         throws com.liferay.portal.SystemException {
250         return getService().getCompanyEntries(companyId, draft, start, end);
251     }
252 
253     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
254         long companyId, boolean draft, int start, int end,
255         com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.SystemException {
257         return getService().getCompanyEntries(companyId, draft, start, end, obc);
258     }
259 
260     public static int getCompanyEntriesCount(long companyId)
261         throws com.liferay.portal.SystemException {
262         return getService().getCompanyEntriesCount(companyId);
263     }
264 
265     public static int getCompanyEntriesCount(long companyId, boolean draft)
266         throws com.liferay.portal.SystemException {
267         return getService().getCompanyEntriesCount(companyId, draft);
268     }
269 
270     public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
271         long entryId)
272         throws com.liferay.portal.PortalException,
273             com.liferay.portal.SystemException {
274         return getService().getEntriesPrevAndNext(entryId);
275     }
276 
277     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
278         long entryId)
279         throws com.liferay.portal.PortalException,
280             com.liferay.portal.SystemException {
281         return getService().getEntry(entryId);
282     }
283 
284     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
285         long groupId, java.lang.String urlTitle)
286         throws com.liferay.portal.PortalException,
287             com.liferay.portal.SystemException {
288         return getService().getEntry(groupId, urlTitle);
289     }
290 
291     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
292         long groupId, int start, int end)
293         throws com.liferay.portal.SystemException {
294         return getService().getGroupEntries(groupId, start, end);
295     }
296 
297     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
298         long groupId, int start, int end,
299         com.liferay.portal.kernel.util.OrderByComparator obc)
300         throws com.liferay.portal.SystemException {
301         return getService().getGroupEntries(groupId, start, end, obc);
302     }
303 
304     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
305         long groupId, boolean draft, int start, int end)
306         throws com.liferay.portal.SystemException {
307         return getService().getGroupEntries(groupId, draft, start, end);
308     }
309 
310     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
311         long groupId, boolean draft, int start, int end,
312         com.liferay.portal.kernel.util.OrderByComparator obc)
313         throws com.liferay.portal.SystemException {
314         return getService().getGroupEntries(groupId, draft, start, end, obc);
315     }
316 
317     public static int getGroupEntriesCount(long groupId)
318         throws com.liferay.portal.SystemException {
319         return getService().getGroupEntriesCount(groupId);
320     }
321 
322     public static int getGroupEntriesCount(long groupId, boolean draft)
323         throws com.liferay.portal.SystemException {
324         return getService().getGroupEntriesCount(groupId, draft);
325     }
326 
327     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
328         long groupId, long userId, int start, int end)
329         throws com.liferay.portal.SystemException {
330         return getService().getGroupUserEntries(groupId, userId, start, end);
331     }
332 
333     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
334         long groupId, long userId, int start, int end,
335         com.liferay.portal.kernel.util.OrderByComparator obc)
336         throws com.liferay.portal.SystemException {
337         return getService().getGroupUserEntries(groupId, userId, start, end, obc);
338     }
339 
340     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
341         long groupId, long userId, boolean draft, int start, int end)
342         throws com.liferay.portal.SystemException {
343         return getService()
344                    .getGroupUserEntries(groupId, userId, draft, start, end);
345     }
346 
347     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
348         long groupId, long userId, boolean draft, int start, int end,
349         com.liferay.portal.kernel.util.OrderByComparator obc)
350         throws com.liferay.portal.SystemException {
351         return getService()
352                    .getGroupUserEntries(groupId, userId, draft, start, end, obc);
353     }
354 
355     public static int getGroupUserEntriesCount(long groupId, long userId)
356         throws com.liferay.portal.SystemException {
357         return getService().getGroupUserEntriesCount(groupId, userId);
358     }
359 
360     public static int getGroupUserEntriesCount(long groupId, long userId,
361         boolean draft) throws com.liferay.portal.SystemException {
362         return getService().getGroupUserEntriesCount(groupId, userId, draft);
363     }
364 
365     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
366         throws com.liferay.portal.SystemException {
367         return getService().getNoAssetEntries();
368     }
369 
370     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
371         long organizationId, boolean draft, int start, int end)
372         throws com.liferay.portal.SystemException {
373         return getService()
374                    .getOrganizationEntries(organizationId, draft, start, end);
375     }
376 
377     public static int getOrganizationEntriesCount(long organizationId,
378         boolean draft) throws com.liferay.portal.SystemException {
379         return getService().getOrganizationEntriesCount(organizationId, draft);
380     }
381 
382     public static java.lang.String getUrlTitle(long entryId,
383         java.lang.String title) {
384         return getService().getUrlTitle(entryId, title);
385     }
386 
387     public static void reIndex(long entryId)
388         throws com.liferay.portal.SystemException {
389         getService().reIndex(entryId);
390     }
391 
392     public static void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
393         throws com.liferay.portal.SystemException {
394         getService().reIndex(entry);
395     }
396 
397     public static void reIndex(java.lang.String[] ids)
398         throws com.liferay.portal.SystemException {
399         getService().reIndex(ids);
400     }
401 
402     public static com.liferay.portal.kernel.search.Hits search(long companyId,
403         long groupId, long userId, java.lang.String keywords, int start, int end)
404         throws com.liferay.portal.SystemException {
405         return getService()
406                    .search(companyId, groupId, userId, keywords, start, end);
407     }
408 
409     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
410         long userId, long entryId, java.lang.String title,
411         java.lang.String content, int displayDateMonth, int displayDateDay,
412         int displayDateYear, int displayDateHour, int displayDateMinute,
413         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
414         java.lang.String[] tagsEntries,
415         com.liferay.portal.theme.ThemeDisplay themeDisplay)
416         throws com.liferay.portal.PortalException,
417             com.liferay.portal.SystemException {
418         return getService()
419                    .updateEntry(userId, entryId, title, content,
420             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
421             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
422             themeDisplay);
423     }
424 
425     public static void updateTagsAsset(long userId,
426         com.liferay.portlet.blogs.model.BlogsEntry entry,
427         java.lang.String[] tagsEntries)
428         throws com.liferay.portal.PortalException,
429             com.liferay.portal.SystemException {
430         getService().updateTagsAsset(userId, entry, tagsEntries);
431     }
432 
433     public static BlogsEntryLocalService getService() {
434         if (_service == null) {
435             _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
436         }
437 
438         return _service;
439     }
440 
441     public void setService(BlogsEntryLocalService service) {
442         _service = service;
443     }
444 
445     private static BlogsEntryLocalService _service;
446 }