1   /**
2    * Copyright (c) 2000-2010 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   *
12   * 
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.PortalException,
51              com.liferay.portal.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.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteFeed(groupId, feedId);
63      }
64  
65      public static void deleteFeed(long groupId, java.lang.String feedId)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.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.PortalException,
74              com.liferay.portal.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.PortalException,
81              com.liferay.portal.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.PortalException,
96              com.liferay.portal.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 }