1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.blogs.service;
21  
22  
23  /**
24   * <a href="BlogsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class provides static methods for the
33   * <code>com.liferay.portlet.blogs.service.BlogsEntryLocalService</code>
34   * bean. The static methods of this class calls the same methods of the bean
35   * instance. It's convenient to be able to just write one line to call a method
36   * on a bean instead of writing a lookup call and a method call.
37   * </p>
38   *
39   * @author Brian Wing Shun Chan
40   *
41   * @see com.liferay.portlet.blogs.service.BlogsEntryLocalService
42   *
43   */
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 updateBlogsEntry(
104         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
105         throws com.liferay.portal.SystemException {
106         return getService().updateBlogsEntry(blogsEntry, merge);
107     }
108 
109     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
110         long userId, long plid, java.lang.String title,
111         java.lang.String content, int displayDateMonth, int displayDateDay,
112         int displayDateYear, int displayDateHour, int displayDateMinute,
113         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
114         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
115         boolean addGuestPermissions,
116         com.liferay.portal.theme.ThemeDisplay themeDisplay)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException {
119         return getService()
120                    .addEntry(userId, plid, title, content, displayDateMonth,
121             displayDateDay, displayDateYear, displayDateHour,
122             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
123             addCommunityPermissions, addGuestPermissions, themeDisplay);
124     }
125 
126     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
127         java.lang.String uuid, long userId, long plid, java.lang.String title,
128         java.lang.String content, int displayDateMonth, int displayDateDay,
129         int displayDateYear, int displayDateHour, int displayDateMinute,
130         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
131         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
132         boolean addGuestPermissions,
133         com.liferay.portal.theme.ThemeDisplay themeDisplay)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException {
136         return getService()
137                    .addEntry(uuid, userId, plid, title, content,
138             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
139             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
140             addCommunityPermissions, addGuestPermissions, themeDisplay);
141     }
142 
143     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
144         long userId, long plid, java.lang.String title,
145         java.lang.String content, int displayDateMonth, int displayDateDay,
146         int displayDateYear, int displayDateHour, int displayDateMinute,
147         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
148         java.lang.String[] tagsEntries,
149         java.lang.String[] communityPermissions,
150         java.lang.String[] guestPermissions,
151         com.liferay.portal.theme.ThemeDisplay themeDisplay)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         return getService()
155                    .addEntry(userId, plid, title, content, displayDateMonth,
156             displayDateDay, displayDateYear, displayDateHour,
157             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
158             communityPermissions, guestPermissions, themeDisplay);
159     }
160 
161     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
162         java.lang.String uuid, long userId, long plid, java.lang.String title,
163         java.lang.String content, int displayDateMonth, int displayDateDay,
164         int displayDateYear, int displayDateHour, int displayDateMinute,
165         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
166         java.lang.String[] tagsEntries,
167         java.lang.Boolean addCommunityPermissions,
168         java.lang.Boolean addGuestPermissions,
169         java.lang.String[] communityPermissions,
170         java.lang.String[] guestPermissions,
171         com.liferay.portal.theme.ThemeDisplay themeDisplay)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException {
174         return getService()
175                    .addEntry(uuid, userId, plid, title, content,
176             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
177             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
178             addCommunityPermissions, addGuestPermissions, communityPermissions,
179             guestPermissions, themeDisplay);
180     }
181 
182     public static void addEntryResources(long entryId,
183         boolean addCommunityPermissions, boolean addGuestPermissions)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException {
186         getService()
187             .addEntryResources(entryId, addCommunityPermissions,
188             addGuestPermissions);
189     }
190 
191     public static void addEntryResources(
192         com.liferay.portlet.blogs.model.BlogsEntry entry,
193         boolean addCommunityPermissions, boolean addGuestPermissions)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException {
196         getService()
197             .addEntryResources(entry, addCommunityPermissions,
198             addGuestPermissions);
199     }
200 
201     public static void addEntryResources(long entryId,
202         java.lang.String[] communityPermissions,
203         java.lang.String[] guestPermissions)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException {
206         getService()
207             .addEntryResources(entryId, communityPermissions, guestPermissions);
208     }
209 
210     public static void addEntryResources(
211         com.liferay.portlet.blogs.model.BlogsEntry entry,
212         java.lang.String[] communityPermissions,
213         java.lang.String[] guestPermissions)
214         throws com.liferay.portal.PortalException,
215             com.liferay.portal.SystemException {
216         getService()
217             .addEntryResources(entry, communityPermissions, guestPermissions);
218     }
219 
220     public static void deleteEntries(long groupId)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException {
223         getService().deleteEntries(groupId);
224     }
225 
226     public static void deleteEntry(long entryId)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         getService().deleteEntry(entryId);
230     }
231 
232     public static void deleteEntry(
233         com.liferay.portlet.blogs.model.BlogsEntry entry)
234         throws com.liferay.portal.PortalException,
235             com.liferay.portal.SystemException {
236         getService().deleteEntry(entry);
237     }
238 
239     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
240         long companyId, int start, int end)
241         throws com.liferay.portal.SystemException {
242         return getService().getCompanyEntries(companyId, start, end);
243     }
244 
245     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
246         long companyId, int start, int end,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException {
249         return getService().getCompanyEntries(companyId, start, end, obc);
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         throws com.liferay.portal.SystemException {
255         return getService().getCompanyEntries(companyId, draft, start, end);
256     }
257 
258     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
259         long companyId, boolean draft, int start, int end,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.SystemException {
262         return getService().getCompanyEntries(companyId, draft, start, end, obc);
263     }
264 
265     public static int getCompanyEntriesCount(long companyId)
266         throws com.liferay.portal.SystemException {
267         return getService().getCompanyEntriesCount(companyId);
268     }
269 
270     public static int getCompanyEntriesCount(long companyId, boolean draft)
271         throws com.liferay.portal.SystemException {
272         return getService().getCompanyEntriesCount(companyId, draft);
273     }
274 
275     public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
276         long entryId)
277         throws com.liferay.portal.PortalException,
278             com.liferay.portal.SystemException {
279         return getService().getEntriesPrevAndNext(entryId);
280     }
281 
282     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
283         long entryId)
284         throws com.liferay.portal.PortalException,
285             com.liferay.portal.SystemException {
286         return getService().getEntry(entryId);
287     }
288 
289     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
290         long groupId, java.lang.String urlTitle)
291         throws com.liferay.portal.PortalException,
292             com.liferay.portal.SystemException {
293         return getService().getEntry(groupId, urlTitle);
294     }
295 
296     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
297         long groupId, int start, int end)
298         throws com.liferay.portal.SystemException {
299         return getService().getGroupEntries(groupId, start, end);
300     }
301 
302     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
303         long groupId, int start, int end,
304         com.liferay.portal.kernel.util.OrderByComparator obc)
305         throws com.liferay.portal.SystemException {
306         return getService().getGroupEntries(groupId, start, end, obc);
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         throws com.liferay.portal.SystemException {
312         return getService().getGroupEntries(groupId, draft, start, end);
313     }
314 
315     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
316         long groupId, boolean draft, int start, int end,
317         com.liferay.portal.kernel.util.OrderByComparator obc)
318         throws com.liferay.portal.SystemException {
319         return getService().getGroupEntries(groupId, draft, start, end, obc);
320     }
321 
322     public static int getGroupEntriesCount(long groupId)
323         throws com.liferay.portal.SystemException {
324         return getService().getGroupEntriesCount(groupId);
325     }
326 
327     public static int getGroupEntriesCount(long groupId, boolean draft)
328         throws com.liferay.portal.SystemException {
329         return getService().getGroupEntriesCount(groupId, draft);
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         throws com.liferay.portal.SystemException {
335         return getService().getGroupUserEntries(groupId, userId, start, end);
336     }
337 
338     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
339         long groupId, long userId, int start, int end,
340         com.liferay.portal.kernel.util.OrderByComparator obc)
341         throws com.liferay.portal.SystemException {
342         return getService().getGroupUserEntries(groupId, userId, start, end, obc);
343     }
344 
345     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
346         long groupId, long userId, boolean draft, int start, int end)
347         throws com.liferay.portal.SystemException {
348         return getService()
349                    .getGroupUserEntries(groupId, userId, draft, start, end);
350     }
351 
352     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
353         long groupId, long userId, boolean draft, int start, int end,
354         com.liferay.portal.kernel.util.OrderByComparator obc)
355         throws com.liferay.portal.SystemException {
356         return getService()
357                    .getGroupUserEntries(groupId, userId, draft, start, end, obc);
358     }
359 
360     public static int getGroupUserEntriesCount(long groupId, long userId)
361         throws com.liferay.portal.SystemException {
362         return getService().getGroupUserEntriesCount(groupId, userId);
363     }
364 
365     public static int getGroupUserEntriesCount(long groupId, long userId,
366         boolean draft) throws com.liferay.portal.SystemException {
367         return getService().getGroupUserEntriesCount(groupId, userId, draft);
368     }
369 
370     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
371         throws com.liferay.portal.SystemException {
372         return getService().getNoAssetEntries();
373     }
374 
375     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
376         long organizationId, boolean draft, int start, int end)
377         throws com.liferay.portal.SystemException {
378         return getService()
379                    .getOrganizationEntries(organizationId, draft, start, end);
380     }
381 
382     public static int getOrganizationEntriesCount(long organizationId,
383         boolean draft) throws com.liferay.portal.SystemException {
384         return getService().getOrganizationEntriesCount(organizationId, draft);
385     }
386 
387     public static java.lang.String getUrlTitle(long entryId,
388         java.lang.String title) {
389         return getService().getUrlTitle(entryId, title);
390     }
391 
392     public static void reIndex(long entryId)
393         throws com.liferay.portal.SystemException {
394         getService().reIndex(entryId);
395     }
396 
397     public static void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
398         throws com.liferay.portal.SystemException {
399         getService().reIndex(entry);
400     }
401 
402     public static void reIndex(java.lang.String[] ids)
403         throws com.liferay.portal.SystemException {
404         getService().reIndex(ids);
405     }
406 
407     public static com.liferay.portal.kernel.search.Hits search(long companyId,
408         long groupId, long userId, java.lang.String keywords, int start, int end)
409         throws com.liferay.portal.SystemException {
410         return getService()
411                    .search(companyId, groupId, userId, keywords, start, end);
412     }
413 
414     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
415         long userId, long entryId, java.lang.String title,
416         java.lang.String content, int displayDateMonth, int displayDateDay,
417         int displayDateYear, int displayDateHour, int displayDateMinute,
418         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
419         java.lang.String[] tagsEntries,
420         com.liferay.portal.theme.ThemeDisplay themeDisplay)
421         throws com.liferay.portal.PortalException,
422             com.liferay.portal.SystemException {
423         return getService()
424                    .updateEntry(userId, entryId, title, content,
425             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
426             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
427             themeDisplay);
428     }
429 
430     public static void updateTagsAsset(long userId,
431         com.liferay.portlet.blogs.model.BlogsEntry entry,
432         java.lang.String[] tagsEntries)
433         throws com.liferay.portal.PortalException,
434             com.liferay.portal.SystemException {
435         getService().updateTagsAsset(userId, entry, tagsEntries);
436     }
437 
438     public static BlogsEntryLocalService getService() {
439         if (_service == null) {
440             throw new RuntimeException("BlogsEntryLocalService is not set");
441         }
442 
443         return _service;
444     }
445 
446     public void setService(BlogsEntryLocalService service) {
447         _service = service;
448     }
449 
450     private static BlogsEntryLocalService _service;
451 }