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   * <p>
43   * <code>com.liferay.portlet.journal.service.JournalFeedServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.journal.service.JournalFeedService
50   * @see com.liferay.portlet.journal.service.JournalFeedServiceFactory
51   *
52   */
53  public class JournalFeedServiceUtil {
54      public static com.liferay.portlet.journal.model.JournalFeed addFeed(
55          long plid, java.lang.String feedId, boolean autoFeedId,
56          java.lang.String name, java.lang.String description,
57          java.lang.String type, java.lang.String structureId,
58          java.lang.String templateId, java.lang.String rendererTemplateId,
59          int delta, java.lang.String orderByCol, java.lang.String orderByType,
60          java.lang.String targetLayoutFriendlyUrl,
61          java.lang.String targetPortletId, java.lang.String contentField,
62          java.lang.String feedType, double feedVersion,
63          boolean addCommunityPermissions, boolean addGuestPermissions)
64          throws com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException, java.rmi.RemoteException {
66          JournalFeedService journalFeedService = JournalFeedServiceFactory.getService();
67  
68          return journalFeedService.addFeed(plid, feedId, autoFeedId, name,
69              description, type, structureId, templateId, rendererTemplateId,
70              delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
71              targetPortletId, contentField, feedType, feedVersion,
72              addCommunityPermissions, addGuestPermissions);
73      }
74  
75      public static com.liferay.portlet.journal.model.JournalFeed addFeed(
76          long plid, java.lang.String feedId, boolean autoFeedId,
77          java.lang.String name, java.lang.String description,
78          java.lang.String type, java.lang.String structureId,
79          java.lang.String templateId, java.lang.String rendererTemplateId,
80          int delta, java.lang.String orderByCol, java.lang.String orderByType,
81          java.lang.String targetLayoutFriendlyUrl,
82          java.lang.String targetPortletId, java.lang.String contentField,
83          java.lang.String feedType, double feedVersion,
84          java.lang.String[] communityPermissions,
85          java.lang.String[] guestPermissions)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException, java.rmi.RemoteException {
88          JournalFeedService journalFeedService = JournalFeedServiceFactory.getService();
89  
90          return journalFeedService.addFeed(plid, feedId, autoFeedId, name,
91              description, type, structureId, templateId, rendererTemplateId,
92              delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
93              targetPortletId, contentField, feedType, feedVersion,
94              communityPermissions, guestPermissions);
95      }
96  
97      public static void deleteFeed(long groupId, long feedId)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException, java.rmi.RemoteException {
100         JournalFeedService journalFeedService = JournalFeedServiceFactory.getService();
101 
102         journalFeedService.deleteFeed(groupId, feedId);
103     }
104 
105     public static void deleteFeed(long groupId, java.lang.String feedId)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException, java.rmi.RemoteException {
108         JournalFeedService journalFeedService = JournalFeedServiceFactory.getService();
109 
110         journalFeedService.deleteFeed(groupId, feedId);
111     }
112 
113     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
114         long groupId, long feedId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException, java.rmi.RemoteException {
117         JournalFeedService journalFeedService = JournalFeedServiceFactory.getService();
118 
119         return journalFeedService.getFeed(groupId, feedId);
120     }
121 
122     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
123         long groupId, java.lang.String feedId)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException, java.rmi.RemoteException {
126         JournalFeedService journalFeedService = JournalFeedServiceFactory.getService();
127 
128         return journalFeedService.getFeed(groupId, feedId);
129     }
130 
131     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
132         long groupId, java.lang.String feedId, java.lang.String name,
133         java.lang.String description, java.lang.String type,
134         java.lang.String structureId, java.lang.String templateId,
135         java.lang.String rendererTemplateId, int delta,
136         java.lang.String orderByCol, java.lang.String orderByType,
137         java.lang.String targetLayoutFriendlyUrl,
138         java.lang.String targetPortletId, java.lang.String contentField,
139         java.lang.String feedType, double feedVersion)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException, java.rmi.RemoteException {
142         JournalFeedService journalFeedService = JournalFeedServiceFactory.getService();
143 
144         return journalFeedService.updateFeed(groupId, feedId, name,
145             description, type, structureId, templateId, rendererTemplateId,
146             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
147             targetPortletId, contentField, feedType, feedVersion);
148     }
149 }