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="JournalFeedLocalServiceUtil.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.JournalFeedLocalService</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.JournalFeedLocalService
45   *
46   */
47  public class JournalFeedLocalServiceUtil {
48      public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
49          com.liferay.portlet.journal.model.JournalFeed journalFeed)
50          throws com.liferay.portal.SystemException {
51          return _service.addJournalFeed(journalFeed);
52      }
53  
54      public static void deleteJournalFeed(long id)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteJournalFeed(id);
58      }
59  
60      public static void deleteJournalFeed(
61          com.liferay.portlet.journal.model.JournalFeed journalFeed)
62          throws com.liferay.portal.SystemException {
63          _service.deleteJournalFeed(journalFeed);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
79          long id)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getJournalFeed(id);
83      }
84  
85      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getJournalFeeds(start, end);
88      }
89  
90      public static int getJournalFeedsCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getJournalFeedsCount();
93      }
94  
95      public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
96          com.liferay.portlet.journal.model.JournalFeed journalFeed)
97          throws com.liferay.portal.SystemException {
98          return _service.updateJournalFeed(journalFeed);
99      }
100 
101     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
102         long userId, long plid, java.lang.String feedId, boolean autoFeedId,
103         java.lang.String name, java.lang.String description,
104         java.lang.String type, java.lang.String structureId,
105         java.lang.String templateId, java.lang.String rendererTemplateId,
106         int delta, java.lang.String orderByCol, java.lang.String orderByType,
107         java.lang.String targetLayoutFriendlyUrl,
108         java.lang.String targetPortletId, java.lang.String contentField,
109         java.lang.String feedType, double feedVersion,
110         boolean addCommunityPermissions, boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return _service.addFeed(userId, plid, feedId, autoFeedId, name,
114             description, type, structureId, templateId, rendererTemplateId,
115             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
116             targetPortletId, contentField, feedType, feedVersion,
117             addCommunityPermissions, addGuestPermissions);
118     }
119 
120     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
121         long userId, long plid, 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         java.lang.String[] communityPermissions,
130         java.lang.String[] guestPermissions)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return _service.addFeed(userId, plid, feedId, autoFeedId, name,
134             description, type, structureId, templateId, rendererTemplateId,
135             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
136             targetPortletId, contentField, feedType, feedVersion,
137             communityPermissions, guestPermissions);
138     }
139 
140     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
141         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
142         boolean autoFeedId, java.lang.String name,
143         java.lang.String description, java.lang.String type,
144         java.lang.String structureId, java.lang.String templateId,
145         java.lang.String rendererTemplateId, int delta,
146         java.lang.String orderByCol, java.lang.String orderByType,
147         java.lang.String targetLayoutFriendlyUrl,
148         java.lang.String targetPortletId, java.lang.String contentField,
149         java.lang.String feedType, double feedVersion,
150         boolean addCommunityPermissions, boolean addGuestPermissions)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         return _service.addFeed(uuid, userId, plid, feedId, autoFeedId, name,
154             description, type, structureId, templateId, rendererTemplateId,
155             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
156             targetPortletId, contentField, feedType, feedVersion,
157             addCommunityPermissions, addGuestPermissions);
158     }
159 
160     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
161         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
162         boolean autoFeedId, java.lang.String name,
163         java.lang.String description, java.lang.String type,
164         java.lang.String structureId, java.lang.String templateId,
165         java.lang.String rendererTemplateId, int delta,
166         java.lang.String orderByCol, java.lang.String orderByType,
167         java.lang.String targetLayoutFriendlyUrl,
168         java.lang.String targetPortletId, java.lang.String contentField,
169         java.lang.String feedType, double feedVersion,
170         java.lang.String[] communityPermissions,
171         java.lang.String[] guestPermissions)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException {
174         return _service.addFeed(uuid, userId, plid, feedId, autoFeedId, name,
175             description, type, structureId, templateId, rendererTemplateId,
176             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
177             targetPortletId, contentField, feedType, feedVersion,
178             communityPermissions, guestPermissions);
179     }
180 
181     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
182         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
183         boolean autoFeedId, java.lang.String name,
184         java.lang.String description, java.lang.String type,
185         java.lang.String structureId, java.lang.String templateId,
186         java.lang.String rendererTemplateId, int delta,
187         java.lang.String orderByCol, java.lang.String orderByType,
188         java.lang.String targetLayoutFriendlyUrl,
189         java.lang.String targetPortletId, java.lang.String contentField,
190         java.lang.String feedType, double feedVersion,
191         java.lang.Boolean addCommunityPermissions,
192         java.lang.Boolean addGuestPermissions,
193         java.lang.String[] communityPermissions,
194         java.lang.String[] guestPermissions)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException {
197         return _service.addFeed(uuid, userId, plid, feedId, autoFeedId, name,
198             description, type, structureId, templateId, rendererTemplateId,
199             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
200             targetPortletId, contentField, feedType, feedVersion,
201             addCommunityPermissions, addGuestPermissions, communityPermissions,
202             guestPermissions);
203     }
204 
205     public static com.liferay.portlet.journal.model.JournalFeed addFeedToGroup(
206         java.lang.String uuid, long userId, long groupId,
207         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
208         java.lang.String description, java.lang.String type,
209         java.lang.String structureId, java.lang.String templateId,
210         java.lang.String rendererTemplateId, int delta,
211         java.lang.String orderByCol, java.lang.String orderByType,
212         java.lang.String targetLayoutFriendlyUrl,
213         java.lang.String targetPortletId, java.lang.String contentField,
214         java.lang.String feedType, double feedVersion,
215         java.lang.Boolean addCommunityPermissions,
216         java.lang.Boolean addGuestPermissions,
217         java.lang.String[] communityPermissions,
218         java.lang.String[] guestPermissions)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException {
221         return _service.addFeedToGroup(uuid, userId, groupId, feedId,
222             autoFeedId, name, description, type, structureId, templateId,
223             rendererTemplateId, delta, orderByCol, orderByType,
224             targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
225             feedVersion, addCommunityPermissions, addGuestPermissions,
226             communityPermissions, guestPermissions);
227     }
228 
229     public static void addFeedResources(long feedId,
230         boolean addCommunityPermissions, boolean addGuestPermissions)
231         throws com.liferay.portal.PortalException,
232             com.liferay.portal.SystemException {
233         _service.addFeedResources(feedId, addCommunityPermissions,
234             addGuestPermissions);
235     }
236 
237     public static void addFeedResources(
238         com.liferay.portlet.journal.model.JournalFeed feed,
239         boolean addCommunityPermissions, boolean addGuestPermissions)
240         throws com.liferay.portal.PortalException,
241             com.liferay.portal.SystemException {
242         _service.addFeedResources(feed, addCommunityPermissions,
243             addGuestPermissions);
244     }
245 
246     public static void addFeedResources(long feedId,
247         java.lang.String[] communityPermissions,
248         java.lang.String[] guestPermissions)
249         throws com.liferay.portal.PortalException,
250             com.liferay.portal.SystemException {
251         _service.addFeedResources(feedId, communityPermissions, guestPermissions);
252     }
253 
254     public static void addFeedResources(
255         com.liferay.portlet.journal.model.JournalFeed feed,
256         java.lang.String[] communityPermissions,
257         java.lang.String[] guestPermissions)
258         throws com.liferay.portal.PortalException,
259             com.liferay.portal.SystemException {
260         _service.addFeedResources(feed, communityPermissions, guestPermissions);
261     }
262 
263     public static void deleteFeed(long feedId)
264         throws com.liferay.portal.PortalException,
265             com.liferay.portal.SystemException {
266         _service.deleteFeed(feedId);
267     }
268 
269     public static void deleteFeed(long groupId, java.lang.String feedId)
270         throws com.liferay.portal.PortalException,
271             com.liferay.portal.SystemException {
272         _service.deleteFeed(groupId, feedId);
273     }
274 
275     public static void deleteFeed(
276         com.liferay.portlet.journal.model.JournalFeed feed)
277         throws com.liferay.portal.PortalException,
278             com.liferay.portal.SystemException {
279         _service.deleteFeed(feed);
280     }
281 
282     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
283         long feedId)
284         throws com.liferay.portal.PortalException,
285             com.liferay.portal.SystemException {
286         return _service.getFeed(feedId);
287     }
288 
289     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
290         long groupId, java.lang.String feedId)
291         throws com.liferay.portal.PortalException,
292             com.liferay.portal.SystemException {
293         return _service.getFeed(groupId, feedId);
294     }
295 
296     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
297         throws com.liferay.portal.SystemException {
298         return _service.getFeeds();
299     }
300 
301     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
302         long groupId) throws com.liferay.portal.SystemException {
303         return _service.getFeeds(groupId);
304     }
305 
306     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
307         long groupId, int start, int end)
308         throws com.liferay.portal.SystemException {
309         return _service.getFeeds(groupId, start, end);
310     }
311 
312     public static int getFeedsCount(long groupId)
313         throws com.liferay.portal.SystemException {
314         return _service.getFeedsCount(groupId);
315     }
316 
317     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
318         long companyId, long groupId, java.lang.String keywords, int start,
319         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
320         throws com.liferay.portal.SystemException {
321         return _service.search(companyId, groupId, keywords, start, end, obc);
322     }
323 
324     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
325         long companyId, long groupId, java.lang.String feedId,
326         java.lang.String name, java.lang.String description,
327         boolean andOperator, int start, int end,
328         com.liferay.portal.kernel.util.OrderByComparator obc)
329         throws com.liferay.portal.SystemException {
330         return _service.search(companyId, groupId, feedId, name, description,
331             andOperator, start, end, obc);
332     }
333 
334     public static int searchCount(long companyId, long groupId,
335         java.lang.String keywords) throws com.liferay.portal.SystemException {
336         return _service.searchCount(companyId, groupId, keywords);
337     }
338 
339     public static int searchCount(long companyId, long groupId,
340         java.lang.String feedId, java.lang.String name,
341         java.lang.String description, boolean andOperator)
342         throws com.liferay.portal.SystemException {
343         return _service.searchCount(companyId, groupId, feedId, name,
344             description, andOperator);
345     }
346 
347     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
348         long groupId, java.lang.String feedId, java.lang.String name,
349         java.lang.String description, java.lang.String type,
350         java.lang.String structureId, java.lang.String templateId,
351         java.lang.String rendererTemplateId, int delta,
352         java.lang.String orderByCol, java.lang.String orderByType,
353         java.lang.String targetLayoutFriendlyUrl,
354         java.lang.String targetPortletId, java.lang.String contentField,
355         java.lang.String feedType, double feedVersion)
356         throws com.liferay.portal.PortalException,
357             com.liferay.portal.SystemException {
358         return _service.updateFeed(groupId, feedId, name, description, type,
359             structureId, templateId, rendererTemplateId, delta, orderByCol,
360             orderByType, targetLayoutFriendlyUrl, targetPortletId,
361             contentField, feedType, feedVersion);
362     }
363 
364     public static JournalFeedLocalService getService() {
365         return _service;
366     }
367 
368     public void setService(JournalFeedLocalService service) {
369         _service = service;
370     }
371 
372     private static JournalFeedLocalService _service;
373 }