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.blogs.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link BlogsEntryLocalService} 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       BlogsEntryLocalService
030     * @generated
031     */
032    public class BlogsEntryLocalServiceUtil {
033            public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
034                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addBlogsEntry(blogsEntry);
037            }
038    
039            public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
040                    long entryId) {
041                    return getService().createBlogsEntry(entryId);
042            }
043    
044            public static void deleteBlogsEntry(long entryId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteBlogsEntry(entryId);
048            }
049    
050            public static void deleteBlogsEntry(
051                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteBlogsEntry(blogsEntry);
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.blogs.model.BlogsEntry getBlogsEntry(
087                    long entryId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getBlogsEntry(entryId);
091            }
092    
093            public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
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().getBlogsEntryByUuidAndGroupId(uuid, groupId);
098            }
099    
100            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
101                    int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getBlogsEntries(start, end);
104            }
105    
106            public static int getBlogsEntriesCount()
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getBlogsEntriesCount();
109            }
110    
111            public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
112                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().updateBlogsEntry(blogsEntry);
115            }
116    
117            public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
118                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
119                    throws com.liferay.portal.kernel.exception.SystemException {
120                    return getService().updateBlogsEntry(blogsEntry, merge);
121            }
122    
123            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
124                    long userId, java.lang.String title, java.lang.String content,
125                    int displayDateMonth, int displayDateDay, int displayDateYear,
126                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
127                    boolean allowTrackbacks, java.lang.String[] trackbacks,
128                    com.liferay.portal.service.ServiceContext serviceContext)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException {
131                    return getService()
132                                       .addEntry(userId, title, content, displayDateMonth,
133                            displayDateDay, displayDateYear, displayDateHour,
134                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
135                            serviceContext);
136            }
137    
138            public static void addEntryResources(
139                    com.liferay.portlet.blogs.model.BlogsEntry entry,
140                    boolean addCommunityPermissions, boolean addGuestPermissions)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    getService()
144                            .addEntryResources(entry, addCommunityPermissions,
145                            addGuestPermissions);
146            }
147    
148            public static void addEntryResources(
149                    com.liferay.portlet.blogs.model.BlogsEntry entry,
150                    java.lang.String[] communityPermissions,
151                    java.lang.String[] guestPermissions)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException {
154                    getService()
155                            .addEntryResources(entry, communityPermissions, guestPermissions);
156            }
157    
158            public static void addEntryResources(long entryId,
159                    boolean addCommunityPermissions, boolean addGuestPermissions)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    getService()
163                            .addEntryResources(entryId, addCommunityPermissions,
164                            addGuestPermissions);
165            }
166    
167            public static void addEntryResources(long entryId,
168                    java.lang.String[] communityPermissions,
169                    java.lang.String[] guestPermissions)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    getService()
173                            .addEntryResources(entryId, communityPermissions, guestPermissions);
174            }
175    
176            public static void deleteEntries(long groupId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    getService().deleteEntries(groupId);
180            }
181    
182            public static void deleteEntry(
183                    com.liferay.portlet.blogs.model.BlogsEntry entry)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    getService().deleteEntry(entry);
187            }
188    
189            public static void deleteEntry(long entryId)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    getService().deleteEntry(entryId);
193            }
194    
195            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
196                    long companyId, int status, int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getService().getCompanyEntries(companyId, status, start, end);
199            }
200    
201            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
202                    long companyId, int status, int start, int end,
203                    com.liferay.portal.kernel.util.OrderByComparator obc)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getService().getCompanyEntries(companyId, status, start, end, obc);
206            }
207    
208            public static int getCompanyEntriesCount(long companyId, int status)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return getService().getCompanyEntriesCount(companyId, status);
211            }
212    
213            public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
214                    long entryId)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    return getService().getEntriesPrevAndNext(entryId);
218            }
219    
220            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
221                    long entryId)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException {
224                    return getService().getEntry(entryId);
225            }
226    
227            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
228                    long groupId, java.lang.String urlTitle)
229                    throws com.liferay.portal.kernel.exception.PortalException,
230                            com.liferay.portal.kernel.exception.SystemException {
231                    return getService().getEntry(groupId, urlTitle);
232            }
233    
234            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
235                    long groupId, int status, int start, int end)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getGroupEntries(groupId, status, start, end);
238            }
239    
240            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
241                    long groupId, int status, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator obc)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getService().getGroupEntries(groupId, status, start, end, obc);
245            }
246    
247            public static int getGroupEntriesCount(long groupId, int status)
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return getService().getGroupEntriesCount(groupId, status);
250            }
251    
252            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
253                    long companyId, long groupId, int status, int start, int end)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return getService()
256                                       .getGroupsEntries(companyId, groupId, status, start, end);
257            }
258    
259            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
260                    long groupId, long userId, int status, int start, int end)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return getService()
263                                       .getGroupUserEntries(groupId, userId, status, start, end);
264            }
265    
266            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
267                    long groupId, long userId, int status, int start, int end,
268                    com.liferay.portal.kernel.util.OrderByComparator obc)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return getService()
271                                       .getGroupUserEntries(groupId, userId, status, start, end, obc);
272            }
273    
274            public static int getGroupUserEntriesCount(long groupId, long userId,
275                    int status) throws com.liferay.portal.kernel.exception.SystemException {
276                    return getService().getGroupUserEntriesCount(groupId, userId, status);
277            }
278    
279            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
280                    throws com.liferay.portal.kernel.exception.SystemException {
281                    return getService().getNoAssetEntries();
282            }
283    
284            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
285                    long organizationId, int status, int start, int end)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    return getService()
288                                       .getOrganizationEntries(organizationId, status, start, end);
289            }
290    
291            public static int getOrganizationEntriesCount(long organizationId,
292                    int status) throws com.liferay.portal.kernel.exception.SystemException {
293                    return getService().getOrganizationEntriesCount(organizationId, status);
294            }
295    
296            public static void updateAsset(long userId,
297                    com.liferay.portlet.blogs.model.BlogsEntry entry,
298                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    getService().updateAsset(userId, entry, assetCategoryIds, assetTagNames);
302            }
303    
304            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
305                    long userId, long entryId, java.lang.String title,
306                    java.lang.String content, int displayDateMonth, int displayDateDay,
307                    int displayDateYear, int displayDateHour, int displayDateMinute,
308                    boolean allowPingbacks, boolean allowTrackbacks,
309                    java.lang.String[] trackbacks,
310                    com.liferay.portal.service.ServiceContext serviceContext)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    return getService()
314                                       .updateEntry(userId, entryId, title, content,
315                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
316                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
317                            serviceContext);
318            }
319    
320            public static void updateEntryResources(
321                    com.liferay.portlet.blogs.model.BlogsEntry entry,
322                    java.lang.String[] communityPermissions,
323                    java.lang.String[] guestPermissions)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    getService()
327                            .updateEntryResources(entry, communityPermissions, guestPermissions);
328            }
329    
330            public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
331                    long userId, long entryId, int status,
332                    com.liferay.portal.service.ServiceContext serviceContext)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return getService().updateStatus(userId, entryId, status, serviceContext);
336            }
337    
338            public static BlogsEntryLocalService getService() {
339                    if (_service == null) {
340                            _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
341                    }
342    
343                    return _service;
344            }
345    
346            public void setService(BlogsEntryLocalService service) {
347                    _service = service;
348            }
349    
350            private static BlogsEntryLocalService _service;
351    }