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