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