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