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