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      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
94          long id)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getJournalFeed(id);
98      }
99  
100     public static com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return getService().getJournalFeedByUuidAndGroupId(uuid, groupId);
105     }
106 
107     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return getService().getJournalFeeds(start, end);
111     }
112 
113     public static int getJournalFeedsCount()
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getService().getJournalFeedsCount();
116     }
117 
118     public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
119         com.liferay.portlet.journal.model.JournalFeed journalFeed)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService().updateJournalFeed(journalFeed);
122     }
123 
124     public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
125         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
126         throws com.liferay.portal.kernel.exception.SystemException {
127         return getService().updateJournalFeed(journalFeed, merge);
128     }
129 
130     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
131         long userId, long groupId, java.lang.String feedId, boolean autoFeedId,
132         java.lang.String name, java.lang.String description,
133         java.lang.String type, java.lang.String structureId,
134         java.lang.String templateId, java.lang.String rendererTemplateId,
135         int delta, java.lang.String orderByCol, java.lang.String orderByType,
136         java.lang.String targetLayoutFriendlyUrl,
137         java.lang.String targetPortletId, java.lang.String contentField,
138         java.lang.String feedType, double feedVersion,
139         com.liferay.portal.service.ServiceContext serviceContext)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException {
142         return getService()
143                    .addFeed(userId, groupId, feedId, autoFeedId, name,
144             description, type, structureId, templateId, rendererTemplateId,
145             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
146             targetPortletId, contentField, feedType, feedVersion, serviceContext);
147     }
148 
149     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
150         java.lang.String uuid, long userId, long groupId,
151         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
152         java.lang.String description, java.lang.String type,
153         java.lang.String structureId, java.lang.String templateId,
154         java.lang.String rendererTemplateId, int delta,
155         java.lang.String orderByCol, java.lang.String orderByType,
156         java.lang.String targetLayoutFriendlyUrl,
157         java.lang.String targetPortletId, java.lang.String contentField,
158         java.lang.String feedType, double feedVersion,
159         com.liferay.portal.service.ServiceContext serviceContext)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException {
162         return getService()
163                    .addFeed(uuid, userId, groupId, feedId, autoFeedId, name,
164             description, type, structureId, templateId, rendererTemplateId,
165             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
166             targetPortletId, contentField, feedType, feedVersion, serviceContext);
167     }
168 
169     public static void addFeedResources(long feedId,
170         boolean addCommunityPermissions, boolean addGuestPermissions)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException {
173         getService()
174             .addFeedResources(feedId, addCommunityPermissions,
175             addGuestPermissions);
176     }
177 
178     public static void addFeedResources(
179         com.liferay.portlet.journal.model.JournalFeed feed,
180         boolean addCommunityPermissions, boolean addGuestPermissions)
181         throws com.liferay.portal.kernel.exception.PortalException,
182             com.liferay.portal.kernel.exception.SystemException {
183         getService()
184             .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
185     }
186 
187     public static void addFeedResources(long feedId,
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(feedId, communityPermissions, guestPermissions);
194     }
195 
196     public static void addFeedResources(
197         com.liferay.portlet.journal.model.JournalFeed feed,
198         java.lang.String[] communityPermissions,
199         java.lang.String[] guestPermissions)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException {
202         getService()
203             .addFeedResources(feed, communityPermissions, guestPermissions);
204     }
205 
206     public static void deleteFeed(long feedId)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException {
209         getService().deleteFeed(feedId);
210     }
211 
212     public static void deleteFeed(long groupId, java.lang.String feedId)
213         throws com.liferay.portal.kernel.exception.PortalException,
214             com.liferay.portal.kernel.exception.SystemException {
215         getService().deleteFeed(groupId, feedId);
216     }
217 
218     public static void deleteFeed(
219         com.liferay.portlet.journal.model.JournalFeed feed)
220         throws com.liferay.portal.kernel.exception.PortalException,
221             com.liferay.portal.kernel.exception.SystemException {
222         getService().deleteFeed(feed);
223     }
224 
225     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
226         long feedId)
227         throws com.liferay.portal.kernel.exception.PortalException,
228             com.liferay.portal.kernel.exception.SystemException {
229         return getService().getFeed(feedId);
230     }
231 
232     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
233         long groupId, java.lang.String feedId)
234         throws com.liferay.portal.kernel.exception.PortalException,
235             com.liferay.portal.kernel.exception.SystemException {
236         return getService().getFeed(groupId, feedId);
237     }
238 
239     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
240         throws com.liferay.portal.kernel.exception.SystemException {
241         return getService().getFeeds();
242     }
243 
244     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
245         long groupId)
246         throws com.liferay.portal.kernel.exception.SystemException {
247         return getService().getFeeds(groupId);
248     }
249 
250     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
251         long groupId, int start, int end)
252         throws com.liferay.portal.kernel.exception.SystemException {
253         return getService().getFeeds(groupId, start, end);
254     }
255 
256     public static int getFeedsCount(long groupId)
257         throws com.liferay.portal.kernel.exception.SystemException {
258         return getService().getFeedsCount(groupId);
259     }
260 
261     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
262         long companyId, long groupId, java.lang.String keywords, int start,
263         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.kernel.exception.SystemException {
265         return getService().search(companyId, groupId, keywords, start, end, obc);
266     }
267 
268     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
269         long companyId, long groupId, java.lang.String feedId,
270         java.lang.String name, java.lang.String description,
271         boolean andOperator, int start, int end,
272         com.liferay.portal.kernel.util.OrderByComparator obc)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         return getService()
275                    .search(companyId, groupId, feedId, name, description,
276             andOperator, start, end, obc);
277     }
278 
279     public static int searchCount(long companyId, long groupId,
280         java.lang.String keywords)
281         throws com.liferay.portal.kernel.exception.SystemException {
282         return getService().searchCount(companyId, groupId, keywords);
283     }
284 
285     public static int searchCount(long companyId, long groupId,
286         java.lang.String feedId, java.lang.String name,
287         java.lang.String description, boolean andOperator)
288         throws com.liferay.portal.kernel.exception.SystemException {
289         return getService()
290                    .searchCount(companyId, groupId, feedId, name, description,
291             andOperator);
292     }
293 
294     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
295         long groupId, java.lang.String feedId, java.lang.String name,
296         java.lang.String description, java.lang.String type,
297         java.lang.String structureId, java.lang.String templateId,
298         java.lang.String rendererTemplateId, int delta,
299         java.lang.String orderByCol, java.lang.String orderByType,
300         java.lang.String targetLayoutFriendlyUrl,
301         java.lang.String targetPortletId, java.lang.String contentField,
302         java.lang.String feedType, double feedVersion,
303         com.liferay.portal.service.ServiceContext serviceContext)
304         throws com.liferay.portal.kernel.exception.PortalException,
305             com.liferay.portal.kernel.exception.SystemException {
306         return getService()
307                    .updateFeed(groupId, feedId, name, description, type,
308             structureId, templateId, rendererTemplateId, delta, orderByCol,
309             orderByType, targetLayoutFriendlyUrl, targetPortletId,
310             contentField, feedType, feedVersion, serviceContext);
311     }
312 
313     public static JournalFeedLocalService getService() {
314         if (_service == null) {
315             _service = (JournalFeedLocalService)PortalBeanLocatorUtil.locate(JournalFeedLocalService.class.getName());
316         }
317 
318         return _service;
319     }
320 
321     public void setService(JournalFeedLocalService service) {
322         _service = service;
323     }
324 
325     private static JournalFeedLocalService _service;
326 }