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.journal.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link JournalArticleImageLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       JournalArticleImageLocalService
026     * @generated
027     */
028    public class JournalArticleImageLocalServiceWrapper
029            implements JournalArticleImageLocalService,
030                    ServiceWrapper<JournalArticleImageLocalService> {
031            public JournalArticleImageLocalServiceWrapper(
032                    JournalArticleImageLocalService journalArticleImageLocalService) {
033                    _journalArticleImageLocalService = journalArticleImageLocalService;
034            }
035    
036            /**
037            * Adds the journal article image to the database. Also notifies the appropriate model listeners.
038            *
039            * @param journalArticleImage the journal article image
040            * @return the journal article image that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.journal.model.JournalArticleImage addJournalArticleImage(
044                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _journalArticleImageLocalService.addJournalArticleImage(journalArticleImage);
047            }
048    
049            /**
050            * Creates a new journal article image with the primary key. Does not add the journal article image to the database.
051            *
052            * @param articleImageId the primary key for the new journal article image
053            * @return the new journal article image
054            */
055            public com.liferay.portlet.journal.model.JournalArticleImage createJournalArticleImage(
056                    long articleImageId) {
057                    return _journalArticleImageLocalService.createJournalArticleImage(articleImageId);
058            }
059    
060            /**
061            * Deletes the journal article image with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param articleImageId the primary key of the journal article image
064            * @throws PortalException if a journal article image with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteJournalArticleImage(long articleImageId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _journalArticleImageLocalService.deleteJournalArticleImage(articleImageId);
071            }
072    
073            /**
074            * Deletes the journal article image from the database. Also notifies the appropriate model listeners.
075            *
076            * @param journalArticleImage the journal article image
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteJournalArticleImage(
080                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _journalArticleImageLocalService.deleteJournalArticleImage(journalArticleImage);
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 _journalArticleImageLocalService.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 _journalArticleImageLocalService.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 _journalArticleImageLocalService.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 _journalArticleImageLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portlet.journal.model.JournalArticleImage fetchJournalArticleImage(
158                    long articleImageId)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _journalArticleImageLocalService.fetchJournalArticleImage(articleImageId);
161            }
162    
163            /**
164            * Returns the journal article image with the primary key.
165            *
166            * @param articleImageId the primary key of the journal article image
167            * @return the journal article image
168            * @throws PortalException if a journal article image with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portlet.journal.model.JournalArticleImage getJournalArticleImage(
172                    long articleImageId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _journalArticleImageLocalService.getJournalArticleImage(articleImageId);
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 _journalArticleImageLocalService.getPersistedModel(primaryKeyObj);
183            }
184    
185            /**
186            * Returns a range of all the journal article images.
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 journal article images
193            * @param end the upper bound of the range of journal article images (not inclusive)
194            * @return the range of journal article images
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getJournalArticleImages(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _journalArticleImageLocalService.getJournalArticleImages(start,
201                            end);
202            }
203    
204            /**
205            * Returns the number of journal article images.
206            *
207            * @return the number of journal article images
208            * @throws SystemException if a system exception occurred
209            */
210            public int getJournalArticleImagesCount()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return _journalArticleImageLocalService.getJournalArticleImagesCount();
213            }
214    
215            /**
216            * Updates the journal article image in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
217            *
218            * @param journalArticleImage the journal article image
219            * @return the journal article image that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.journal.model.JournalArticleImage updateJournalArticleImage(
223                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _journalArticleImageLocalService.updateJournalArticleImage(journalArticleImage);
226            }
227    
228            /**
229            * Updates the journal article image in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param journalArticleImage the journal article image
232            * @param merge whether to merge the journal article image 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 journal article image that was updated
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.journal.model.JournalArticleImage updateJournalArticleImage(
237                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
238                    boolean merge)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _journalArticleImageLocalService.updateJournalArticleImage(journalArticleImage,
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 _journalArticleImageLocalService.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                    _journalArticleImageLocalService.setBeanIdentifier(beanIdentifier);
260            }
261    
262            public void addArticleImageId(long articleImageId, long groupId,
263                    java.lang.String articleId, double version,
264                    java.lang.String elInstanceId, java.lang.String elName,
265                    java.lang.String languageId)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    _journalArticleImageLocalService.addArticleImageId(articleImageId,
269                            groupId, articleId, version, elInstanceId, elName, languageId);
270            }
271    
272            public void deleteArticleImage(
273                    com.liferay.portlet.journal.model.JournalArticleImage articleImage)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    _journalArticleImageLocalService.deleteArticleImage(articleImage);
276            }
277    
278            public void deleteArticleImage(long articleImageId)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    _journalArticleImageLocalService.deleteArticleImage(articleImageId);
281            }
282    
283            public void deleteArticleImage(long groupId, java.lang.String articleId,
284                    double version, java.lang.String elInstanceId, java.lang.String elName,
285                    java.lang.String languageId)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    _journalArticleImageLocalService.deleteArticleImage(groupId, articleId,
288                            version, elInstanceId, elName, languageId);
289            }
290    
291            public void deleteImages(long groupId, java.lang.String articleId,
292                    double version)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    _journalArticleImageLocalService.deleteImages(groupId, articleId,
295                            version);
296            }
297    
298            public com.liferay.portlet.journal.model.JournalArticleImage getArticleImage(
299                    long articleImageId)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    return _journalArticleImageLocalService.getArticleImage(articleImageId);
303            }
304    
305            public long getArticleImageId(long groupId, java.lang.String articleId,
306                    double version, java.lang.String elInstanceId, java.lang.String elName,
307                    java.lang.String languageId)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return _journalArticleImageLocalService.getArticleImageId(groupId,
310                            articleId, version, elInstanceId, elName, languageId);
311            }
312    
313            public long getArticleImageId(long groupId, java.lang.String articleId,
314                    double version, java.lang.String elInstanceId, java.lang.String elName,
315                    java.lang.String languageId, boolean tempImage)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return _journalArticleImageLocalService.getArticleImageId(groupId,
318                            articleId, version, elInstanceId, elName, languageId, tempImage);
319            }
320    
321            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getArticleImages(
322                    long groupId)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _journalArticleImageLocalService.getArticleImages(groupId);
325            }
326    
327            /**
328             * @deprecated Renamed to {@link #getWrappedService}
329             */
330            public JournalArticleImageLocalService getWrappedJournalArticleImageLocalService() {
331                    return _journalArticleImageLocalService;
332            }
333    
334            /**
335             * @deprecated Renamed to {@link #setWrappedService}
336             */
337            public void setWrappedJournalArticleImageLocalService(
338                    JournalArticleImageLocalService journalArticleImageLocalService) {
339                    _journalArticleImageLocalService = journalArticleImageLocalService;
340            }
341    
342            public JournalArticleImageLocalService getWrappedService() {
343                    return _journalArticleImageLocalService;
344            }
345    
346            public void setWrappedService(
347                    JournalArticleImageLocalService journalArticleImageLocalService) {
348                    _journalArticleImageLocalService = journalArticleImageLocalService;
349            }
350    
351            private JournalArticleImageLocalService _journalArticleImageLocalService;
352    }