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            @Override
247            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
248                    return _imageLocalService.getIndexableActionableDynamicQuery();
249            }
250    
251            /**
252            * Returns the OSGi service identifier.
253            *
254            * @return the OSGi service identifier
255            */
256            @Override
257            public java.lang.String getOSGiServiceIdentifier() {
258                    return _imageLocalService.getOSGiServiceIdentifier();
259            }
260    
261            @Override
262            public com.liferay.portal.model.PersistedModel getPersistedModel(
263                    java.io.Serializable primaryKeyObj)
264                    throws com.liferay.portal.kernel.exception.PortalException {
265                    return _imageLocalService.getPersistedModel(primaryKeyObj);
266            }
267    
268            @Override
269            public com.liferay.portal.model.Image moveImage(long imageId, byte[] bytes)
270                    throws com.liferay.portal.kernel.exception.PortalException {
271                    return _imageLocalService.moveImage(imageId, bytes);
272            }
273    
274            /**
275            * Updates the image in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
276            *
277            * @param image the image
278            * @return the image that was updated
279            */
280            @Override
281            public com.liferay.portal.model.Image updateImage(
282                    com.liferay.portal.model.Image image) {
283                    return _imageLocalService.updateImage(image);
284            }
285    
286            @Override
287            public com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes)
288                    throws com.liferay.portal.kernel.exception.PortalException {
289                    return _imageLocalService.updateImage(imageId, bytes);
290            }
291    
292            @Override
293            public com.liferay.portal.model.Image updateImage(long imageId,
294                    byte[] bytes, java.lang.String type, int height, int width, int size)
295                    throws com.liferay.portal.kernel.exception.PortalException {
296                    return _imageLocalService.updateImage(imageId, bytes, type, height,
297                            width, size);
298            }
299    
300            @Override
301            public com.liferay.portal.model.Image updateImage(long imageId,
302                    java.io.File file)
303                    throws com.liferay.portal.kernel.exception.PortalException {
304                    return _imageLocalService.updateImage(imageId, file);
305            }
306    
307            @Override
308            public com.liferay.portal.model.Image updateImage(long imageId,
309                    java.io.InputStream is)
310                    throws com.liferay.portal.kernel.exception.PortalException {
311                    return _imageLocalService.updateImage(imageId, is);
312            }
313    
314            @Override
315            public com.liferay.portal.model.Image updateImage(long imageId,
316                    java.io.InputStream is, boolean cleanUpStream)
317                    throws com.liferay.portal.kernel.exception.PortalException {
318                    return _imageLocalService.updateImage(imageId, is, cleanUpStream);
319            }
320    
321            @Override
322            public ImageLocalService getWrappedService() {
323                    return _imageLocalService;
324            }
325    
326            @Override
327            public void setWrappedService(ImageLocalService imageLocalService) {
328                    _imageLocalService = imageLocalService;
329            }
330    
331            private ImageLocalService _imageLocalService;
332    }