001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link JournalFeedLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       JournalFeedLocalService
030     * @generated
031     */
032    public class JournalFeedLocalServiceUtil {
033            public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
034                    com.liferay.portlet.journal.model.JournalFeed journalFeed)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addJournalFeed(journalFeed);
037            }
038    
039            public static com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
040                    long id) {
041                    return getService().createJournalFeed(id);
042            }
043    
044            public static void deleteJournalFeed(long id)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteJournalFeed(id);
048            }
049    
050            public static void deleteJournalFeed(
051                    com.liferay.portlet.journal.model.JournalFeed journalFeed)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteJournalFeed(journalFeed);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
087                    long id)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getJournalFeed(id);
091            }
092    
093            public static com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getJournalFeedByUuidAndGroupId(uuid, groupId);
098            }
099    
100            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
101                    int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getJournalFeeds(start, end);
104            }
105    
106            public static int getJournalFeedsCount()
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getJournalFeedsCount();
109            }
110    
111            public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
112                    com.liferay.portlet.journal.model.JournalFeed journalFeed)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().updateJournalFeed(journalFeed);
115            }
116    
117            public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
118                    com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
119                    throws com.liferay.portal.kernel.exception.SystemException {
120                    return getService().updateJournalFeed(journalFeed, merge);
121            }
122    
123            public static com.liferay.portlet.journal.model.JournalFeed addFeed(
124                    long userId, long groupId, java.lang.String feedId, boolean autoFeedId,
125                    java.lang.String name, java.lang.String description,
126                    java.lang.String type, java.lang.String structureId,
127                    java.lang.String templateId, java.lang.String rendererTemplateId,
128                    int delta, java.lang.String orderByCol, java.lang.String orderByType,
129                    java.lang.String targetLayoutFriendlyUrl,
130                    java.lang.String targetPortletId, java.lang.String contentField,
131                    java.lang.String feedType, double feedVersion,
132                    com.liferay.portal.service.ServiceContext serviceContext)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    return getService()
136                                       .addFeed(userId, groupId, feedId, autoFeedId, name,
137                            description, type, structureId, templateId, rendererTemplateId,
138                            delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
139                            targetPortletId, contentField, feedType, feedVersion, serviceContext);
140            }
141    
142            public static void addFeedResources(long feedId,
143                    boolean addCommunityPermissions, boolean addGuestPermissions)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException {
146                    getService()
147                            .addFeedResources(feedId, addCommunityPermissions,
148                            addGuestPermissions);
149            }
150    
151            public static void addFeedResources(
152                    com.liferay.portlet.journal.model.JournalFeed feed,
153                    boolean addCommunityPermissions, boolean addGuestPermissions)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException {
156                    getService()
157                            .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
158            }
159    
160            public static void addFeedResources(long feedId,
161                    java.lang.String[] communityPermissions,
162                    java.lang.String[] guestPermissions)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    getService()
166                            .addFeedResources(feedId, communityPermissions, guestPermissions);
167            }
168    
169            public static void addFeedResources(
170                    com.liferay.portlet.journal.model.JournalFeed feed,
171                    java.lang.String[] communityPermissions,
172                    java.lang.String[] guestPermissions)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    getService()
176                            .addFeedResources(feed, communityPermissions, guestPermissions);
177            }
178    
179            public static void deleteFeed(long feedId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    getService().deleteFeed(feedId);
183            }
184    
185            public static void deleteFeed(long groupId, java.lang.String feedId)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    getService().deleteFeed(groupId, feedId);
189            }
190    
191            public static void deleteFeed(
192                    com.liferay.portlet.journal.model.JournalFeed feed)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    getService().deleteFeed(feed);
196            }
197    
198            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
199                    long feedId)
200                    throws com.liferay.portal.kernel.exception.PortalException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    return getService().getFeed(feedId);
203            }
204    
205            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
206                    long groupId, java.lang.String feedId)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    return getService().getFeed(groupId, feedId);
210            }
211    
212            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return getService().getFeeds();
215            }
216    
217            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
218                    long groupId)
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    return getService().getFeeds(groupId);
221            }
222    
223            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
224                    long groupId, int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getService().getFeeds(groupId, start, end);
227            }
228    
229            public static int getFeedsCount(long groupId)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getService().getFeedsCount(groupId);
232            }
233    
234            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
235                    long companyId, long groupId, java.lang.String keywords, int start,
236                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return getService().search(companyId, groupId, keywords, start, end, obc);
239            }
240    
241            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
242                    long companyId, long groupId, java.lang.String feedId,
243                    java.lang.String name, java.lang.String description,
244                    boolean andOperator, int start, int end,
245                    com.liferay.portal.kernel.util.OrderByComparator obc)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return getService()
248                                       .search(companyId, groupId, feedId, name, description,
249                            andOperator, start, end, obc);
250            }
251    
252            public static int searchCount(long companyId, long groupId,
253                    java.lang.String keywords)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return getService().searchCount(companyId, groupId, keywords);
256            }
257    
258            public static int searchCount(long companyId, long groupId,
259                    java.lang.String feedId, java.lang.String name,
260                    java.lang.String description, boolean andOperator)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return getService()
263                                       .searchCount(companyId, groupId, feedId, name, description,
264                            andOperator);
265            }
266    
267            public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
268                    long groupId, java.lang.String feedId, java.lang.String name,
269                    java.lang.String description, java.lang.String type,
270                    java.lang.String structureId, java.lang.String templateId,
271                    java.lang.String rendererTemplateId, int delta,
272                    java.lang.String orderByCol, java.lang.String orderByType,
273                    java.lang.String targetLayoutFriendlyUrl,
274                    java.lang.String targetPortletId, java.lang.String contentField,
275                    java.lang.String feedType, double feedVersion,
276                    com.liferay.portal.service.ServiceContext serviceContext)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    return getService()
280                                       .updateFeed(groupId, feedId, name, description, type,
281                            structureId, templateId, rendererTemplateId, delta, orderByCol,
282                            orderByType, targetLayoutFriendlyUrl, targetPortletId,
283                            contentField, feedType, feedVersion, serviceContext);
284            }
285    
286            public static JournalFeedLocalService getService() {
287                    if (_service == null) {
288                            _service = (JournalFeedLocalService)PortalBeanLocatorUtil.locate(JournalFeedLocalService.class.getName());
289                    }
290    
291                    return _service;
292            }
293    
294            public void setService(JournalFeedLocalService service) {
295                    _service = service;
296            }
297    
298            private static JournalFeedLocalService _service;
299    }