1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.journal.service;
24  
25  
26  /**
27   * <a href="JournalFeedServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.journal.service.JournalFeedService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.journal.service.JournalFeedService
45   *
46   */
47  public class JournalFeedServiceUtil {
48      public static com.liferay.portlet.journal.model.JournalFeed addFeed(
49          long plid, java.lang.String feedId, boolean autoFeedId,
50          java.lang.String name, java.lang.String description,
51          java.lang.String type, java.lang.String structureId,
52          java.lang.String templateId, java.lang.String rendererTemplateId,
53          int delta, java.lang.String orderByCol, java.lang.String orderByType,
54          java.lang.String targetLayoutFriendlyUrl,
55          java.lang.String targetPortletId, java.lang.String contentField,
56          java.lang.String feedType, double feedVersion,
57          boolean addCommunityPermissions, boolean addGuestPermissions)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException, java.rmi.RemoteException {
60          return _service.addFeed(plid, feedId, autoFeedId, name, description,
61              type, structureId, templateId, rendererTemplateId, delta,
62              orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
63              contentField, feedType, feedVersion, addCommunityPermissions,
64              addGuestPermissions);
65      }
66  
67      public static com.liferay.portlet.journal.model.JournalFeed addFeed(
68          long plid, java.lang.String feedId, boolean autoFeedId,
69          java.lang.String name, java.lang.String description,
70          java.lang.String type, java.lang.String structureId,
71          java.lang.String templateId, java.lang.String rendererTemplateId,
72          int delta, java.lang.String orderByCol, java.lang.String orderByType,
73          java.lang.String targetLayoutFriendlyUrl,
74          java.lang.String targetPortletId, java.lang.String contentField,
75          java.lang.String feedType, double feedVersion,
76          java.lang.String[] communityPermissions,
77          java.lang.String[] guestPermissions)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException, java.rmi.RemoteException {
80          return _service.addFeed(plid, feedId, autoFeedId, name, description,
81              type, structureId, templateId, rendererTemplateId, delta,
82              orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
83              contentField, feedType, feedVersion, communityPermissions,
84              guestPermissions);
85      }
86  
87      public static void deleteFeed(long groupId, long feedId)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException, java.rmi.RemoteException {
90          _service.deleteFeed(groupId, feedId);
91      }
92  
93      public static void deleteFeed(long groupId, java.lang.String feedId)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException, java.rmi.RemoteException {
96          _service.deleteFeed(groupId, feedId);
97      }
98  
99      public static com.liferay.portlet.journal.model.JournalFeed getFeed(
100         long groupId, long feedId)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException, java.rmi.RemoteException {
103         return _service.getFeed(groupId, feedId);
104     }
105 
106     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
107         long groupId, java.lang.String feedId)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException, java.rmi.RemoteException {
110         return _service.getFeed(groupId, feedId);
111     }
112 
113     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
114         long groupId, java.lang.String feedId, java.lang.String name,
115         java.lang.String description, java.lang.String type,
116         java.lang.String structureId, java.lang.String templateId,
117         java.lang.String rendererTemplateId, int delta,
118         java.lang.String orderByCol, java.lang.String orderByType,
119         java.lang.String targetLayoutFriendlyUrl,
120         java.lang.String targetPortletId, java.lang.String contentField,
121         java.lang.String feedType, double feedVersion)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException, java.rmi.RemoteException {
124         return _service.updateFeed(groupId, feedId, name, description, type,
125             structureId, templateId, rendererTemplateId, delta, orderByCol,
126             orderByType, targetLayoutFriendlyUrl, targetPortletId,
127             contentField, feedType, feedVersion);
128     }
129 
130     public static JournalFeedService getService() {
131         return _service;
132     }
133 
134     public void setService(JournalFeedService service) {
135         _service = service;
136     }
137 
138     private static JournalFeedService _service;
139 }