1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.kernel.exception.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.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.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)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getBlogsEntries(start, end);
86      }
87  
88      public static int getBlogsEntriesCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getBlogsEntriesCount();
91      }
92  
93      public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
94          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateBlogsEntry(blogsEntry);
97      }
98  
99      public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
100         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getService().updateBlogsEntry(blogsEntry, merge);
103     }
104 
105     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
106         java.lang.String uuid, long userId, java.lang.String title,
107         java.lang.String content, int displayDateMonth, int displayDateDay,
108         int displayDateYear, int displayDateHour, int displayDateMinute,
109         boolean allowPingbacks, boolean allowTrackbacks,
110         java.lang.String[] trackbacks,
111         com.liferay.portal.service.ServiceContext serviceContext)
112         throws com.liferay.portal.kernel.exception.PortalException,
113             com.liferay.portal.kernel.exception.SystemException {
114         return getService()
115                    .addEntry(uuid, userId, title, content, displayDateMonth,
116             displayDateDay, displayDateYear, displayDateHour,
117             displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
118             serviceContext);
119     }
120 
121     public static void addEntryResources(
122         com.liferay.portlet.blogs.model.BlogsEntry entry,
123         boolean addCommunityPermissions, boolean addGuestPermissions)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         getService()
127             .addEntryResources(entry, addCommunityPermissions,
128             addGuestPermissions);
129     }
130 
131     public static void addEntryResources(
132         com.liferay.portlet.blogs.model.BlogsEntry entry,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException {
137         getService()
138             .addEntryResources(entry, communityPermissions, guestPermissions);
139     }
140 
141     public static void addEntryResources(long entryId,
142         boolean addCommunityPermissions, boolean addGuestPermissions)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException {
145         getService()
146             .addEntryResources(entryId, addCommunityPermissions,
147             addGuestPermissions);
148     }
149 
150     public static void addEntryResources(long entryId,
151         java.lang.String[] communityPermissions,
152         java.lang.String[] guestPermissions)
153         throws com.liferay.portal.kernel.exception.PortalException,
154             com.liferay.portal.kernel.exception.SystemException {
155         getService()
156             .addEntryResources(entryId, communityPermissions, guestPermissions);
157     }
158 
159     public static void deleteEntries(long groupId)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException {
162         getService().deleteEntries(groupId);
163     }
164 
165     public static void deleteEntry(
166         com.liferay.portlet.blogs.model.BlogsEntry entry)
167         throws com.liferay.portal.kernel.exception.PortalException,
168             com.liferay.portal.kernel.exception.SystemException {
169         getService().deleteEntry(entry);
170     }
171 
172     public static void deleteEntry(long entryId)
173         throws com.liferay.portal.kernel.exception.PortalException,
174             com.liferay.portal.kernel.exception.SystemException {
175         getService().deleteEntry(entryId);
176     }
177 
178     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
179         long companyId, int status, int start, int end)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getService().getCompanyEntries(companyId, status, start, end);
182     }
183 
184     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
185         long companyId, int status, int start, int end,
186         com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.kernel.exception.SystemException {
188         return getService().getCompanyEntries(companyId, status, start, end, obc);
189     }
190 
191     public static int getCompanyEntriesCount(long companyId, int status)
192         throws com.liferay.portal.kernel.exception.SystemException {
193         return getService().getCompanyEntriesCount(companyId, status);
194     }
195 
196     public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
197         long entryId)
198         throws com.liferay.portal.kernel.exception.PortalException,
199             com.liferay.portal.kernel.exception.SystemException {
200         return getService().getEntriesPrevAndNext(entryId);
201     }
202 
203     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
204         long entryId)
205         throws com.liferay.portal.kernel.exception.PortalException,
206             com.liferay.portal.kernel.exception.SystemException {
207         return getService().getEntry(entryId);
208     }
209 
210     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
211         long groupId, java.lang.String urlTitle)
212         throws com.liferay.portal.kernel.exception.PortalException,
213             com.liferay.portal.kernel.exception.SystemException {
214         return getService().getEntry(groupId, urlTitle);
215     }
216 
217     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
218         long groupId, int status, int start, int end)
219         throws com.liferay.portal.kernel.exception.SystemException {
220         return getService().getGroupEntries(groupId, status, start, end);
221     }
222 
223     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
224         long groupId, int status, int start, int end,
225         com.liferay.portal.kernel.util.OrderByComparator obc)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getService().getGroupEntries(groupId, status, start, end, obc);
228     }
229 
230     public static int getGroupEntriesCount(long groupId, int status)
231         throws com.liferay.portal.kernel.exception.SystemException {
232         return getService().getGroupEntriesCount(groupId, status);
233     }
234 
235     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
236         long groupId, long userId, int status, int start, int end)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getService()
239                    .getGroupUserEntries(groupId, userId, status, start, end);
240     }
241 
242     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
243         long groupId, long userId, int status, int start, int end,
244         com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.kernel.exception.SystemException {
246         return getService()
247                    .getGroupUserEntries(groupId, userId, status, start, end, obc);
248     }
249 
250     public static int getGroupUserEntriesCount(long groupId, long userId,
251         int status) throws com.liferay.portal.kernel.exception.SystemException {
252         return getService().getGroupUserEntriesCount(groupId, userId, status);
253     }
254 
255     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
256         throws com.liferay.portal.kernel.exception.SystemException {
257         return getService().getNoAssetEntries();
258     }
259 
260     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
261         long organizationId, int status, int start, int end)
262         throws com.liferay.portal.kernel.exception.SystemException {
263         return getService()
264                    .getOrganizationEntries(organizationId, status, start, end);
265     }
266 
267     public static int getOrganizationEntriesCount(long organizationId,
268         int status) throws com.liferay.portal.kernel.exception.SystemException {
269         return getService().getOrganizationEntriesCount(organizationId, status);
270     }
271 
272     public static void updateAsset(long userId,
273         com.liferay.portlet.blogs.model.BlogsEntry entry,
274         long[] assetCategoryIds, java.lang.String[] assetTagNames)
275         throws com.liferay.portal.kernel.exception.PortalException,
276             com.liferay.portal.kernel.exception.SystemException {
277         getService().updateAsset(userId, entry, assetCategoryIds, assetTagNames);
278     }
279 
280     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
281         long userId, long entryId, java.lang.String title,
282         java.lang.String content, int displayDateMonth, int displayDateDay,
283         int displayDateYear, int displayDateHour, int displayDateMinute,
284         boolean allowPingbacks, boolean allowTrackbacks,
285         java.lang.String[] trackbacks,
286         com.liferay.portal.service.ServiceContext serviceContext)
287         throws com.liferay.portal.kernel.exception.PortalException,
288             com.liferay.portal.kernel.exception.SystemException {
289         return getService()
290                    .updateEntry(userId, entryId, title, content,
291             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
292             displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
293             serviceContext);
294     }
295 
296     public static void updateEntryResources(
297         com.liferay.portlet.blogs.model.BlogsEntry entry,
298         java.lang.String[] communityPermissions,
299         java.lang.String[] guestPermissions)
300         throws com.liferay.portal.kernel.exception.PortalException,
301             com.liferay.portal.kernel.exception.SystemException {
302         getService()
303             .updateEntryResources(entry, communityPermissions, guestPermissions);
304     }
305 
306     public static com.liferay.portlet.blogs.model.BlogsEntry updateWorkflowStatus(
307         long userId, long entryId, java.lang.String[] trackbacks,
308         boolean pingOldTrackbaks,
309         com.liferay.portal.service.ServiceContext serviceContext)
310         throws com.liferay.portal.kernel.exception.PortalException,
311             com.liferay.portal.kernel.exception.SystemException {
312         return getService()
313                    .updateWorkflowStatus(userId, entryId, trackbacks,
314             pingOldTrackbaks, serviceContext);
315     }
316 
317     public static BlogsEntryLocalService getService() {
318         if (_service == null) {
319             _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
320         }
321 
322         return _service;
323     }
324 
325     public void setService(BlogsEntryLocalService service) {
326         _service = service;
327     }
328 
329     private static BlogsEntryLocalService _service;
330 }