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.announcements.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link AnnouncementsEntryLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AnnouncementsEntryLocalService
026     * @generated
027     */
028    public class AnnouncementsEntryLocalServiceWrapper
029            implements AnnouncementsEntryLocalService,
030                    ServiceWrapper<AnnouncementsEntryLocalService> {
031            public AnnouncementsEntryLocalServiceWrapper(
032                    AnnouncementsEntryLocalService announcementsEntryLocalService) {
033                    _announcementsEntryLocalService = announcementsEntryLocalService;
034            }
035    
036            /**
037            * Adds the announcements entry to the database. Also notifies the appropriate model listeners.
038            *
039            * @param announcementsEntry the announcements entry
040            * @return the announcements entry that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.announcements.model.AnnouncementsEntry addAnnouncementsEntry(
044                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _announcementsEntryLocalService.addAnnouncementsEntry(announcementsEntry);
047            }
048    
049            /**
050            * Creates a new announcements entry with the primary key. Does not add the announcements entry to the database.
051            *
052            * @param entryId the primary key for the new announcements entry
053            * @return the new announcements entry
054            */
055            public com.liferay.portlet.announcements.model.AnnouncementsEntry createAnnouncementsEntry(
056                    long entryId) {
057                    return _announcementsEntryLocalService.createAnnouncementsEntry(entryId);
058            }
059    
060            /**
061            * Deletes the announcements entry with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param entryId the primary key of the announcements entry
064            * @throws PortalException if a announcements entry with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteAnnouncementsEntry(long entryId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _announcementsEntryLocalService.deleteAnnouncementsEntry(entryId);
071            }
072    
073            /**
074            * Deletes the announcements entry from the database. Also notifies the appropriate model listeners.
075            *
076            * @param announcementsEntry the announcements entry
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteAnnouncementsEntry(
080                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _announcementsEntryLocalService.deleteAnnouncementsEntry(announcementsEntry);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _announcementsEntryLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _announcementsEntryLocalService.dynamicQuery(dynamicQuery,
117                            start, end);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122            *
123            * <p>
124            * 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.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query
128            * @param start the lower bound of the range of model instances
129            * @param end the upper bound of the range of model instances (not inclusive)
130            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
131            * @return the ordered range of matching rows
132            * @throws SystemException if a system exception occurred
133            */
134            @SuppressWarnings("rawtypes")
135            public java.util.List dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _announcementsEntryLocalService.dynamicQuery(dynamicQuery,
141                            start, end, orderByComparator);
142            }
143    
144            /**
145            * Returns the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _announcementsEntryLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchAnnouncementsEntry(
158                    long entryId)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _announcementsEntryLocalService.fetchAnnouncementsEntry(entryId);
161            }
162    
163            /**
164            * Returns the announcements entry with the primary key.
165            *
166            * @param entryId the primary key of the announcements entry
167            * @return the announcements entry
168            * @throws PortalException if a announcements entry with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portlet.announcements.model.AnnouncementsEntry getAnnouncementsEntry(
172                    long entryId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _announcementsEntryLocalService.getAnnouncementsEntry(entryId);
176            }
177    
178            public com.liferay.portal.model.PersistedModel getPersistedModel(
179                    java.io.Serializable primaryKeyObj)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _announcementsEntryLocalService.getPersistedModel(primaryKeyObj);
183            }
184    
185            /**
186            * Returns a range of all the announcements entries.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of announcements entries
193            * @param end the upper bound of the range of announcements entries (not inclusive)
194            * @return the range of announcements entries
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getAnnouncementsEntries(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _announcementsEntryLocalService.getAnnouncementsEntries(start,
201                            end);
202            }
203    
204            /**
205            * Returns the number of announcements entries.
206            *
207            * @return the number of announcements entries
208            * @throws SystemException if a system exception occurred
209            */
210            public int getAnnouncementsEntriesCount()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return _announcementsEntryLocalService.getAnnouncementsEntriesCount();
213            }
214    
215            /**
216            * Updates the announcements entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
217            *
218            * @param announcementsEntry the announcements entry
219            * @return the announcements entry that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.announcements.model.AnnouncementsEntry updateAnnouncementsEntry(
223                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _announcementsEntryLocalService.updateAnnouncementsEntry(announcementsEntry);
226            }
227    
228            /**
229            * Updates the announcements entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param announcementsEntry the announcements entry
232            * @param merge whether to merge the announcements 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.
233            * @return the announcements entry that was updated
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.announcements.model.AnnouncementsEntry updateAnnouncementsEntry(
237                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
238                    boolean merge)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _announcementsEntryLocalService.updateAnnouncementsEntry(announcementsEntry,
241                            merge);
242            }
243    
244            /**
245            * Returns the Spring bean ID for this bean.
246            *
247            * @return the Spring bean ID for this bean
248            */
249            public java.lang.String getBeanIdentifier() {
250                    return _announcementsEntryLocalService.getBeanIdentifier();
251            }
252    
253            /**
254            * Sets the Spring bean ID for this bean.
255            *
256            * @param beanIdentifier the Spring bean ID for this bean
257            */
258            public void setBeanIdentifier(java.lang.String beanIdentifier) {
259                    _announcementsEntryLocalService.setBeanIdentifier(beanIdentifier);
260            }
261    
262            public com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
263                    long userId, long classNameId, long classPK, java.lang.String title,
264                    java.lang.String content, java.lang.String url, java.lang.String type,
265                    int displayDateMonth, int displayDateDay, int displayDateYear,
266                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
267                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
268                    int expirationDateMinute, int priority, boolean alert)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _announcementsEntryLocalService.addEntry(userId, classNameId,
272                            classPK, title, content, url, type, displayDateMonth,
273                            displayDateDay, displayDateYear, displayDateHour,
274                            displayDateMinute, expirationDateMonth, expirationDateDay,
275                            expirationDateYear, expirationDateHour, expirationDateMinute,
276                            priority, alert);
277            }
278    
279            public void checkEntries()
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _announcementsEntryLocalService.checkEntries();
283            }
284    
285            public void deleteEntry(
286                    com.liferay.portlet.announcements.model.AnnouncementsEntry entry)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _announcementsEntryLocalService.deleteEntry(entry);
290            }
291    
292            public void deleteEntry(long entryId)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _announcementsEntryLocalService.deleteEntry(entryId);
296            }
297    
298            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
299                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
300                    boolean alert, int flagValue, int start, int end)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _announcementsEntryLocalService.getEntries(userId, scopes,
303                            alert, flagValue, start, end);
304            }
305    
306            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
307                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
308                    int displayDateMonth, int displayDateDay, int displayDateYear,
309                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
310                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
311                    int expirationDateMinute, boolean alert, int flagValue, int start,
312                    int end) throws com.liferay.portal.kernel.exception.SystemException {
313                    return _announcementsEntryLocalService.getEntries(userId, scopes,
314                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
315                            displayDateMinute, expirationDateMonth, expirationDateDay,
316                            expirationDateYear, expirationDateHour, expirationDateMinute,
317                            alert, flagValue, start, end);
318            }
319    
320            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
321                    long classNameId, long classPK, boolean alert, int start, int end)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return _announcementsEntryLocalService.getEntries(classNameId, classPK,
324                            alert, start, end);
325            }
326    
327            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
328                    long userId, long classNameId, long[] classPKs, int displayDateMonth,
329                    int displayDateDay, int displayDateYear, int displayDateHour,
330                    int displayDateMinute, int expirationDateMonth, int expirationDateDay,
331                    int expirationDateYear, int expirationDateHour,
332                    int expirationDateMinute, boolean alert, int flagValue, int start,
333                    int end) throws com.liferay.portal.kernel.exception.SystemException {
334                    return _announcementsEntryLocalService.getEntries(userId, classNameId,
335                            classPKs, displayDateMonth, displayDateDay, displayDateYear,
336                            displayDateHour, displayDateMinute, expirationDateMonth,
337                            expirationDateDay, expirationDateYear, expirationDateHour,
338                            expirationDateMinute, alert, flagValue, start, end);
339            }
340    
341            public int getEntriesCount(long userId,
342                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes, boolean alert,
343                    int flagValue)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return _announcementsEntryLocalService.getEntriesCount(userId, scopes,
346                            alert, flagValue);
347            }
348    
349            public int getEntriesCount(long userId,
350                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
351                    int displayDateMonth, int displayDateDay, int displayDateYear,
352                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
353                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
354                    int expirationDateMinute, boolean alert, int flagValue)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return _announcementsEntryLocalService.getEntriesCount(userId, scopes,
357                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
358                            displayDateMinute, expirationDateMonth, expirationDateDay,
359                            expirationDateYear, expirationDateHour, expirationDateMinute,
360                            alert, flagValue);
361            }
362    
363            public int getEntriesCount(long classNameId, long classPK, boolean alert)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _announcementsEntryLocalService.getEntriesCount(classNameId,
366                            classPK, alert);
367            }
368    
369            public int getEntriesCount(long userId, long classNameId, long[] classPKs,
370                    boolean alert, int flagValue)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _announcementsEntryLocalService.getEntriesCount(userId,
373                            classNameId, classPKs, alert, flagValue);
374            }
375    
376            public int getEntriesCount(long userId, long classNameId, long[] classPKs,
377                    int displayDateMonth, int displayDateDay, int displayDateYear,
378                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
379                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
380                    int expirationDateMinute, boolean alert, int flagValue)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _announcementsEntryLocalService.getEntriesCount(userId,
383                            classNameId, classPKs, displayDateMonth, displayDateDay,
384                            displayDateYear, displayDateHour, displayDateMinute,
385                            expirationDateMonth, expirationDateDay, expirationDateYear,
386                            expirationDateHour, expirationDateMinute, alert, flagValue);
387            }
388    
389            public com.liferay.portlet.announcements.model.AnnouncementsEntry getEntry(
390                    long entryId)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _announcementsEntryLocalService.getEntry(entryId);
394            }
395    
396            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getUserEntries(
397                    long userId, int start, int end)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _announcementsEntryLocalService.getUserEntries(userId, start, end);
400            }
401    
402            public int getUserEntriesCount(long userId)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _announcementsEntryLocalService.getUserEntriesCount(userId);
405            }
406    
407            public com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
408                    long userId, long entryId, java.lang.String title,
409                    java.lang.String content, java.lang.String url, java.lang.String type,
410                    int displayDateMonth, int displayDateDay, int displayDateYear,
411                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
412                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
413                    int expirationDateMinute, int priority)
414                    throws com.liferay.portal.kernel.exception.PortalException,
415                            com.liferay.portal.kernel.exception.SystemException {
416                    return _announcementsEntryLocalService.updateEntry(userId, entryId,
417                            title, content, url, type, displayDateMonth, displayDateDay,
418                            displayDateYear, displayDateHour, displayDateMinute,
419                            expirationDateMonth, expirationDateDay, expirationDateYear,
420                            expirationDateHour, expirationDateMinute, priority);
421            }
422    
423            /**
424             * @deprecated Renamed to {@link #getWrappedService}
425             */
426            public AnnouncementsEntryLocalService getWrappedAnnouncementsEntryLocalService() {
427                    return _announcementsEntryLocalService;
428            }
429    
430            /**
431             * @deprecated Renamed to {@link #setWrappedService}
432             */
433            public void setWrappedAnnouncementsEntryLocalService(
434                    AnnouncementsEntryLocalService announcementsEntryLocalService) {
435                    _announcementsEntryLocalService = announcementsEntryLocalService;
436            }
437    
438            public AnnouncementsEntryLocalService getWrappedService() {
439                    return _announcementsEntryLocalService;
440            }
441    
442            public void setWrappedService(
443                    AnnouncementsEntryLocalService announcementsEntryLocalService) {
444                    _announcementsEntryLocalService = announcementsEntryLocalService;
445            }
446    
447            private AnnouncementsEntryLocalService _announcementsEntryLocalService;
448    }