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  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="BlogsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class provides static methods for the
37   * {@link BlogsEntryLocalService} bean. The static methods of
38   * this class calls the same methods of the bean instance. It's convenient to be
39   * able to just write one line to call a method on a bean instead of writing a
40   * lookup call and a method call.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       BlogsEntryLocalService
45   * @generated
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 updateBlogsEntry(
107         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
108         throws com.liferay.portal.SystemException {
109         return getService().updateBlogsEntry(blogsEntry, merge);
110     }
111 
112     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
113         long userId, java.lang.String title, java.lang.String content,
114         int displayDateMonth, int displayDateDay, int displayDateYear,
115         int displayDateHour, int displayDateMinute, boolean draft,
116         boolean allowTrackbacks, java.lang.String[] trackbacks,
117         com.liferay.portal.service.ServiceContext serviceContext)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException {
120         return getService()
121                    .addEntry(userId, title, content, displayDateMonth,
122             displayDateDay, displayDateYear, displayDateHour,
123             displayDateMinute, draft, allowTrackbacks, trackbacks,
124             serviceContext);
125     }
126 
127     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
128         java.lang.String uuid, long userId, java.lang.String title,
129         java.lang.String content, int displayDateMonth, int displayDateDay,
130         int displayDateYear, int displayDateHour, int displayDateMinute,
131         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
132         com.liferay.portal.service.ServiceContext serviceContext)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException {
135         return getService()
136                    .addEntry(uuid, userId, title, content, displayDateMonth,
137             displayDateDay, displayDateYear, displayDateHour,
138             displayDateMinute, draft, allowTrackbacks, trackbacks,
139             serviceContext);
140     }
141 
142     public static void addEntryResources(long entryId,
143         boolean addCommunityPermissions, boolean addGuestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         getService()
147             .addEntryResources(entryId, addCommunityPermissions,
148             addGuestPermissions);
149     }
150 
151     public static void addEntryResources(
152         com.liferay.portlet.blogs.model.BlogsEntry entry,
153         boolean addCommunityPermissions, boolean addGuestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         getService()
157             .addEntryResources(entry, addCommunityPermissions,
158             addGuestPermissions);
159     }
160 
161     public static void addEntryResources(long entryId,
162         java.lang.String[] communityPermissions,
163         java.lang.String[] guestPermissions)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         getService()
167             .addEntryResources(entryId, communityPermissions, guestPermissions);
168     }
169 
170     public static void addEntryResources(
171         com.liferay.portlet.blogs.model.BlogsEntry entry,
172         java.lang.String[] communityPermissions,
173         java.lang.String[] guestPermissions)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException {
176         getService()
177             .addEntryResources(entry, communityPermissions, guestPermissions);
178     }
179 
180     public static void deleteEntries(long groupId)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         getService().deleteEntries(groupId);
184     }
185 
186     public static void deleteEntry(long entryId)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException {
189         getService().deleteEntry(entryId);
190     }
191 
192     public static void deleteEntry(
193         com.liferay.portlet.blogs.model.BlogsEntry entry)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException {
196         getService().deleteEntry(entry);
197     }
198 
199     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
200         long companyId, int start, int end)
201         throws com.liferay.portal.SystemException {
202         return getService().getCompanyEntries(companyId, start, end);
203     }
204 
205     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
206         long companyId, int start, int end,
207         com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException {
209         return getService().getCompanyEntries(companyId, start, end, obc);
210     }
211 
212     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
213         long companyId, boolean draft, int start, int end)
214         throws com.liferay.portal.SystemException {
215         return getService().getCompanyEntries(companyId, draft, start, end);
216     }
217 
218     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
219         long companyId, boolean draft, int start, int end,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.SystemException {
222         return getService().getCompanyEntries(companyId, draft, start, end, obc);
223     }
224 
225     public static int getCompanyEntriesCount(long companyId)
226         throws com.liferay.portal.SystemException {
227         return getService().getCompanyEntriesCount(companyId);
228     }
229 
230     public static int getCompanyEntriesCount(long companyId, boolean draft)
231         throws com.liferay.portal.SystemException {
232         return getService().getCompanyEntriesCount(companyId, draft);
233     }
234 
235     public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
236         long entryId)
237         throws com.liferay.portal.PortalException,
238             com.liferay.portal.SystemException {
239         return getService().getEntriesPrevAndNext(entryId);
240     }
241 
242     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
243         long entryId)
244         throws com.liferay.portal.PortalException,
245             com.liferay.portal.SystemException {
246         return getService().getEntry(entryId);
247     }
248 
249     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
250         long groupId, java.lang.String urlTitle)
251         throws com.liferay.portal.PortalException,
252             com.liferay.portal.SystemException {
253         return getService().getEntry(groupId, urlTitle);
254     }
255 
256     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
257         long groupId, int start, int end)
258         throws com.liferay.portal.SystemException {
259         return getService().getGroupEntries(groupId, start, end);
260     }
261 
262     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
263         long groupId, int start, int end,
264         com.liferay.portal.kernel.util.OrderByComparator obc)
265         throws com.liferay.portal.SystemException {
266         return getService().getGroupEntries(groupId, start, end, obc);
267     }
268 
269     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
270         long groupId, boolean draft, int start, int end)
271         throws com.liferay.portal.SystemException {
272         return getService().getGroupEntries(groupId, draft, start, end);
273     }
274 
275     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
276         long groupId, boolean draft, int start, int end,
277         com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException {
279         return getService().getGroupEntries(groupId, draft, start, end, obc);
280     }
281 
282     public static int getGroupEntriesCount(long groupId)
283         throws com.liferay.portal.SystemException {
284         return getService().getGroupEntriesCount(groupId);
285     }
286 
287     public static int getGroupEntriesCount(long groupId, boolean draft)
288         throws com.liferay.portal.SystemException {
289         return getService().getGroupEntriesCount(groupId, draft);
290     }
291 
292     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
293         long groupId, long userId, int start, int end)
294         throws com.liferay.portal.SystemException {
295         return getService().getGroupUserEntries(groupId, userId, start, end);
296     }
297 
298     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
299         long groupId, long userId, int start, int end,
300         com.liferay.portal.kernel.util.OrderByComparator obc)
301         throws com.liferay.portal.SystemException {
302         return getService().getGroupUserEntries(groupId, userId, start, end, obc);
303     }
304 
305     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
306         long groupId, long userId, boolean draft, int start, int end)
307         throws com.liferay.portal.SystemException {
308         return getService()
309                    .getGroupUserEntries(groupId, userId, draft, start, end);
310     }
311 
312     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
313         long groupId, long userId, boolean draft, int start, int end,
314         com.liferay.portal.kernel.util.OrderByComparator obc)
315         throws com.liferay.portal.SystemException {
316         return getService()
317                    .getGroupUserEntries(groupId, userId, draft, start, end, obc);
318     }
319 
320     public static int getGroupUserEntriesCount(long groupId, long userId)
321         throws com.liferay.portal.SystemException {
322         return getService().getGroupUserEntriesCount(groupId, userId);
323     }
324 
325     public static int getGroupUserEntriesCount(long groupId, long userId,
326         boolean draft) throws com.liferay.portal.SystemException {
327         return getService().getGroupUserEntriesCount(groupId, userId, draft);
328     }
329 
330     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
331         throws com.liferay.portal.SystemException {
332         return getService().getNoAssetEntries();
333     }
334 
335     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
336         long organizationId, boolean draft, int start, int end)
337         throws com.liferay.portal.SystemException {
338         return getService()
339                    .getOrganizationEntries(organizationId, draft, start, end);
340     }
341 
342     public static int getOrganizationEntriesCount(long organizationId,
343         boolean draft) throws com.liferay.portal.SystemException {
344         return getService().getOrganizationEntriesCount(organizationId, draft);
345     }
346 
347     public static java.lang.String getUrlTitle(long entryId,
348         java.lang.String title) {
349         return getService().getUrlTitle(entryId, title);
350     }
351 
352     public static void reIndex(long entryId)
353         throws com.liferay.portal.SystemException {
354         getService().reIndex(entryId);
355     }
356 
357     public static void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
358         throws com.liferay.portal.SystemException {
359         getService().reIndex(entry);
360     }
361 
362     public static void reIndex(java.lang.String[] ids)
363         throws com.liferay.portal.SystemException {
364         getService().reIndex(ids);
365     }
366 
367     public static com.liferay.portal.kernel.search.Hits search(long companyId,
368         long groupId, long userId, long ownerUserId, java.lang.String keywords,
369         int start, int end) throws com.liferay.portal.SystemException {
370         return getService()
371                    .search(companyId, groupId, userId, ownerUserId, keywords,
372             start, end);
373     }
374 
375     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
376         long userId, long entryId, java.lang.String title,
377         java.lang.String content, int displayDateMonth, int displayDateDay,
378         int displayDateYear, int displayDateHour, int displayDateMinute,
379         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
380         com.liferay.portal.service.ServiceContext serviceContext)
381         throws com.liferay.portal.PortalException,
382             com.liferay.portal.SystemException {
383         return getService()
384                    .updateEntry(userId, entryId, title, content,
385             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
386             displayDateMinute, draft, allowTrackbacks, trackbacks,
387             serviceContext);
388     }
389 
390     public static void updateEntryResources(
391         com.liferay.portlet.blogs.model.BlogsEntry entry,
392         java.lang.String[] communityPermissions,
393         java.lang.String[] guestPermissions)
394         throws com.liferay.portal.PortalException,
395             com.liferay.portal.SystemException {
396         getService()
397             .updateEntryResources(entry, communityPermissions, guestPermissions);
398     }
399 
400     public static void updateTagsAsset(long userId,
401         com.liferay.portlet.blogs.model.BlogsEntry entry,
402         java.lang.String[] tagsEntries)
403         throws com.liferay.portal.PortalException,
404             com.liferay.portal.SystemException {
405         getService().updateTagsAsset(userId, entry, tagsEntries);
406     }
407 
408     public static BlogsEntryLocalService getService() {
409         if (_service == null) {
410             _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
411         }
412 
413         return _service;
414     }
415 
416     public void setService(BlogsEntryLocalService service) {
417         _service = service;
418     }
419 
420     private static BlogsEntryLocalService _service;
421 }