1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="JournalFeedLocalServiceUtil.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 JournalFeedLocalService} 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       JournalFeedLocalService
37   * @generated
38   */
39  public class JournalFeedLocalServiceUtil {
40      public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
41          com.liferay.portlet.journal.model.JournalFeed journalFeed)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addJournalFeed(journalFeed);
44      }
45  
46      public static com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
47          long id) {
48          return getService().createJournalFeed(id);
49      }
50  
51      public static void deleteJournalFeed(long id)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteJournalFeed(id);
55      }
56  
57      public static void deleteJournalFeed(
58          com.liferay.portlet.journal.model.JournalFeed journalFeed)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteJournalFeed(journalFeed);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
91          long id)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return getService().getJournalFeed(id);
95      }
96  
97      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
98          int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return getService().getJournalFeeds(start, end);
101     }
102 
103     public static int getJournalFeedsCount()
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getService().getJournalFeedsCount();
106     }
107 
108     public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
109         com.liferay.portlet.journal.model.JournalFeed journalFeed)
110         throws com.liferay.portal.kernel.exception.SystemException {
111         return getService().updateJournalFeed(journalFeed);
112     }
113 
114     public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
115         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getService().updateJournalFeed(journalFeed, merge);
118     }
119 
120     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
121         long userId, long groupId, java.lang.String feedId, boolean autoFeedId,
122         java.lang.String name, java.lang.String description,
123         java.lang.String type, java.lang.String structureId,
124         java.lang.String templateId, java.lang.String rendererTemplateId,
125         int delta, java.lang.String orderByCol, java.lang.String orderByType,
126         java.lang.String targetLayoutFriendlyUrl,
127         java.lang.String targetPortletId, java.lang.String contentField,
128         java.lang.String feedType, double feedVersion,
129         com.liferay.portal.service.ServiceContext serviceContext)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.SystemException {
132         return getService()
133                    .addFeed(userId, groupId, feedId, autoFeedId, name,
134             description, type, structureId, templateId, rendererTemplateId,
135             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
136             targetPortletId, contentField, feedType, feedVersion, serviceContext);
137     }
138 
139     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
140         java.lang.String uuid, long userId, long groupId,
141         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
142         java.lang.String description, java.lang.String type,
143         java.lang.String structureId, java.lang.String templateId,
144         java.lang.String rendererTemplateId, int delta,
145         java.lang.String orderByCol, java.lang.String orderByType,
146         java.lang.String targetLayoutFriendlyUrl,
147         java.lang.String targetPortletId, java.lang.String contentField,
148         java.lang.String feedType, double feedVersion,
149         com.liferay.portal.service.ServiceContext serviceContext)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException {
152         return getService()
153                    .addFeed(uuid, userId, groupId, feedId, autoFeedId, name,
154             description, type, structureId, templateId, rendererTemplateId,
155             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
156             targetPortletId, contentField, feedType, feedVersion, serviceContext);
157     }
158 
159     public static void addFeedResources(long feedId,
160         boolean addCommunityPermissions, boolean addGuestPermissions)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException {
163         getService()
164             .addFeedResources(feedId, addCommunityPermissions,
165             addGuestPermissions);
166     }
167 
168     public static void addFeedResources(
169         com.liferay.portlet.journal.model.JournalFeed feed,
170         boolean addCommunityPermissions, boolean addGuestPermissions)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException {
173         getService()
174             .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
175     }
176 
177     public static void addFeedResources(long feedId,
178         java.lang.String[] communityPermissions,
179         java.lang.String[] guestPermissions)
180         throws com.liferay.portal.kernel.exception.PortalException,
181             com.liferay.portal.kernel.exception.SystemException {
182         getService()
183             .addFeedResources(feedId, communityPermissions, guestPermissions);
184     }
185 
186     public static void addFeedResources(
187         com.liferay.portlet.journal.model.JournalFeed feed,
188         java.lang.String[] communityPermissions,
189         java.lang.String[] guestPermissions)
190         throws com.liferay.portal.kernel.exception.PortalException,
191             com.liferay.portal.kernel.exception.SystemException {
192         getService()
193             .addFeedResources(feed, communityPermissions, guestPermissions);
194     }
195 
196     public static void deleteFeed(long feedId)
197         throws com.liferay.portal.kernel.exception.PortalException,
198             com.liferay.portal.kernel.exception.SystemException {
199         getService().deleteFeed(feedId);
200     }
201 
202     public static void deleteFeed(long groupId, java.lang.String feedId)
203         throws com.liferay.portal.kernel.exception.PortalException,
204             com.liferay.portal.kernel.exception.SystemException {
205         getService().deleteFeed(groupId, feedId);
206     }
207 
208     public static void deleteFeed(
209         com.liferay.portlet.journal.model.JournalFeed feed)
210         throws com.liferay.portal.kernel.exception.PortalException,
211             com.liferay.portal.kernel.exception.SystemException {
212         getService().deleteFeed(feed);
213     }
214 
215     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
216         long feedId)
217         throws com.liferay.portal.kernel.exception.PortalException,
218             com.liferay.portal.kernel.exception.SystemException {
219         return getService().getFeed(feedId);
220     }
221 
222     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
223         long groupId, java.lang.String feedId)
224         throws com.liferay.portal.kernel.exception.PortalException,
225             com.liferay.portal.kernel.exception.SystemException {
226         return getService().getFeed(groupId, feedId);
227     }
228 
229     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getService().getFeeds();
232     }
233 
234     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
235         long groupId)
236         throws com.liferay.portal.kernel.exception.SystemException {
237         return getService().getFeeds(groupId);
238     }
239 
240     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
241         long groupId, int start, int end)
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getService().getFeeds(groupId, start, end);
244     }
245 
246     public static int getFeedsCount(long groupId)
247         throws com.liferay.portal.kernel.exception.SystemException {
248         return getService().getFeedsCount(groupId);
249     }
250 
251     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
252         long companyId, long groupId, java.lang.String keywords, int start,
253         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.kernel.exception.SystemException {
255         return getService().search(companyId, groupId, keywords, start, end, obc);
256     }
257 
258     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
259         long companyId, long groupId, java.lang.String feedId,
260         java.lang.String name, java.lang.String description,
261         boolean andOperator, int start, int end,
262         com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.kernel.exception.SystemException {
264         return getService()
265                    .search(companyId, groupId, feedId, name, description,
266             andOperator, start, end, obc);
267     }
268 
269     public static int searchCount(long companyId, long groupId,
270         java.lang.String keywords)
271         throws com.liferay.portal.kernel.exception.SystemException {
272         return getService().searchCount(companyId, groupId, keywords);
273     }
274 
275     public static int searchCount(long companyId, long groupId,
276         java.lang.String feedId, java.lang.String name,
277         java.lang.String description, boolean andOperator)
278         throws com.liferay.portal.kernel.exception.SystemException {
279         return getService()
280                    .searchCount(companyId, groupId, feedId, name, description,
281             andOperator);
282     }
283 
284     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
285         long groupId, java.lang.String feedId, java.lang.String name,
286         java.lang.String description, java.lang.String type,
287         java.lang.String structureId, java.lang.String templateId,
288         java.lang.String rendererTemplateId, int delta,
289         java.lang.String orderByCol, java.lang.String orderByType,
290         java.lang.String targetLayoutFriendlyUrl,
291         java.lang.String targetPortletId, java.lang.String contentField,
292         java.lang.String feedType, double feedVersion,
293         com.liferay.portal.service.ServiceContext serviceContext)
294         throws com.liferay.portal.kernel.exception.PortalException,
295             com.liferay.portal.kernel.exception.SystemException {
296         return getService()
297                    .updateFeed(groupId, feedId, name, description, type,
298             structureId, templateId, rendererTemplateId, delta, orderByCol,
299             orderByType, targetLayoutFriendlyUrl, targetPortletId,
300             contentField, feedType, feedVersion, serviceContext);
301     }
302 
303     public static JournalFeedLocalService getService() {
304         if (_service == null) {
305             _service = (JournalFeedLocalService)PortalBeanLocatorUtil.locate(JournalFeedLocalService.class.getName());
306         }
307 
308         return _service;
309     }
310 
311     public void setService(JournalFeedLocalService service) {
312         _service = service;
313     }
314 
315     private static JournalFeedLocalService _service;
316 }