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.journal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link JournalArticleImageLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see JournalArticleImageLocalService
026     * @generated
027     */
028    @ProviderType
029    public class JournalArticleImageLocalServiceWrapper
030            implements JournalArticleImageLocalService,
031                    ServiceWrapper<JournalArticleImageLocalService> {
032            public JournalArticleImageLocalServiceWrapper(
033                    JournalArticleImageLocalService journalArticleImageLocalService) {
034                    _journalArticleImageLocalService = journalArticleImageLocalService;
035            }
036    
037            @Override
038            public void addArticleImageId(long articleImageId, long groupId,
039                    java.lang.String articleId, double version,
040                    java.lang.String elInstanceId, java.lang.String elName,
041                    java.lang.String languageId)
042                    throws com.liferay.portal.kernel.exception.PortalException {
043                    _journalArticleImageLocalService.addArticleImageId(articleImageId,
044                            groupId, articleId, version, elInstanceId, elName, languageId);
045            }
046    
047            /**
048            * Adds the journal article image to the database. Also notifies the appropriate model listeners.
049            *
050            * @param journalArticleImage the journal article image
051            * @return the journal article image that was added
052            */
053            @Override
054            public com.liferay.portlet.journal.model.JournalArticleImage addJournalArticleImage(
055                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
056                    return _journalArticleImageLocalService.addJournalArticleImage(journalArticleImage);
057            }
058    
059            /**
060            * Creates a new journal article image with the primary key. Does not add the journal article image to the database.
061            *
062            * @param articleImageId the primary key for the new journal article image
063            * @return the new journal article image
064            */
065            @Override
066            public com.liferay.portlet.journal.model.JournalArticleImage createJournalArticleImage(
067                    long articleImageId) {
068                    return _journalArticleImageLocalService.createJournalArticleImage(articleImageId);
069            }
070    
071            @Override
072            public void deleteArticleImage(
073                    com.liferay.portlet.journal.model.JournalArticleImage articleImage) {
074                    _journalArticleImageLocalService.deleteArticleImage(articleImage);
075            }
076    
077            @Override
078            public void deleteArticleImage(long articleImageId) {
079                    _journalArticleImageLocalService.deleteArticleImage(articleImageId);
080            }
081    
082            @Override
083            public void deleteArticleImage(long groupId, java.lang.String articleId,
084                    double version, java.lang.String elInstanceId, java.lang.String elName,
085                    java.lang.String languageId) {
086                    _journalArticleImageLocalService.deleteArticleImage(groupId, articleId,
087                            version, elInstanceId, elName, languageId);
088            }
089    
090            @Override
091            public void deleteImages(long groupId, java.lang.String articleId,
092                    double version) {
093                    _journalArticleImageLocalService.deleteImages(groupId, articleId,
094                            version);
095            }
096    
097            /**
098            * Deletes the journal article image with the primary key from the database. Also notifies the appropriate model listeners.
099            *
100            * @param articleImageId the primary key of the journal article image
101            * @return the journal article image that was removed
102            * @throws PortalException if a journal article image with the primary key could not be found
103            */
104            @Override
105            public com.liferay.portlet.journal.model.JournalArticleImage deleteJournalArticleImage(
106                    long articleImageId)
107                    throws com.liferay.portal.kernel.exception.PortalException {
108                    return _journalArticleImageLocalService.deleteJournalArticleImage(articleImageId);
109            }
110    
111            /**
112            * Deletes the journal article image from the database. Also notifies the appropriate model listeners.
113            *
114            * @param journalArticleImage the journal article image
115            * @return the journal article image that was removed
116            */
117            @Override
118            public com.liferay.portlet.journal.model.JournalArticleImage deleteJournalArticleImage(
119                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
120                    return _journalArticleImageLocalService.deleteJournalArticleImage(journalArticleImage);
121            }
122    
123            /**
124            * @throws PortalException
125            */
126            @Override
127            public com.liferay.portal.model.PersistedModel deletePersistedModel(
128                    com.liferay.portal.model.PersistedModel persistedModel)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return _journalArticleImageLocalService.deletePersistedModel(persistedModel);
131            }
132    
133            @Override
134            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
135                    return _journalArticleImageLocalService.dynamicQuery();
136            }
137    
138            /**
139            * Performs a dynamic query on the database and returns the matching rows.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the matching rows
143            */
144            @Override
145            public <T> java.util.List<T> dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
147                    return _journalArticleImageLocalService.dynamicQuery(dynamicQuery);
148            }
149    
150            /**
151            * Performs a dynamic query on the database and returns a range of the matching rows.
152            *
153            * <p>
154            * 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.journal.model.impl.JournalArticleImageModelImpl}. 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.
155            * </p>
156            *
157            * @param dynamicQuery the dynamic query
158            * @param start the lower bound of the range of model instances
159            * @param end the upper bound of the range of model instances (not inclusive)
160            * @return the range of matching rows
161            */
162            @Override
163            public <T> java.util.List<T> dynamicQuery(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
165                    int end) {
166                    return _journalArticleImageLocalService.dynamicQuery(dynamicQuery,
167                            start, end);
168            }
169    
170            /**
171            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
172            *
173            * <p>
174            * 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.journal.model.impl.JournalArticleImageModelImpl}. 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.
175            * </p>
176            *
177            * @param dynamicQuery the dynamic query
178            * @param start the lower bound of the range of model instances
179            * @param end the upper bound of the range of model instances (not inclusive)
180            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
181            * @return the ordered range of matching rows
182            */
183            @Override
184            public <T> java.util.List<T> dynamicQuery(
185                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
186                    int end,
187                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
188                    return _journalArticleImageLocalService.dynamicQuery(dynamicQuery,
189                            start, end, orderByComparator);
190            }
191    
192            /**
193            * Returns the number of rows matching the dynamic query.
194            *
195            * @param dynamicQuery the dynamic query
196            * @return the number of rows matching the dynamic query
197            */
198            @Override
199            public long dynamicQueryCount(
200                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
201                    return _journalArticleImageLocalService.dynamicQueryCount(dynamicQuery);
202            }
203    
204            /**
205            * Returns the number of rows matching the dynamic query.
206            *
207            * @param dynamicQuery the dynamic query
208            * @param projection the projection to apply to the query
209            * @return the number of rows matching the dynamic query
210            */
211            @Override
212            public long dynamicQueryCount(
213                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
214                    com.liferay.portal.kernel.dao.orm.Projection projection) {
215                    return _journalArticleImageLocalService.dynamicQueryCount(dynamicQuery,
216                            projection);
217            }
218    
219            @Override
220            public com.liferay.portlet.journal.model.JournalArticleImage fetchJournalArticleImage(
221                    long articleImageId) {
222                    return _journalArticleImageLocalService.fetchJournalArticleImage(articleImageId);
223            }
224    
225            @Override
226            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
227                    return _journalArticleImageLocalService.getActionableDynamicQuery();
228            }
229    
230            @Override
231            public com.liferay.portlet.journal.model.JournalArticleImage getArticleImage(
232                    long articleImageId)
233                    throws com.liferay.portal.kernel.exception.PortalException {
234                    return _journalArticleImageLocalService.getArticleImage(articleImageId);
235            }
236    
237            @Override
238            public long getArticleImageId(long groupId, java.lang.String articleId,
239                    double version, java.lang.String elInstanceId, java.lang.String elName,
240                    java.lang.String languageId) {
241                    return _journalArticleImageLocalService.getArticleImageId(groupId,
242                            articleId, version, elInstanceId, elName, languageId);
243            }
244    
245            @Override
246            public long getArticleImageId(long groupId, java.lang.String articleId,
247                    double version, java.lang.String elInstanceId, java.lang.String elName,
248                    java.lang.String languageId, boolean tempImage) {
249                    return _journalArticleImageLocalService.getArticleImageId(groupId,
250                            articleId, version, elInstanceId, elName, languageId, tempImage);
251            }
252    
253            @Override
254            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getArticleImages(
255                    long groupId) {
256                    return _journalArticleImageLocalService.getArticleImages(groupId);
257            }
258    
259            @Override
260            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getArticleImages(
261                    long groupId, java.lang.String articleId, double version) {
262                    return _journalArticleImageLocalService.getArticleImages(groupId,
263                            articleId, version);
264            }
265    
266            @Override
267            public int getArticleImagesCount(long groupId) {
268                    return _journalArticleImageLocalService.getArticleImagesCount(groupId);
269            }
270    
271            /**
272            * Returns the Spring bean ID for this bean.
273            *
274            * @return the Spring bean ID for this bean
275            */
276            @Override
277            public java.lang.String getBeanIdentifier() {
278                    return _journalArticleImageLocalService.getBeanIdentifier();
279            }
280    
281            /**
282            * Returns the journal article image with the primary key.
283            *
284            * @param articleImageId the primary key of the journal article image
285            * @return the journal article image
286            * @throws PortalException if a journal article image with the primary key could not be found
287            */
288            @Override
289            public com.liferay.portlet.journal.model.JournalArticleImage getJournalArticleImage(
290                    long articleImageId)
291                    throws com.liferay.portal.kernel.exception.PortalException {
292                    return _journalArticleImageLocalService.getJournalArticleImage(articleImageId);
293            }
294    
295            /**
296            * Returns a range of all the journal article images.
297            *
298            * <p>
299            * 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.journal.model.impl.JournalArticleImageModelImpl}. 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.
300            * </p>
301            *
302            * @param start the lower bound of the range of journal article images
303            * @param end the upper bound of the range of journal article images (not inclusive)
304            * @return the range of journal article images
305            */
306            @Override
307            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getJournalArticleImages(
308                    int start, int end) {
309                    return _journalArticleImageLocalService.getJournalArticleImages(start,
310                            end);
311            }
312    
313            /**
314            * Returns the number of journal article images.
315            *
316            * @return the number of journal article images
317            */
318            @Override
319            public int getJournalArticleImagesCount() {
320                    return _journalArticleImageLocalService.getJournalArticleImagesCount();
321            }
322    
323            @Override
324            public com.liferay.portal.model.PersistedModel getPersistedModel(
325                    java.io.Serializable primaryKeyObj)
326                    throws com.liferay.portal.kernel.exception.PortalException {
327                    return _journalArticleImageLocalService.getPersistedModel(primaryKeyObj);
328            }
329    
330            /**
331            * Sets the Spring bean ID for this bean.
332            *
333            * @param beanIdentifier the Spring bean ID for this bean
334            */
335            @Override
336            public void setBeanIdentifier(java.lang.String beanIdentifier) {
337                    _journalArticleImageLocalService.setBeanIdentifier(beanIdentifier);
338            }
339    
340            /**
341            * Updates the journal article image in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
342            *
343            * @param journalArticleImage the journal article image
344            * @return the journal article image that was updated
345            */
346            @Override
347            public com.liferay.portlet.journal.model.JournalArticleImage updateJournalArticleImage(
348                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
349                    return _journalArticleImageLocalService.updateJournalArticleImage(journalArticleImage);
350            }
351    
352            /**
353             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
354             */
355            @Deprecated
356            public JournalArticleImageLocalService getWrappedJournalArticleImageLocalService() {
357                    return _journalArticleImageLocalService;
358            }
359    
360            /**
361             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
362             */
363            @Deprecated
364            public void setWrappedJournalArticleImageLocalService(
365                    JournalArticleImageLocalService journalArticleImageLocalService) {
366                    _journalArticleImageLocalService = journalArticleImageLocalService;
367            }
368    
369            @Override
370            public JournalArticleImageLocalService getWrappedService() {
371                    return _journalArticleImageLocalService;
372            }
373    
374            @Override
375            public void setWrappedService(
376                    JournalArticleImageLocalService journalArticleImageLocalService) {
377                    _journalArticleImageLocalService = journalArticleImageLocalService;
378            }
379    
380            private JournalArticleImageLocalService _journalArticleImageLocalService;
381    }