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 AnnouncementsFlagLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AnnouncementsFlagLocalService
026     * @generated
027     */
028    public class AnnouncementsFlagLocalServiceWrapper
029            implements AnnouncementsFlagLocalService,
030                    ServiceWrapper<AnnouncementsFlagLocalService> {
031            public AnnouncementsFlagLocalServiceWrapper(
032                    AnnouncementsFlagLocalService announcementsFlagLocalService) {
033                    _announcementsFlagLocalService = announcementsFlagLocalService;
034            }
035    
036            /**
037            * Adds the announcements flag to the database. Also notifies the appropriate model listeners.
038            *
039            * @param announcementsFlag the announcements flag
040            * @return the announcements flag that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.announcements.model.AnnouncementsFlag addAnnouncementsFlag(
044                    com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _announcementsFlagLocalService.addAnnouncementsFlag(announcementsFlag);
047            }
048    
049            /**
050            * Creates a new announcements flag with the primary key. Does not add the announcements flag to the database.
051            *
052            * @param flagId the primary key for the new announcements flag
053            * @return the new announcements flag
054            */
055            public com.liferay.portlet.announcements.model.AnnouncementsFlag createAnnouncementsFlag(
056                    long flagId) {
057                    return _announcementsFlagLocalService.createAnnouncementsFlag(flagId);
058            }
059    
060            /**
061            * Deletes the announcements flag with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param flagId the primary key of the announcements flag
064            * @throws PortalException if a announcements flag with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteAnnouncementsFlag(long flagId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _announcementsFlagLocalService.deleteAnnouncementsFlag(flagId);
071            }
072    
073            /**
074            * Deletes the announcements flag from the database. Also notifies the appropriate model listeners.
075            *
076            * @param announcementsFlag the announcements flag
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteAnnouncementsFlag(
080                    com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _announcementsFlagLocalService.deleteAnnouncementsFlag(announcementsFlag);
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 _announcementsFlagLocalService.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 _announcementsFlagLocalService.dynamicQuery(dynamicQuery, start,
117                            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 _announcementsFlagLocalService.dynamicQuery(dynamicQuery, start,
141                            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 _announcementsFlagLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchAnnouncementsFlag(
158                    long flagId) throws com.liferay.portal.kernel.exception.SystemException {
159                    return _announcementsFlagLocalService.fetchAnnouncementsFlag(flagId);
160            }
161    
162            /**
163            * Returns the announcements flag with the primary key.
164            *
165            * @param flagId the primary key of the announcements flag
166            * @return the announcements flag
167            * @throws PortalException if a announcements flag with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portlet.announcements.model.AnnouncementsFlag getAnnouncementsFlag(
171                    long flagId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _announcementsFlagLocalService.getAnnouncementsFlag(flagId);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _announcementsFlagLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns a range of all the announcements flags.
186            *
187            * <p>
188            * 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.
189            * </p>
190            *
191            * @param start the lower bound of the range of announcements flags
192            * @param end the upper bound of the range of announcements flags (not inclusive)
193            * @return the range of announcements flags
194            * @throws SystemException if a system exception occurred
195            */
196            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> getAnnouncementsFlags(
197                    int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _announcementsFlagLocalService.getAnnouncementsFlags(start, end);
200            }
201    
202            /**
203            * Returns the number of announcements flags.
204            *
205            * @return the number of announcements flags
206            * @throws SystemException if a system exception occurred
207            */
208            public int getAnnouncementsFlagsCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _announcementsFlagLocalService.getAnnouncementsFlagsCount();
211            }
212    
213            /**
214            * Updates the announcements flag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param announcementsFlag the announcements flag
217            * @return the announcements flag that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.announcements.model.AnnouncementsFlag updateAnnouncementsFlag(
221                    com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _announcementsFlagLocalService.updateAnnouncementsFlag(announcementsFlag);
224            }
225    
226            /**
227            * Updates the announcements flag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param announcementsFlag the announcements flag
230            * @param merge whether to merge the announcements flag 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.
231            * @return the announcements flag that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.announcements.model.AnnouncementsFlag updateAnnouncementsFlag(
235                    com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
236                    boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _announcementsFlagLocalService.updateAnnouncementsFlag(announcementsFlag,
239                            merge);
240            }
241    
242            /**
243            * Returns the Spring bean ID for this bean.
244            *
245            * @return the Spring bean ID for this bean
246            */
247            public java.lang.String getBeanIdentifier() {
248                    return _announcementsFlagLocalService.getBeanIdentifier();
249            }
250    
251            /**
252            * Sets the Spring bean ID for this bean.
253            *
254            * @param beanIdentifier the Spring bean ID for this bean
255            */
256            public void setBeanIdentifier(java.lang.String beanIdentifier) {
257                    _announcementsFlagLocalService.setBeanIdentifier(beanIdentifier);
258            }
259    
260            public com.liferay.portlet.announcements.model.AnnouncementsFlag addFlag(
261                    long userId, long entryId, int value)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return _announcementsFlagLocalService.addFlag(userId, entryId, value);
264            }
265    
266            public void deleteFlag(
267                    com.liferay.portlet.announcements.model.AnnouncementsFlag flag)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    _announcementsFlagLocalService.deleteFlag(flag);
270            }
271    
272            public void deleteFlag(long flagId)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _announcementsFlagLocalService.deleteFlag(flagId);
276            }
277    
278            public void deleteFlags(long entryId)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    _announcementsFlagLocalService.deleteFlags(entryId);
281            }
282    
283            public com.liferay.portlet.announcements.model.AnnouncementsFlag getFlag(
284                    long userId, long entryId, int value)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    return _announcementsFlagLocalService.getFlag(userId, entryId, value);
288            }
289    
290            /**
291             * @deprecated Renamed to {@link #getWrappedService}
292             */
293            public AnnouncementsFlagLocalService getWrappedAnnouncementsFlagLocalService() {
294                    return _announcementsFlagLocalService;
295            }
296    
297            /**
298             * @deprecated Renamed to {@link #setWrappedService}
299             */
300            public void setWrappedAnnouncementsFlagLocalService(
301                    AnnouncementsFlagLocalService announcementsFlagLocalService) {
302                    _announcementsFlagLocalService = announcementsFlagLocalService;
303            }
304    
305            public AnnouncementsFlagLocalService getWrappedService() {
306                    return _announcementsFlagLocalService;
307            }
308    
309            public void setWrappedService(
310                    AnnouncementsFlagLocalService announcementsFlagLocalService) {
311                    _announcementsFlagLocalService = announcementsFlagLocalService;
312            }
313    
314            private AnnouncementsFlagLocalService _announcementsFlagLocalService;
315    }