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            @Override
186            public com.liferay.portal.model.Image getCompanyLogo(long imageId) {
187                    return _imageLocalService.getCompanyLogo(imageId);
188            }
189    
190            /**
191            * Returns the image with the primary key.
192            *
193            * @param imageId the primary key of the image
194            * @return the image
195            * @throws PortalException if a image with the primary key could not be found
196            */
197            @Override
198            public com.liferay.portal.model.Image getImage(long imageId)
199                    throws com.liferay.portal.kernel.exception.PortalException {
200                    return _imageLocalService.getImage(imageId);
201            }
202    
203            @Override
204            public com.liferay.portal.model.Image getImageOrDefault(long imageId) {
205                    return _imageLocalService.getImageOrDefault(imageId);
206            }
207    
208            @Override
209            public java.util.List<com.liferay.portal.model.Image> getImages() {
210                    return _imageLocalService.getImages();
211            }
212    
213            /**
214            * Returns a range of all the images.
215            *
216            * <p>
217            * 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.
218            * </p>
219            *
220            * @param start the lower bound of the range of images
221            * @param end the upper bound of the range of images (not inclusive)
222            * @return the range of images
223            */
224            @Override
225            public java.util.List<com.liferay.portal.model.Image> getImages(int start,
226                    int end) {
227                    return _imageLocalService.getImages(start, end);
228            }
229    
230            @Override
231            public java.util.List<com.liferay.portal.model.Image> getImagesBySize(
232                    int size) {
233                    return _imageLocalService.getImagesBySize(size);
234            }
235    
236            /**
237            * Returns the number of images.
238            *
239            * @return the number of images
240            */
241            @Override
242            public int getImagesCount() {
243                    return _imageLocalService.getImagesCount();
244            }
245    
246            /**
247            * Returns the OSGi service identifier.
248            *
249            * @return the OSGi service identifier
250            */
251            @Override
252            public java.lang.String getOSGiServiceIdentifier() {
253                    return _imageLocalService.getOSGiServiceIdentifier();
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            * Updates the image in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
271            *
272            * @param image the image
273            * @return the image that was updated
274            */
275            @Override
276            public com.liferay.portal.model.Image updateImage(
277                    com.liferay.portal.model.Image image) {
278                    return _imageLocalService.updateImage(image);
279            }
280    
281            @Override
282            public com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes)
283                    throws com.liferay.portal.kernel.exception.PortalException {
284                    return _imageLocalService.updateImage(imageId, bytes);
285            }
286    
287            @Override
288            public com.liferay.portal.model.Image updateImage(long imageId,
289                    byte[] bytes, java.lang.String type, int height, int width, int size)
290                    throws com.liferay.portal.kernel.exception.PortalException {
291                    return _imageLocalService.updateImage(imageId, bytes, type, height,
292                            width, size);
293            }
294    
295            @Override
296            public com.liferay.portal.model.Image updateImage(long imageId,
297                    java.io.File file)
298                    throws com.liferay.portal.kernel.exception.PortalException {
299                    return _imageLocalService.updateImage(imageId, file);
300            }
301    
302            @Override
303            public com.liferay.portal.model.Image updateImage(long imageId,
304                    java.io.InputStream is)
305                    throws com.liferay.portal.kernel.exception.PortalException {
306                    return _imageLocalService.updateImage(imageId, is);
307            }
308    
309            @Override
310            public com.liferay.portal.model.Image updateImage(long imageId,
311                    java.io.InputStream is, boolean cleanUpStream)
312                    throws com.liferay.portal.kernel.exception.PortalException {
313                    return _imageLocalService.updateImage(imageId, is, cleanUpStream);
314            }
315    
316            /**
317             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
318             */
319            @Deprecated
320            public ImageLocalService getWrappedImageLocalService() {
321                    return _imageLocalService;
322            }
323    
324            /**
325             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
326             */
327            @Deprecated
328            public void setWrappedImageLocalService(ImageLocalService imageLocalService) {
329                    _imageLocalService = imageLocalService;
330            }
331    
332            @Override
333            public ImageLocalService getWrappedService() {
334                    return _imageLocalService;
335            }
336    
337            @Override
338            public void setWrappedService(ImageLocalService imageLocalService) {
339                    _imageLocalService = imageLocalService;
340            }
341    
342            private ImageLocalService _imageLocalService;
343    }