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