001    /**
002     * Copyright (c) 2000-2012 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    import com.liferay.portal.kernel.util.MethodCache;
019    import com.liferay.portal.kernel.util.ReferenceRegistry;
020    
021    /**
022     * The utility for the blogs entry local service. This utility wraps {@link com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
023     *
024     * <p>
025     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see BlogsEntryLocalService
030     * @see com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
031     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
032     * @generated
033     */
034    public class BlogsEntryLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the blogs entry to the database. Also notifies the appropriate model listeners.
043            *
044            * @param blogsEntry the blogs entry
045            * @return the blogs entry that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
049                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addBlogsEntry(blogsEntry);
052            }
053    
054            /**
055            * Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
056            *
057            * @param entryId the primary key for the new blogs entry
058            * @return the new blogs entry
059            */
060            public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
061                    long entryId) {
062                    return getService().createBlogsEntry(entryId);
063            }
064    
065            /**
066            * Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param entryId the primary key of the blogs entry
069            * @throws PortalException if a blogs entry with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public static void deleteBlogsEntry(long entryId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    getService().deleteBlogsEntry(entryId);
076            }
077    
078            /**
079            * Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
080            *
081            * @param blogsEntry the blogs entry
082            * @throws SystemException if a system exception occurred
083            */
084            public static void deleteBlogsEntry(
085                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    getService().deleteBlogsEntry(blogsEntry);
088            }
089    
090            /**
091            * Performs a dynamic query on the database and returns the matching rows.
092            *
093            * @param dynamicQuery the dynamic query
094            * @return the matching rows
095            * @throws SystemException if a system exception occurred
096            */
097            @SuppressWarnings("rawtypes")
098            public static java.util.List dynamicQuery(
099                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().dynamicQuery(dynamicQuery);
102            }
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @SuppressWarnings("rawtypes")
118            public static java.util.List dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120                    int end) throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().dynamicQuery(dynamicQuery, start, end);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
126            *
127            * <p>
128            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
135            * @return the ordered range of matching rows
136            * @throws SystemException if a system exception occurred
137            */
138            @SuppressWarnings("rawtypes")
139            public static java.util.List dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getService()
145                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146            }
147    
148            /**
149            * Returns the number of rows that match the dynamic query.
150            *
151            * @param dynamicQuery the dynamic query
152            * @return the number of rows that match the dynamic query
153            * @throws SystemException if a system exception occurred
154            */
155            public static long dynamicQueryCount(
156                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return getService().dynamicQueryCount(dynamicQuery);
159            }
160    
161            public static com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
162                    long entryId)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getService().fetchBlogsEntry(entryId);
165            }
166    
167            /**
168            * Returns the blogs entry with the primary key.
169            *
170            * @param entryId the primary key of the blogs entry
171            * @return the blogs entry
172            * @throws PortalException if a blogs entry with the primary key could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
176                    long entryId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return getService().getBlogsEntry(entryId);
180            }
181    
182            public static com.liferay.portal.model.PersistedModel getPersistedModel(
183                    java.io.Serializable primaryKeyObj)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    return getService().getPersistedModel(primaryKeyObj);
187            }
188    
189            /**
190            * Returns the blogs entry with the UUID in the group.
191            *
192            * @param uuid the UUID of blogs entry
193            * @param groupId the group id of the blogs entry
194            * @return the blogs entry
195            * @throws PortalException if a blogs entry with the UUID in the group could not be found
196            * @throws SystemException if a system exception occurred
197            */
198            public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
199                    java.lang.String uuid, long groupId)
200                    throws com.liferay.portal.kernel.exception.PortalException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    return getService().getBlogsEntryByUuidAndGroupId(uuid, groupId);
203            }
204    
205            /**
206            * Returns a range of all the blogs entries.
207            *
208            * <p>
209            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
210            * </p>
211            *
212            * @param start the lower bound of the range of blogs entries
213            * @param end the upper bound of the range of blogs entries (not inclusive)
214            * @return the range of blogs entries
215            * @throws SystemException if a system exception occurred
216            */
217            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
218                    int start, int end)
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    return getService().getBlogsEntries(start, end);
221            }
222    
223            /**
224            * Returns the number of blogs entries.
225            *
226            * @return the number of blogs entries
227            * @throws SystemException if a system exception occurred
228            */
229            public static int getBlogsEntriesCount()
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getService().getBlogsEntriesCount();
232            }
233    
234            /**
235            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
236            *
237            * @param blogsEntry the blogs entry
238            * @return the blogs entry that was updated
239            * @throws SystemException if a system exception occurred
240            */
241            public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
242                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getService().updateBlogsEntry(blogsEntry);
245            }
246    
247            /**
248            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
249            *
250            * @param blogsEntry the blogs entry
251            * @param merge whether to merge the blogs entry with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
252            * @return the blogs entry that was updated
253            * @throws SystemException if a system exception occurred
254            */
255            public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
256                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return getService().updateBlogsEntry(blogsEntry, merge);
259            }
260    
261            /**
262            * Returns the Spring bean ID for this bean.
263            *
264            * @return the Spring bean ID for this bean
265            */
266            public static java.lang.String getBeanIdentifier() {
267                    return getService().getBeanIdentifier();
268            }
269    
270            /**
271            * Sets the Spring bean ID for this bean.
272            *
273            * @param beanIdentifier the Spring bean ID for this bean
274            */
275            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
276                    getService().setBeanIdentifier(beanIdentifier);
277            }
278    
279            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
280                    long userId, java.lang.String title, java.lang.String description,
281                    java.lang.String content, int displayDateMonth, int displayDateDay,
282                    int displayDateYear, int displayDateHour, int displayDateMinute,
283                    boolean allowPingbacks, boolean allowTrackbacks,
284                    java.lang.String[] trackbacks, boolean smallImage,
285                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
286                    java.io.InputStream smallImageInputStream,
287                    com.liferay.portal.service.ServiceContext serviceContext)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    return getService()
291                                       .addEntry(userId, title, description, content,
292                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
293                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
294                            smallImage, smallImageURL, smallImageFileName,
295                            smallImageInputStream, serviceContext);
296            }
297    
298            public static void addEntryResources(
299                    com.liferay.portlet.blogs.model.BlogsEntry entry,
300                    boolean addGroupPermissions, boolean addGuestPermissions)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    getService()
304                            .addEntryResources(entry, addGroupPermissions, addGuestPermissions);
305            }
306    
307            public static void addEntryResources(
308                    com.liferay.portlet.blogs.model.BlogsEntry entry,
309                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    getService().addEntryResources(entry, groupPermissions, guestPermissions);
313            }
314    
315            public static void addEntryResources(long entryId,
316                    boolean addGroupPermissions, boolean addGuestPermissions)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    getService()
320                            .addEntryResources(entryId, addGroupPermissions, addGuestPermissions);
321            }
322    
323            public static void addEntryResources(long entryId,
324                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    getService()
328                            .addEntryResources(entryId, groupPermissions, guestPermissions);
329            }
330    
331            public static void deleteEntries(long groupId)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    getService().deleteEntries(groupId);
335            }
336    
337            public static void deleteEntry(
338                    com.liferay.portlet.blogs.model.BlogsEntry entry)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    getService().deleteEntry(entry);
342            }
343    
344            public static void deleteEntry(long entryId)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    getService().deleteEntry(entryId);
348            }
349    
350            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
351                    long companyId, java.util.Date displayDate, int status, int start,
352                    int end) throws com.liferay.portal.kernel.exception.SystemException {
353                    return getService()
354                                       .getCompanyEntries(companyId, displayDate, status, start, end);
355            }
356    
357            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
358                    long companyId, java.util.Date displayDate, int status, int start,
359                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getService()
362                                       .getCompanyEntries(companyId, displayDate, status, start,
363                            end, obc);
364            }
365    
366            public static int getCompanyEntriesCount(long companyId,
367                    java.util.Date displayDate, int status)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return getService()
370                                       .getCompanyEntriesCount(companyId, displayDate, status);
371            }
372    
373            public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
374                    long entryId)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return getService().getEntriesPrevAndNext(entryId);
378            }
379    
380            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
381                    long entryId)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException {
384                    return getService().getEntry(entryId);
385            }
386    
387            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
388                    long groupId, java.lang.String urlTitle)
389                    throws com.liferay.portal.kernel.exception.PortalException,
390                            com.liferay.portal.kernel.exception.SystemException {
391                    return getService().getEntry(groupId, urlTitle);
392            }
393    
394            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
395                    long groupId, java.util.Date displayDate, int status, int start, int end)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return getService()
398                                       .getGroupEntries(groupId, displayDate, status, start, end);
399            }
400    
401            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
402                    long groupId, java.util.Date displayDate, int status, int start,
403                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return getService()
406                                       .getGroupEntries(groupId, displayDate, status, start, end,
407                            obc);
408            }
409    
410            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
411                    long groupId, int status, int start, int end)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return getService().getGroupEntries(groupId, status, start, end);
414            }
415    
416            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
417                    long groupId, int status, int start, int end,
418                    com.liferay.portal.kernel.util.OrderByComparator obc)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return getService().getGroupEntries(groupId, status, start, end, obc);
421            }
422    
423            public static int getGroupEntriesCount(long groupId,
424                    java.util.Date displayDate, int status)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return getService().getGroupEntriesCount(groupId, displayDate, status);
427            }
428    
429            public static int getGroupEntriesCount(long groupId, int status)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return getService().getGroupEntriesCount(groupId, status);
432            }
433    
434            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
435                    long companyId, long groupId, java.util.Date displayDate, int status,
436                    int start, int end)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return getService()
439                                       .getGroupsEntries(companyId, groupId, displayDate, status,
440                            start, end);
441            }
442    
443            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
444                    long groupId, long userId, java.util.Date displayDate, int status,
445                    int start, int end)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return getService()
448                                       .getGroupUserEntries(groupId, userId, displayDate, status,
449                            start, end);
450            }
451    
452            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
453                    long groupId, long userId, java.util.Date displayDate, int status,
454                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return getService()
457                                       .getGroupUserEntries(groupId, userId, displayDate, status,
458                            start, end, obc);
459            }
460    
461            public static int getGroupUserEntriesCount(long groupId, long userId,
462                    java.util.Date displayDate, int status)
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    return getService()
465                                       .getGroupUserEntriesCount(groupId, userId, displayDate,
466                            status);
467            }
468    
469            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
470                    throws com.liferay.portal.kernel.exception.SystemException {
471                    return getService().getNoAssetEntries();
472            }
473    
474            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
475                    long organizationId, java.util.Date displayDate, int status, int start,
476                    int end) throws com.liferay.portal.kernel.exception.SystemException {
477                    return getService()
478                                       .getOrganizationEntries(organizationId, displayDate, status,
479                            start, end);
480            }
481    
482            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
483                    long organizationId, java.util.Date displayDate, int status, int start,
484                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
485                    throws com.liferay.portal.kernel.exception.SystemException {
486                    return getService()
487                                       .getOrganizationEntries(organizationId, displayDate, status,
488                            start, end, obc);
489            }
490    
491            public static int getOrganizationEntriesCount(long organizationId,
492                    java.util.Date displayDate, int status)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getService()
495                                       .getOrganizationEntriesCount(organizationId, displayDate,
496                            status);
497            }
498    
499            public static void subscribe(long userId, long groupId)
500                    throws com.liferay.portal.kernel.exception.PortalException,
501                            com.liferay.portal.kernel.exception.SystemException {
502                    getService().subscribe(userId, groupId);
503            }
504    
505            public static void unsubscribe(long userId, long groupId)
506                    throws com.liferay.portal.kernel.exception.PortalException,
507                            com.liferay.portal.kernel.exception.SystemException {
508                    getService().unsubscribe(userId, groupId);
509            }
510    
511            public static void updateAsset(long userId,
512                    com.liferay.portlet.blogs.model.BlogsEntry entry,
513                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
514                    long[] assetLinkEntryIds)
515                    throws com.liferay.portal.kernel.exception.PortalException,
516                            com.liferay.portal.kernel.exception.SystemException {
517                    getService()
518                            .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
519                            assetLinkEntryIds);
520            }
521    
522            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
523                    long userId, long entryId, java.lang.String title,
524                    java.lang.String description, java.lang.String content,
525                    int displayDateMonth, int displayDateDay, int displayDateYear,
526                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
527                    boolean allowTrackbacks, java.lang.String[] trackbacks,
528                    boolean smallImage, java.lang.String smallImageURL,
529                    java.lang.String smallImageFileName,
530                    java.io.InputStream smallImageInputStream,
531                    com.liferay.portal.service.ServiceContext serviceContext)
532                    throws com.liferay.portal.kernel.exception.PortalException,
533                            com.liferay.portal.kernel.exception.SystemException {
534                    return getService()
535                                       .updateEntry(userId, entryId, title, description, content,
536                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
537                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
538                            smallImage, smallImageURL, smallImageFileName,
539                            smallImageInputStream, serviceContext);
540            }
541    
542            public static void updateEntryResources(
543                    com.liferay.portlet.blogs.model.BlogsEntry entry,
544                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
545                    throws com.liferay.portal.kernel.exception.PortalException,
546                            com.liferay.portal.kernel.exception.SystemException {
547                    getService()
548                            .updateEntryResources(entry, groupPermissions, guestPermissions);
549            }
550    
551            public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
552                    long userId, long entryId, int status,
553                    com.liferay.portal.service.ServiceContext serviceContext)
554                    throws com.liferay.portal.kernel.exception.PortalException,
555                            com.liferay.portal.kernel.exception.SystemException {
556                    return getService().updateStatus(userId, entryId, status, serviceContext);
557            }
558    
559            public static BlogsEntryLocalService getService() {
560                    if (_service == null) {
561                            _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
562    
563                            ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
564                                    "_service");
565                            MethodCache.remove(BlogsEntryLocalService.class);
566                    }
567    
568                    return _service;
569            }
570    
571            public void setService(BlogsEntryLocalService service) {
572                    MethodCache.remove(BlogsEntryLocalService.class);
573    
574                    _service = service;
575    
576                    ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
577                            "_service");
578                    MethodCache.remove(BlogsEntryLocalService.class);
579            }
580    
581            private static BlogsEntryLocalService _service;
582    }