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   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.blogs.service.BlogsEntryLocalService
45   *
46   */
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 addEntry(
107         long userId, long plid, java.lang.String title,
108         java.lang.String content, int displayDateMonth, int displayDateDay,
109         int displayDateYear, int displayDateHour, int displayDateMinute,
110         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
111         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
112         boolean addGuestPermissions,
113         com.liferay.portal.theme.ThemeDisplay themeDisplay)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         return getService()
117                    .addEntry(userId, plid, title, content, displayDateMonth,
118             displayDateDay, displayDateYear, displayDateHour,
119             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
120             addCommunityPermissions, addGuestPermissions, themeDisplay);
121     }
122 
123     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
124         java.lang.String uuid, long userId, long plid, java.lang.String title,
125         java.lang.String content, int displayDateMonth, int displayDateDay,
126         int displayDateYear, int displayDateHour, int displayDateMinute,
127         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
128         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
129         boolean addGuestPermissions,
130         com.liferay.portal.theme.ThemeDisplay themeDisplay)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return getService()
134                    .addEntry(uuid, userId, plid, title, content,
135             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
136             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
137             addCommunityPermissions, addGuestPermissions, themeDisplay);
138     }
139 
140     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
141         long userId, long plid, java.lang.String title,
142         java.lang.String content, int displayDateMonth, int displayDateDay,
143         int displayDateYear, int displayDateHour, int displayDateMinute,
144         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
145         java.lang.String[] tagsEntries,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions,
148         com.liferay.portal.theme.ThemeDisplay themeDisplay)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException {
151         return getService()
152                    .addEntry(userId, plid, title, content, displayDateMonth,
153             displayDateDay, displayDateYear, displayDateHour,
154             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
155             communityPermissions, guestPermissions, themeDisplay);
156     }
157 
158     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
159         java.lang.String uuid, long userId, long plid, java.lang.String title,
160         java.lang.String content, int displayDateMonth, int displayDateDay,
161         int displayDateYear, int displayDateHour, int displayDateMinute,
162         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
163         java.lang.String[] tagsEntries,
164         java.lang.Boolean addCommunityPermissions,
165         java.lang.Boolean addGuestPermissions,
166         java.lang.String[] communityPermissions,
167         java.lang.String[] guestPermissions,
168         com.liferay.portal.theme.ThemeDisplay themeDisplay)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException {
171         return getService()
172                    .addEntry(uuid, userId, plid, title, content,
173             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
174             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
175             addCommunityPermissions, addGuestPermissions, communityPermissions,
176             guestPermissions, themeDisplay);
177     }
178 
179     public static void addEntryResources(long entryId,
180         boolean addCommunityPermissions, boolean addGuestPermissions)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         getService()
184             .addEntryResources(entryId, addCommunityPermissions,
185             addGuestPermissions);
186     }
187 
188     public static void addEntryResources(
189         com.liferay.portlet.blogs.model.BlogsEntry entry,
190         boolean addCommunityPermissions, boolean addGuestPermissions)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException {
193         getService()
194             .addEntryResources(entry, addCommunityPermissions,
195             addGuestPermissions);
196     }
197 
198     public static void addEntryResources(long entryId,
199         java.lang.String[] communityPermissions,
200         java.lang.String[] guestPermissions)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException {
203         getService()
204             .addEntryResources(entryId, communityPermissions, guestPermissions);
205     }
206 
207     public static void addEntryResources(
208         com.liferay.portlet.blogs.model.BlogsEntry entry,
209         java.lang.String[] communityPermissions,
210         java.lang.String[] guestPermissions)
211         throws com.liferay.portal.PortalException,
212             com.liferay.portal.SystemException {
213         getService()
214             .addEntryResources(entry, communityPermissions, guestPermissions);
215     }
216 
217     public static void deleteEntries(long groupId)
218         throws com.liferay.portal.PortalException,
219             com.liferay.portal.SystemException {
220         getService().deleteEntries(groupId);
221     }
222 
223     public static void deleteEntry(long entryId)
224         throws com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException {
226         getService().deleteEntry(entryId);
227     }
228 
229     public static void deleteEntry(
230         com.liferay.portlet.blogs.model.BlogsEntry entry)
231         throws com.liferay.portal.PortalException,
232             com.liferay.portal.SystemException {
233         getService().deleteEntry(entry);
234     }
235 
236     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
237         long companyId, int start, int end)
238         throws com.liferay.portal.SystemException {
239         return getService().getCompanyEntries(companyId, start, end);
240     }
241 
242     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
243         long companyId, int start, int end,
244         com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.SystemException {
246         return getService().getCompanyEntries(companyId, start, end, obc);
247     }
248 
249     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
250         long companyId, boolean draft, int start, int end)
251         throws com.liferay.portal.SystemException {
252         return getService().getCompanyEntries(companyId, draft, start, end);
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         com.liferay.portal.kernel.util.OrderByComparator obc)
258         throws com.liferay.portal.SystemException {
259         return getService().getCompanyEntries(companyId, draft, start, end, obc);
260     }
261 
262     public static int getCompanyEntriesCount(long companyId)
263         throws com.liferay.portal.SystemException {
264         return getService().getCompanyEntriesCount(companyId);
265     }
266 
267     public static int getCompanyEntriesCount(long companyId, boolean draft)
268         throws com.liferay.portal.SystemException {
269         return getService().getCompanyEntriesCount(companyId, draft);
270     }
271 
272     public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
273         long entryId)
274         throws com.liferay.portal.PortalException,
275             com.liferay.portal.SystemException {
276         return getService().getEntriesPrevAndNext(entryId);
277     }
278 
279     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
280         long entryId)
281         throws com.liferay.portal.PortalException,
282             com.liferay.portal.SystemException {
283         return getService().getEntry(entryId);
284     }
285 
286     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
287         long groupId, java.lang.String urlTitle)
288         throws com.liferay.portal.PortalException,
289             com.liferay.portal.SystemException {
290         return getService().getEntry(groupId, urlTitle);
291     }
292 
293     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
294         long groupId, int start, int end)
295         throws com.liferay.portal.SystemException {
296         return getService().getGroupEntries(groupId, start, end);
297     }
298 
299     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
300         long groupId, int start, int end,
301         com.liferay.portal.kernel.util.OrderByComparator obc)
302         throws com.liferay.portal.SystemException {
303         return getService().getGroupEntries(groupId, start, end, obc);
304     }
305 
306     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
307         long groupId, boolean draft, int start, int end)
308         throws com.liferay.portal.SystemException {
309         return getService().getGroupEntries(groupId, draft, start, end);
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         com.liferay.portal.kernel.util.OrderByComparator obc)
315         throws com.liferay.portal.SystemException {
316         return getService().getGroupEntries(groupId, draft, start, end, obc);
317     }
318 
319     public static int getGroupEntriesCount(long groupId)
320         throws com.liferay.portal.SystemException {
321         return getService().getGroupEntriesCount(groupId);
322     }
323 
324     public static int getGroupEntriesCount(long groupId, boolean draft)
325         throws com.liferay.portal.SystemException {
326         return getService().getGroupEntriesCount(groupId, draft);
327     }
328 
329     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
330         long groupId, long userId, int start, int end)
331         throws com.liferay.portal.SystemException {
332         return getService().getGroupUserEntries(groupId, userId, start, end);
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         com.liferay.portal.kernel.util.OrderByComparator obc)
338         throws com.liferay.portal.SystemException {
339         return getService().getGroupUserEntries(groupId, userId, start, end, obc);
340     }
341 
342     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
343         long groupId, long userId, boolean draft, int start, int end)
344         throws com.liferay.portal.SystemException {
345         return getService()
346                    .getGroupUserEntries(groupId, userId, draft, start, end);
347     }
348 
349     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
350         long groupId, long userId, boolean draft, int start, int end,
351         com.liferay.portal.kernel.util.OrderByComparator obc)
352         throws com.liferay.portal.SystemException {
353         return getService()
354                    .getGroupUserEntries(groupId, userId, draft, start, end, obc);
355     }
356 
357     public static int getGroupUserEntriesCount(long groupId, long userId)
358         throws com.liferay.portal.SystemException {
359         return getService().getGroupUserEntriesCount(groupId, userId);
360     }
361 
362     public static int getGroupUserEntriesCount(long groupId, long userId,
363         boolean draft) throws com.liferay.portal.SystemException {
364         return getService().getGroupUserEntriesCount(groupId, userId, draft);
365     }
366 
367     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
368         throws com.liferay.portal.SystemException {
369         return getService().getNoAssetEntries();
370     }
371 
372     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
373         long organizationId, boolean draft, int start, int end)
374         throws com.liferay.portal.SystemException {
375         return getService()
376                    .getOrganizationEntries(organizationId, draft, start, end);
377     }
378 
379     public static int getOrganizationEntriesCount(long organizationId,
380         boolean draft) throws com.liferay.portal.SystemException {
381         return getService().getOrganizationEntriesCount(organizationId, draft);
382     }
383 
384     public static java.lang.String getUrlTitle(long entryId,
385         java.lang.String title) {
386         return getService().getUrlTitle(entryId, title);
387     }
388 
389     public static void reIndex(java.lang.String[] ids)
390         throws com.liferay.portal.SystemException {
391         getService().reIndex(ids);
392     }
393 
394     public static com.liferay.portal.kernel.search.Hits search(long companyId,
395         long groupId, long userId, java.lang.String keywords, int start, int end)
396         throws com.liferay.portal.SystemException {
397         return getService()
398                    .search(companyId, groupId, userId, keywords, start, end);
399     }
400 
401     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
402         long userId, long entryId, java.lang.String title,
403         java.lang.String content, int displayDateMonth, int displayDateDay,
404         int displayDateYear, int displayDateHour, int displayDateMinute,
405         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
406         java.lang.String[] tagsEntries,
407         com.liferay.portal.theme.ThemeDisplay themeDisplay)
408         throws com.liferay.portal.PortalException,
409             com.liferay.portal.SystemException {
410         return getService()
411                    .updateEntry(userId, entryId, title, content,
412             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
413             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
414             themeDisplay);
415     }
416 
417     public static void updateTagsAsset(long userId,
418         com.liferay.portlet.blogs.model.BlogsEntry entry,
419         java.lang.String[] tagsEntries)
420         throws com.liferay.portal.PortalException,
421             com.liferay.portal.SystemException {
422         getService().updateTagsAsset(userId, entry, tagsEntries);
423     }
424 
425     public static BlogsEntryLocalService getService() {
426         if (_service == null) {
427             throw new RuntimeException("BlogsEntryLocalService is not set");
428         }
429 
430         return _service;
431     }
432 
433     public void setService(BlogsEntryLocalService service) {
434         _service = service;
435     }
436 
437     private static BlogsEntryLocalService _service;
438 }