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 plid, 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          boolean addCommunityPermissions, boolean addGuestPermissions)
50          throws com.liferay.portal.PortalException,
51              com.liferay.portal.SystemException, java.rmi.RemoteException {
52          return getService()
53                     .addFeed(plid, feedId, autoFeedId, name, description, type,
54              structureId, templateId, rendererTemplateId, delta, orderByCol,
55              orderByType, targetLayoutFriendlyUrl, targetPortletId,
56              contentField, feedType, feedVersion, addCommunityPermissions,
57              addGuestPermissions);
58      }
59  
60      public static com.liferay.portlet.journal.model.JournalFeed addFeed(
61          long plid, java.lang.String feedId, boolean autoFeedId,
62          java.lang.String name, java.lang.String description,
63          java.lang.String type, java.lang.String structureId,
64          java.lang.String templateId, java.lang.String rendererTemplateId,
65          int delta, java.lang.String orderByCol, java.lang.String orderByType,
66          java.lang.String targetLayoutFriendlyUrl,
67          java.lang.String targetPortletId, java.lang.String contentField,
68          java.lang.String feedType, double feedVersion,
69          java.lang.String[] communityPermissions,
70          java.lang.String[] guestPermissions)
71          throws com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException, java.rmi.RemoteException {
73          return getService()
74                     .addFeed(plid, feedId, autoFeedId, name, description, type,
75              structureId, templateId, rendererTemplateId, delta, orderByCol,
76              orderByType, targetLayoutFriendlyUrl, targetPortletId,
77              contentField, feedType, feedVersion, communityPermissions,
78              guestPermissions);
79      }
80  
81      public static void deleteFeed(long groupId, long feedId)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException, java.rmi.RemoteException {
84          getService().deleteFeed(groupId, feedId);
85      }
86  
87      public static void deleteFeed(long groupId, java.lang.String feedId)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException, java.rmi.RemoteException {
90          getService().deleteFeed(groupId, feedId);
91      }
92  
93      public static com.liferay.portlet.journal.model.JournalFeed getFeed(
94          long groupId, long feedId)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException, java.rmi.RemoteException {
97          return getService().getFeed(groupId, feedId);
98      }
99  
100     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
101         long groupId, java.lang.String feedId)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException, java.rmi.RemoteException {
104         return getService().getFeed(groupId, feedId);
105     }
106 
107     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
108         long groupId, java.lang.String feedId, java.lang.String name,
109         java.lang.String description, java.lang.String type,
110         java.lang.String structureId, java.lang.String templateId,
111         java.lang.String rendererTemplateId, int delta,
112         java.lang.String orderByCol, java.lang.String orderByType,
113         java.lang.String targetLayoutFriendlyUrl,
114         java.lang.String targetPortletId, java.lang.String contentField,
115         java.lang.String feedType, double feedVersion)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException, java.rmi.RemoteException {
118         return getService()
119                    .updateFeed(groupId, feedId, name, description, type,
120             structureId, templateId, rendererTemplateId, delta, orderByCol,
121             orderByType, targetLayoutFriendlyUrl, targetPortletId,
122             contentField, feedType, feedVersion);
123     }
124 
125     public static JournalFeedService getService() {
126         if (_service == null) {
127             _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
128         }
129 
130         return _service;
131     }
132 
133     public void setService(JournalFeedService service) {
134         _service = service;
135     }
136 
137     private static JournalFeedService _service;
138 }