001    /**
002     * Copyright (c) 2000-2013 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.announcements.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the local service utility for AnnouncementsEntry. This utility wraps
022     * {@link com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on the local server. Methods of this service will not have security checks
025     * based on the propagated JAAS credentials because this service can only be
026     * accessed from within the same VM.
027     *
028     * @author Brian Wing Shun Chan
029     * @see AnnouncementsEntryLocalService
030     * @see com.liferay.portlet.announcements.service.base.AnnouncementsEntryLocalServiceBaseImpl
031     * @see com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl
032     * @generated
033     */
034    public class AnnouncementsEntryLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the announcements entry to the database. Also notifies the appropriate model listeners.
043            *
044            * @param announcementsEntry the announcements entry
045            * @return the announcements entry that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portlet.announcements.model.AnnouncementsEntry addAnnouncementsEntry(
049                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addAnnouncementsEntry(announcementsEntry);
052            }
053    
054            /**
055            * Creates a new announcements entry with the primary key. Does not add the announcements entry to the database.
056            *
057            * @param entryId the primary key for the new announcements entry
058            * @return the new announcements entry
059            */
060            public static com.liferay.portlet.announcements.model.AnnouncementsEntry createAnnouncementsEntry(
061                    long entryId) {
062                    return getService().createAnnouncementsEntry(entryId);
063            }
064    
065            /**
066            * Deletes the announcements entry with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param entryId the primary key of the announcements entry
069            * @return the announcements entry that was removed
070            * @throws PortalException if a announcements entry with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public static com.liferay.portlet.announcements.model.AnnouncementsEntry deleteAnnouncementsEntry(
074                    long entryId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService().deleteAnnouncementsEntry(entryId);
078            }
079    
080            /**
081            * Deletes the announcements entry from the database. Also notifies the appropriate model listeners.
082            *
083            * @param announcementsEntry the announcements entry
084            * @return the announcements entry that was removed
085            * @throws SystemException if a system exception occurred
086            */
087            public static com.liferay.portlet.announcements.model.AnnouncementsEntry deleteAnnouncementsEntry(
088                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getService().deleteAnnouncementsEntry(announcementsEntry);
091            }
092    
093            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094                    return getService().dynamicQuery();
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns the matching rows.
099            *
100            * @param dynamicQuery the dynamic query
101            * @return the matching rows
102            * @throws SystemException if a system exception occurred
103            */
104            @SuppressWarnings("rawtypes")
105            public static java.util.List dynamicQuery(
106                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().dynamicQuery(dynamicQuery);
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns a range of the matching rows.
113            *
114            * <p>
115            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
116            * </p>
117            *
118            * @param dynamicQuery the dynamic query
119            * @param start the lower bound of the range of model instances
120            * @param end the upper bound of the range of model instances (not inclusive)
121            * @return the range of matching rows
122            * @throws SystemException if a system exception occurred
123            */
124            @SuppressWarnings("rawtypes")
125            public static java.util.List dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException {
128                    return getService().dynamicQuery(dynamicQuery, start, end);
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
133            *
134            * <p>
135            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
136            * </p>
137            *
138            * @param dynamicQuery the dynamic query
139            * @param start the lower bound of the range of model instances
140            * @param end the upper bound of the range of model instances (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching rows
143            * @throws SystemException if a system exception occurred
144            */
145            @SuppressWarnings("rawtypes")
146            public static java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return getService()
152                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            public static long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getService().dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows that match the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows that match the dynamic query
174            * @throws SystemException if a system exception occurred
175            */
176            public static long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return getService().dynamicQueryCount(dynamicQuery, projection);
181            }
182    
183            public static com.liferay.portlet.announcements.model.AnnouncementsEntry fetchAnnouncementsEntry(
184                    long entryId)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return getService().fetchAnnouncementsEntry(entryId);
187            }
188    
189            /**
190            * Returns the announcements entry with the matching UUID and company.
191            *
192            * @param uuid the announcements entry's UUID
193            * @param companyId the primary key of the company
194            * @return the matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public static com.liferay.portlet.announcements.model.AnnouncementsEntry fetchAnnouncementsEntryByUuidAndCompanyId(
198                    java.lang.String uuid, long companyId)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getService()
201                                       .fetchAnnouncementsEntryByUuidAndCompanyId(uuid, companyId);
202            }
203    
204            /**
205            * Returns the announcements entry with the primary key.
206            *
207            * @param entryId the primary key of the announcements entry
208            * @return the announcements entry
209            * @throws PortalException if a announcements entry with the primary key could not be found
210            * @throws SystemException if a system exception occurred
211            */
212            public static com.liferay.portlet.announcements.model.AnnouncementsEntry getAnnouncementsEntry(
213                    long entryId)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException {
216                    return getService().getAnnouncementsEntry(entryId);
217            }
218    
219            public static com.liferay.portal.model.PersistedModel getPersistedModel(
220                    java.io.Serializable primaryKeyObj)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    return getService().getPersistedModel(primaryKeyObj);
224            }
225    
226            /**
227            * Returns the announcements entry with the matching UUID and company.
228            *
229            * @param uuid the announcements entry's UUID
230            * @param companyId the primary key of the company
231            * @return the matching announcements entry
232            * @throws PortalException if a matching announcements entry could not be found
233            * @throws SystemException if a system exception occurred
234            */
235            public static com.liferay.portlet.announcements.model.AnnouncementsEntry getAnnouncementsEntryByUuidAndCompanyId(
236                    java.lang.String uuid, long companyId)
237                    throws com.liferay.portal.kernel.exception.PortalException,
238                            com.liferay.portal.kernel.exception.SystemException {
239                    return getService()
240                                       .getAnnouncementsEntryByUuidAndCompanyId(uuid, companyId);
241            }
242    
243            /**
244            * Returns a range of all the announcements entries.
245            *
246            * <p>
247            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
248            * </p>
249            *
250            * @param start the lower bound of the range of announcements entries
251            * @param end the upper bound of the range of announcements entries (not inclusive)
252            * @return the range of announcements entries
253            * @throws SystemException if a system exception occurred
254            */
255            public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getAnnouncementsEntries(
256                    int start, int end)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return getService().getAnnouncementsEntries(start, end);
259            }
260    
261            /**
262            * Returns the number of announcements entries.
263            *
264            * @return the number of announcements entries
265            * @throws SystemException if a system exception occurred
266            */
267            public static int getAnnouncementsEntriesCount()
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    return getService().getAnnouncementsEntriesCount();
270            }
271    
272            /**
273            * Updates the announcements entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
274            *
275            * @param announcementsEntry the announcements entry
276            * @return the announcements entry that was updated
277            * @throws SystemException if a system exception occurred
278            */
279            public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateAnnouncementsEntry(
280                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    return getService().updateAnnouncementsEntry(announcementsEntry);
283            }
284    
285            /**
286            * Returns the Spring bean ID for this bean.
287            *
288            * @return the Spring bean ID for this bean
289            */
290            public static java.lang.String getBeanIdentifier() {
291                    return getService().getBeanIdentifier();
292            }
293    
294            /**
295            * Sets the Spring bean ID for this bean.
296            *
297            * @param beanIdentifier the Spring bean ID for this bean
298            */
299            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
300                    getService().setBeanIdentifier(beanIdentifier);
301            }
302    
303            public static com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
304                    long userId, long classNameId, long classPK, java.lang.String title,
305                    java.lang.String content, java.lang.String url, java.lang.String type,
306                    int displayDateMonth, int displayDateDay, int displayDateYear,
307                    int displayDateHour, int displayDateMinute, boolean displayImmediately,
308                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
309                    int expirationDateHour, int expirationDateMinute, int priority,
310                    boolean alert)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    return getService()
314                                       .addEntry(userId, classNameId, classPK, title, content, url,
315                            type, displayDateMonth, displayDateDay, displayDateYear,
316                            displayDateHour, displayDateMinute, displayImmediately,
317                            expirationDateMonth, expirationDateDay, expirationDateYear,
318                            expirationDateHour, expirationDateMinute, priority, alert);
319            }
320    
321            /**
322            * @deprecated As of 6.2.0, replaced by {@link #addEntry(long, long, long,
323            String, String, String, String, int, int, int, int, int,
324            boolean, int, int, int, int, int, int, boolean)}
325            */
326            public static com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
327                    long userId, long classNameId, long classPK, java.lang.String title,
328                    java.lang.String content, java.lang.String url, java.lang.String type,
329                    int displayDateMonth, int displayDateDay, int displayDateYear,
330                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
331                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
332                    int expirationDateMinute, int priority, boolean alert)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return getService()
336                                       .addEntry(userId, classNameId, classPK, title, content, url,
337                            type, displayDateMonth, displayDateDay, displayDateYear,
338                            displayDateHour, displayDateMinute, expirationDateMonth,
339                            expirationDateDay, expirationDateYear, expirationDateHour,
340                            expirationDateMinute, priority, alert);
341            }
342    
343            public static void checkEntries()
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    getService().checkEntries();
347            }
348    
349            public static void deleteEntry(
350                    com.liferay.portlet.announcements.model.AnnouncementsEntry entry)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    getService().deleteEntry(entry);
354            }
355    
356            public static void deleteEntry(long entryId)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    getService().deleteEntry(entryId);
360            }
361    
362            public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
363                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
364                    boolean alert, int flagValue, int start, int end)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return getService()
367                                       .getEntries(userId, scopes, alert, flagValue, start, end);
368            }
369    
370            public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
371                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
372                    int displayDateMonth, int displayDateDay, int displayDateYear,
373                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
374                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
375                    int expirationDateMinute, boolean alert, int flagValue, int start,
376                    int end) throws com.liferay.portal.kernel.exception.SystemException {
377                    return getService()
378                                       .getEntries(userId, scopes, displayDateMonth,
379                            displayDateDay, displayDateYear, displayDateHour,
380                            displayDateMinute, expirationDateMonth, expirationDateDay,
381                            expirationDateYear, expirationDateHour, expirationDateMinute,
382                            alert, flagValue, start, end);
383            }
384    
385            public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
386                    long classNameId, long classPK, boolean alert, int start, int end)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return getService().getEntries(classNameId, classPK, alert, start, end);
389            }
390    
391            public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
392                    long userId, long classNameId, long[] classPKs, int displayDateMonth,
393                    int displayDateDay, int displayDateYear, int displayDateHour,
394                    int displayDateMinute, int expirationDateMonth, int expirationDateDay,
395                    int expirationDateYear, int expirationDateHour,
396                    int expirationDateMinute, boolean alert, int flagValue, int start,
397                    int end) throws com.liferay.portal.kernel.exception.SystemException {
398                    return getService()
399                                       .getEntries(userId, classNameId, classPKs, displayDateMonth,
400                            displayDateDay, displayDateYear, displayDateHour,
401                            displayDateMinute, expirationDateMonth, expirationDateDay,
402                            expirationDateYear, expirationDateHour, expirationDateMinute,
403                            alert, flagValue, start, end);
404            }
405    
406            public static int getEntriesCount(long userId,
407                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes, boolean alert,
408                    int flagValue)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return getService().getEntriesCount(userId, scopes, alert, flagValue);
411            }
412    
413            public static int getEntriesCount(long userId,
414                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
415                    int displayDateMonth, int displayDateDay, int displayDateYear,
416                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
417                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
418                    int expirationDateMinute, boolean alert, int flagValue)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return getService()
421                                       .getEntriesCount(userId, scopes, displayDateMonth,
422                            displayDateDay, displayDateYear, displayDateHour,
423                            displayDateMinute, expirationDateMonth, expirationDateDay,
424                            expirationDateYear, expirationDateHour, expirationDateMinute,
425                            alert, flagValue);
426            }
427    
428            public static int getEntriesCount(long classNameId, long classPK,
429                    boolean alert)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return getService().getEntriesCount(classNameId, classPK, alert);
432            }
433    
434            public static int getEntriesCount(long userId, long classNameId,
435                    long[] classPKs, boolean alert, int flagValue)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getService()
438                                       .getEntriesCount(userId, classNameId, classPKs, alert,
439                            flagValue);
440            }
441    
442            public static int getEntriesCount(long userId, long classNameId,
443                    long[] classPKs, int displayDateMonth, int displayDateDay,
444                    int displayDateYear, int displayDateHour, int displayDateMinute,
445                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
446                    int expirationDateHour, int expirationDateMinute, boolean alert,
447                    int flagValue)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return getService()
450                                       .getEntriesCount(userId, classNameId, classPKs,
451                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
452                            displayDateMinute, expirationDateMonth, expirationDateDay,
453                            expirationDateYear, expirationDateHour, expirationDateMinute,
454                            alert, flagValue);
455            }
456    
457            public static com.liferay.portlet.announcements.model.AnnouncementsEntry getEntry(
458                    long entryId)
459                    throws com.liferay.portal.kernel.exception.PortalException,
460                            com.liferay.portal.kernel.exception.SystemException {
461                    return getService().getEntry(entryId);
462            }
463    
464            public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getUserEntries(
465                    long userId, int start, int end)
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    return getService().getUserEntries(userId, start, end);
468            }
469    
470            public static int getUserEntriesCount(long userId)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return getService().getUserEntriesCount(userId);
473            }
474    
475            public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
476                    long userId, long entryId, java.lang.String title,
477                    java.lang.String content, java.lang.String url, java.lang.String type,
478                    int displayDateMonth, int displayDateDay, int displayDateYear,
479                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
480                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
481                    int expirationDateMinute, int priority)
482                    throws com.liferay.portal.kernel.exception.PortalException,
483                            com.liferay.portal.kernel.exception.SystemException {
484                    return getService()
485                                       .updateEntry(userId, entryId, title, content, url, type,
486                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
487                            displayDateMinute, expirationDateMonth, expirationDateDay,
488                            expirationDateYear, expirationDateHour, expirationDateMinute,
489                            priority);
490            }
491    
492            public static AnnouncementsEntryLocalService getService() {
493                    if (_service == null) {
494                            _service = (AnnouncementsEntryLocalService)PortalBeanLocatorUtil.locate(AnnouncementsEntryLocalService.class.getName());
495    
496                            ReferenceRegistry.registerReference(AnnouncementsEntryLocalServiceUtil.class,
497                                    "_service");
498                    }
499    
500                    return _service;
501            }
502    
503            /**
504             * @deprecated As of 6.2.0
505             */
506            public void setService(AnnouncementsEntryLocalService service) {
507            }
508    
509            private static AnnouncementsEntryLocalService _service;
510    }