001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link AnnouncementsFlagLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see AnnouncementsFlagLocalService
026     * @generated
027     */
028    @ProviderType
029    public class AnnouncementsFlagLocalServiceWrapper
030            implements AnnouncementsFlagLocalService,
031                    ServiceWrapper<AnnouncementsFlagLocalService> {
032            public AnnouncementsFlagLocalServiceWrapper(
033                    AnnouncementsFlagLocalService announcementsFlagLocalService) {
034                    _announcementsFlagLocalService = announcementsFlagLocalService;
035            }
036    
037            /**
038            * Adds the announcements flag to the database. Also notifies the appropriate model listeners.
039            *
040            * @param announcementsFlag the announcements flag
041            * @return the announcements flag that was added
042            */
043            @Override
044            public com.liferay.portlet.announcements.model.AnnouncementsFlag addAnnouncementsFlag(
045                    com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) {
046                    return _announcementsFlagLocalService.addAnnouncementsFlag(announcementsFlag);
047            }
048    
049            @Override
050            public com.liferay.portlet.announcements.model.AnnouncementsFlag addFlag(
051                    long userId, long entryId, int value) {
052                    return _announcementsFlagLocalService.addFlag(userId, entryId, value);
053            }
054    
055            /**
056            * Creates a new announcements flag with the primary key. Does not add the announcements flag to the database.
057            *
058            * @param flagId the primary key for the new announcements flag
059            * @return the new announcements flag
060            */
061            @Override
062            public com.liferay.portlet.announcements.model.AnnouncementsFlag createAnnouncementsFlag(
063                    long flagId) {
064                    return _announcementsFlagLocalService.createAnnouncementsFlag(flagId);
065            }
066    
067            /**
068            * Deletes the announcements flag from the database. Also notifies the appropriate model listeners.
069            *
070            * @param announcementsFlag the announcements flag
071            * @return the announcements flag that was removed
072            */
073            @Override
074            public com.liferay.portlet.announcements.model.AnnouncementsFlag deleteAnnouncementsFlag(
075                    com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) {
076                    return _announcementsFlagLocalService.deleteAnnouncementsFlag(announcementsFlag);
077            }
078    
079            /**
080            * Deletes the announcements flag with the primary key from the database. Also notifies the appropriate model listeners.
081            *
082            * @param flagId the primary key of the announcements flag
083            * @return the announcements flag that was removed
084            * @throws PortalException if a announcements flag with the primary key could not be found
085            */
086            @Override
087            public com.liferay.portlet.announcements.model.AnnouncementsFlag deleteAnnouncementsFlag(
088                    long flagId) throws com.liferay.portal.kernel.exception.PortalException {
089                    return _announcementsFlagLocalService.deleteAnnouncementsFlag(flagId);
090            }
091    
092            @Override
093            public void deleteFlag(
094                    com.liferay.portlet.announcements.model.AnnouncementsFlag flag) {
095                    _announcementsFlagLocalService.deleteFlag(flag);
096            }
097    
098            @Override
099            public void deleteFlag(long flagId)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    _announcementsFlagLocalService.deleteFlag(flagId);
102            }
103    
104            @Override
105            public void deleteFlags(long entryId) {
106                    _announcementsFlagLocalService.deleteFlags(entryId);
107            }
108    
109            /**
110            * @throws PortalException
111            */
112            @Override
113            public com.liferay.portal.model.PersistedModel deletePersistedModel(
114                    com.liferay.portal.model.PersistedModel persistedModel)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    return _announcementsFlagLocalService.deletePersistedModel(persistedModel);
117            }
118    
119            @Override
120            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
121                    return _announcementsFlagLocalService.dynamicQuery();
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns the matching rows.
126            *
127            * @param dynamicQuery the dynamic query
128            * @return the matching rows
129            */
130            @Override
131            public <T> java.util.List<T> dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
133                    return _announcementsFlagLocalService.dynamicQuery(dynamicQuery);
134            }
135    
136            /**
137            * Performs a dynamic query on the database and returns a range of the matching rows.
138            *
139            * <p>
140            * 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.AnnouncementsFlagModelImpl}. 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.
141            * </p>
142            *
143            * @param dynamicQuery the dynamic query
144            * @param start the lower bound of the range of model instances
145            * @param end the upper bound of the range of model instances (not inclusive)
146            * @return the range of matching rows
147            */
148            @Override
149            public <T> java.util.List<T> dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end) {
152                    return _announcementsFlagLocalService.dynamicQuery(dynamicQuery, start,
153                            end);
154            }
155    
156            /**
157            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
158            *
159            * <p>
160            * 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.AnnouncementsFlagModelImpl}. 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.
161            * </p>
162            *
163            * @param dynamicQuery the dynamic query
164            * @param start the lower bound of the range of model instances
165            * @param end the upper bound of the range of model instances (not inclusive)
166            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
167            * @return the ordered range of matching rows
168            */
169            @Override
170            public <T> java.util.List<T> dynamicQuery(
171                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
172                    int end,
173                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
174                    return _announcementsFlagLocalService.dynamicQuery(dynamicQuery, start,
175                            end, orderByComparator);
176            }
177    
178            /**
179            * Returns the number of rows matching the dynamic query.
180            *
181            * @param dynamicQuery the dynamic query
182            * @return the number of rows matching the dynamic query
183            */
184            @Override
185            public long dynamicQueryCount(
186                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
187                    return _announcementsFlagLocalService.dynamicQueryCount(dynamicQuery);
188            }
189    
190            /**
191            * Returns the number of rows matching the dynamic query.
192            *
193            * @param dynamicQuery the dynamic query
194            * @param projection the projection to apply to the query
195            * @return the number of rows matching the dynamic query
196            */
197            @Override
198            public long dynamicQueryCount(
199                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
200                    com.liferay.portal.kernel.dao.orm.Projection projection) {
201                    return _announcementsFlagLocalService.dynamicQueryCount(dynamicQuery,
202                            projection);
203            }
204    
205            @Override
206            public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchAnnouncementsFlag(
207                    long flagId) {
208                    return _announcementsFlagLocalService.fetchAnnouncementsFlag(flagId);
209            }
210    
211            @Override
212            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
213                    return _announcementsFlagLocalService.getActionableDynamicQuery();
214            }
215    
216            /**
217            * Returns the announcements flag with the primary key.
218            *
219            * @param flagId the primary key of the announcements flag
220            * @return the announcements flag
221            * @throws PortalException if a announcements flag with the primary key could not be found
222            */
223            @Override
224            public com.liferay.portlet.announcements.model.AnnouncementsFlag getAnnouncementsFlag(
225                    long flagId) throws com.liferay.portal.kernel.exception.PortalException {
226                    return _announcementsFlagLocalService.getAnnouncementsFlag(flagId);
227            }
228    
229            /**
230            * Returns a range of all the announcements flags.
231            *
232            * <p>
233            * 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.AnnouncementsFlagModelImpl}. 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.
234            * </p>
235            *
236            * @param start the lower bound of the range of announcements flags
237            * @param end the upper bound of the range of announcements flags (not inclusive)
238            * @return the range of announcements flags
239            */
240            @Override
241            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> getAnnouncementsFlags(
242                    int start, int end) {
243                    return _announcementsFlagLocalService.getAnnouncementsFlags(start, end);
244            }
245    
246            /**
247            * Returns the number of announcements flags.
248            *
249            * @return the number of announcements flags
250            */
251            @Override
252            public int getAnnouncementsFlagsCount() {
253                    return _announcementsFlagLocalService.getAnnouncementsFlagsCount();
254            }
255    
256            @Override
257            public com.liferay.portlet.announcements.model.AnnouncementsFlag getFlag(
258                    long userId, long entryId, int value)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    return _announcementsFlagLocalService.getFlag(userId, entryId, value);
261            }
262    
263            @Override
264            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
265                    return _announcementsFlagLocalService.getIndexableActionableDynamicQuery();
266            }
267    
268            /**
269            * Returns the OSGi service identifier.
270            *
271            * @return the OSGi service identifier
272            */
273            @Override
274            public java.lang.String getOSGiServiceIdentifier() {
275                    return _announcementsFlagLocalService.getOSGiServiceIdentifier();
276            }
277    
278            @Override
279            public com.liferay.portal.model.PersistedModel getPersistedModel(
280                    java.io.Serializable primaryKeyObj)
281                    throws com.liferay.portal.kernel.exception.PortalException {
282                    return _announcementsFlagLocalService.getPersistedModel(primaryKeyObj);
283            }
284    
285            /**
286            * Updates the announcements flag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
287            *
288            * @param announcementsFlag the announcements flag
289            * @return the announcements flag that was updated
290            */
291            @Override
292            public com.liferay.portlet.announcements.model.AnnouncementsFlag updateAnnouncementsFlag(
293                    com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) {
294                    return _announcementsFlagLocalService.updateAnnouncementsFlag(announcementsFlag);
295            }
296    
297            @Override
298            public AnnouncementsFlagLocalService getWrappedService() {
299                    return _announcementsFlagLocalService;
300            }
301    
302            @Override
303            public void setWrappedService(
304                    AnnouncementsFlagLocalService announcementsFlagLocalService) {
305                    _announcementsFlagLocalService = announcementsFlagLocalService;
306            }
307    
308            private AnnouncementsFlagLocalService _announcementsFlagLocalService;
309    }