1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   * {@link JournalFeedService} bean. The static methods of
37   * this class calls the same methods of the bean instance. It's convenient to be
38   * able to just write one line to call a method on a bean instead of writing a
39   * lookup call and a method call.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       JournalFeedService
44   * @generated
45   */
46  public class JournalFeedServiceUtil {
47      public static com.liferay.portlet.journal.model.JournalFeed addFeed(
48          long plid, java.lang.String feedId, boolean autoFeedId,
49          java.lang.String name, java.lang.String description,
50          java.lang.String type, java.lang.String structureId,
51          java.lang.String templateId, java.lang.String rendererTemplateId,
52          int delta, java.lang.String orderByCol, java.lang.String orderByType,
53          java.lang.String targetLayoutFriendlyUrl,
54          java.lang.String targetPortletId, java.lang.String contentField,
55          java.lang.String feedType, double feedVersion,
56          boolean addCommunityPermissions, boolean addGuestPermissions)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException, java.rmi.RemoteException {
59          return getService()
60                     .addFeed(plid, feedId, autoFeedId, name, description, type,
61              structureId, templateId, rendererTemplateId, delta, orderByCol,
62              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 getService()
81                     .addFeed(plid, feedId, autoFeedId, name, description, type,
82              structureId, templateId, rendererTemplateId, delta, orderByCol,
83              orderByType, targetLayoutFriendlyUrl, targetPortletId,
84              contentField, feedType, feedVersion, communityPermissions,
85              guestPermissions);
86      }
87  
88      public static void deleteFeed(long groupId, long feedId)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException, java.rmi.RemoteException {
91          getService().deleteFeed(groupId, feedId);
92      }
93  
94      public static void deleteFeed(long groupId, java.lang.String feedId)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException, java.rmi.RemoteException {
97          getService().deleteFeed(groupId, feedId);
98      }
99  
100     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
101         long groupId, long 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 getFeed(
108         long groupId, java.lang.String feedId)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException, java.rmi.RemoteException {
111         return getService().getFeed(groupId, feedId);
112     }
113 
114     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
115         long groupId, java.lang.String feedId, java.lang.String name,
116         java.lang.String description, java.lang.String type,
117         java.lang.String structureId, java.lang.String templateId,
118         java.lang.String rendererTemplateId, int delta,
119         java.lang.String orderByCol, java.lang.String orderByType,
120         java.lang.String targetLayoutFriendlyUrl,
121         java.lang.String targetPortletId, java.lang.String contentField,
122         java.lang.String feedType, double feedVersion)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException, java.rmi.RemoteException {
125         return getService()
126                    .updateFeed(groupId, feedId, name, description, type,
127             structureId, templateId, rendererTemplateId, delta, orderByCol,
128             orderByType, targetLayoutFriendlyUrl, targetPortletId,
129             contentField, feedType, feedVersion);
130     }
131 
132     public static JournalFeedService getService() {
133         if (_service == null) {
134             throw new RuntimeException("JournalFeedService is not set");
135         }
136 
137         return _service;
138     }
139 
140     public void setService(JournalFeedService service) {
141         _service = service;
142     }
143 
144     private static JournalFeedService _service;
145 }