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.journal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="JournalFeedServiceUtil.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 JournalFeedService} 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       JournalFeedService
37   * @generated
38   */
39  public class JournalFeedServiceUtil {
40      public static com.liferay.portlet.journal.model.JournalFeed addFeed(
41          long groupId, java.lang.String feedId, boolean autoFeedId,
42          java.lang.String name, java.lang.String description,
43          java.lang.String type, java.lang.String structureId,
44          java.lang.String templateId, java.lang.String rendererTemplateId,
45          int delta, java.lang.String orderByCol, java.lang.String orderByType,
46          java.lang.String targetLayoutFriendlyUrl,
47          java.lang.String targetPortletId, java.lang.String contentField,
48          java.lang.String feedType, double feedVersion,
49          com.liferay.portal.service.ServiceContext serviceContext)
50          throws com.liferay.portal.kernel.exception.PortalException,
51              com.liferay.portal.kernel.exception.SystemException {
52          return getService()
53                     .addFeed(groupId, feedId, autoFeedId, name, description,
54              type, structureId, templateId, rendererTemplateId, delta,
55              orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
56              contentField, feedType, feedVersion, serviceContext);
57      }
58  
59      public static void deleteFeed(long groupId, long feedId)
60          throws com.liferay.portal.kernel.exception.PortalException,
61              com.liferay.portal.kernel.exception.SystemException {
62          getService().deleteFeed(groupId, feedId);
63      }
64  
65      public static void deleteFeed(long groupId, java.lang.String feedId)
66          throws com.liferay.portal.kernel.exception.PortalException,
67              com.liferay.portal.kernel.exception.SystemException {
68          getService().deleteFeed(groupId, feedId);
69      }
70  
71      public static com.liferay.portlet.journal.model.JournalFeed getFeed(
72          long groupId, long feedId)
73          throws com.liferay.portal.kernel.exception.PortalException,
74              com.liferay.portal.kernel.exception.SystemException {
75          return getService().getFeed(groupId, feedId);
76      }
77  
78      public static com.liferay.portlet.journal.model.JournalFeed getFeed(
79          long groupId, java.lang.String feedId)
80          throws com.liferay.portal.kernel.exception.PortalException,
81              com.liferay.portal.kernel.exception.SystemException {
82          return getService().getFeed(groupId, feedId);
83      }
84  
85      public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
86          long groupId, java.lang.String feedId, java.lang.String name,
87          java.lang.String description, java.lang.String type,
88          java.lang.String structureId, java.lang.String templateId,
89          java.lang.String rendererTemplateId, int delta,
90          java.lang.String orderByCol, java.lang.String orderByType,
91          java.lang.String targetLayoutFriendlyUrl,
92          java.lang.String targetPortletId, java.lang.String contentField,
93          java.lang.String feedType, double feedVersion,
94          com.liferay.portal.service.ServiceContext serviceContext)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService()
98                     .updateFeed(groupId, feedId, name, description, type,
99              structureId, templateId, rendererTemplateId, delta, orderByCol,
100             orderByType, targetLayoutFriendlyUrl, targetPortletId,
101             contentField, feedType, feedVersion, serviceContext);
102     }
103 
104     public static JournalFeedService getService() {
105         if (_service == null) {
106             _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
107         }
108 
109         return _service;
110     }
111 
112     public void setService(JournalFeedService service) {
113         _service = service;
114     }
115 
116     private static JournalFeedService _service;
117 }