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