001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            public ImageLocalServiceWrapper(ImageLocalService imageLocalService) {
028                    _imageLocalService = imageLocalService;
029            }
030    
031            /**
032            * Adds the image to the database. Also notifies the appropriate model listeners.
033            *
034            * @param image the image to add
035            * @return the image that was added
036            * @throws SystemException if a system exception occurred
037            */
038            public com.liferay.portal.model.Image addImage(
039                    com.liferay.portal.model.Image image)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _imageLocalService.addImage(image);
042            }
043    
044            /**
045            * Creates a new image with the primary key. Does not add the image to the database.
046            *
047            * @param imageId the primary key for the new image
048            * @return the new image
049            */
050            public com.liferay.portal.model.Image createImage(long imageId) {
051                    return _imageLocalService.createImage(imageId);
052            }
053    
054            /**
055            * Deletes the image with the primary key from the database. Also notifies the appropriate model listeners.
056            *
057            * @param imageId the primary key of the image to delete
058            * @throws PortalException if a image with the primary key could not be found
059            * @throws SystemException if a system exception occurred
060            */
061            public void deleteImage(long imageId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _imageLocalService.deleteImage(imageId);
065            }
066    
067            /**
068            * Deletes the image from the database. Also notifies the appropriate model listeners.
069            *
070            * @param image the image to delete
071            * @throws SystemException if a system exception occurred
072            */
073            public void deleteImage(com.liferay.portal.model.Image image)
074                    throws com.liferay.portal.kernel.exception.SystemException {
075                    _imageLocalService.deleteImage(image);
076            }
077    
078            /**
079            * Performs a dynamic query on the database and returns the matching rows.
080            *
081            * @param dynamicQuery the dynamic query to search with
082            * @return the matching rows
083            * @throws SystemException if a system exception occurred
084            */
085            @SuppressWarnings("rawtypes")
086            public java.util.List dynamicQuery(
087                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return _imageLocalService.dynamicQuery(dynamicQuery);
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns a range of the matching rows.
094            *
095            * <p>
096            * 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.
097            * </p>
098            *
099            * @param dynamicQuery the dynamic query to search with
100            * @param start the lower bound of the range of model instances to return
101            * @param end the upper bound of the range of model instances to return (not inclusive)
102            * @return the range of matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @SuppressWarnings("rawtypes")
106            public java.util.List dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
108                    int end) throws com.liferay.portal.kernel.exception.SystemException {
109                    return _imageLocalService.dynamicQuery(dynamicQuery, start, end);
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query to search with
120            * @param start the lower bound of the range of model instances to return
121            * @param end the upper bound of the range of model instances to return (not inclusive)
122            * @param orderByComparator the comparator to order the results by
123            * @return the ordered range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end,
130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return _imageLocalService.dynamicQuery(dynamicQuery, start, end,
133                            orderByComparator);
134            }
135    
136            /**
137            * Counts the number of rows that match the dynamic query.
138            *
139            * @param dynamicQuery the dynamic query to search with
140            * @return the number of rows that match the dynamic query
141            * @throws SystemException if a system exception occurred
142            */
143            public long dynamicQueryCount(
144                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _imageLocalService.dynamicQueryCount(dynamicQuery);
147            }
148    
149            /**
150            * Gets the image with the primary key.
151            *
152            * @param imageId the primary key of the image to get
153            * @return the image
154            * @throws PortalException if a image with the primary key could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public com.liferay.portal.model.Image getImage(long imageId)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _imageLocalService.getImage(imageId);
161            }
162    
163            /**
164            * Gets a range of all the images.
165            *
166            * <p>
167            * 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.
168            * </p>
169            *
170            * @param start the lower bound of the range of images to return
171            * @param end the upper bound of the range of images to return (not inclusive)
172            * @return the range of images
173            * @throws SystemException if a system exception occurred
174            */
175            public java.util.List<com.liferay.portal.model.Image> getImages(int start,
176                    int end) throws com.liferay.portal.kernel.exception.SystemException {
177                    return _imageLocalService.getImages(start, end);
178            }
179    
180            /**
181            * Gets the number of images.
182            *
183            * @return the number of images
184            * @throws SystemException if a system exception occurred
185            */
186            public int getImagesCount()
187                    throws com.liferay.portal.kernel.exception.SystemException {
188                    return _imageLocalService.getImagesCount();
189            }
190    
191            /**
192            * Updates the image in the database. Also notifies the appropriate model listeners.
193            *
194            * @param image the image to update
195            * @return the image that was updated
196            * @throws SystemException if a system exception occurred
197            */
198            public com.liferay.portal.model.Image updateImage(
199                    com.liferay.portal.model.Image image)
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _imageLocalService.updateImage(image);
202            }
203    
204            /**
205            * Updates the image in the database. Also notifies the appropriate model listeners.
206            *
207            * @param image the image to update
208            * @param merge whether to merge the image with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
209            * @return the image that was updated
210            * @throws SystemException if a system exception occurred
211            */
212            public com.liferay.portal.model.Image updateImage(
213                    com.liferay.portal.model.Image image, boolean merge)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _imageLocalService.updateImage(image, merge);
216            }
217    
218            public com.liferay.portal.model.Image getCompanyLogo(long imageId) {
219                    return _imageLocalService.getCompanyLogo(imageId);
220            }
221    
222            public com.liferay.portal.model.Image getDefaultCompanyLogo() {
223                    return _imageLocalService.getDefaultCompanyLogo();
224            }
225    
226            public com.liferay.portal.model.Image getDefaultOrganizationLogo() {
227                    return _imageLocalService.getDefaultOrganizationLogo();
228            }
229    
230            public com.liferay.portal.model.Image getDefaultSpacer() {
231                    return _imageLocalService.getDefaultSpacer();
232            }
233    
234            public com.liferay.portal.model.Image getDefaultUserFemalePortrait() {
235                    return _imageLocalService.getDefaultUserFemalePortrait();
236            }
237    
238            public com.liferay.portal.model.Image getDefaultUserMalePortrait() {
239                    return _imageLocalService.getDefaultUserMalePortrait();
240            }
241    
242            public com.liferay.portal.model.Image getImage(byte[] bytes)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException {
245                    return _imageLocalService.getImage(bytes);
246            }
247    
248            public com.liferay.portal.model.Image getImage(java.io.File file)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    return _imageLocalService.getImage(file);
252            }
253    
254            public com.liferay.portal.model.Image getImage(java.io.InputStream is)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    return _imageLocalService.getImage(is);
258            }
259    
260            public com.liferay.portal.model.Image getImageOrDefault(long imageId) {
261                    return _imageLocalService.getImageOrDefault(imageId);
262            }
263    
264            public java.util.List<com.liferay.portal.model.Image> getImages()
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    return _imageLocalService.getImages();
267            }
268    
269            public java.util.List<com.liferay.portal.model.Image> getImagesBySize(
270                    int size) throws com.liferay.portal.kernel.exception.SystemException {
271                    return _imageLocalService.getImagesBySize(size);
272            }
273    
274            public boolean isNullOrDefaultSpacer(byte[] bytes) {
275                    return _imageLocalService.isNullOrDefaultSpacer(bytes);
276            }
277    
278            public com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _imageLocalService.updateImage(imageId, bytes);
282            }
283    
284            public com.liferay.portal.model.Image updateImage(long imageId,
285                    java.io.File file)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    return _imageLocalService.updateImage(imageId, file);
289            }
290    
291            public com.liferay.portal.model.Image updateImage(long imageId,
292                    java.io.InputStream is)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    return _imageLocalService.updateImage(imageId, is);
296            }
297    
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                            com.liferay.portal.kernel.exception.SystemException {
302                    return _imageLocalService.updateImage(imageId, bytes, type, height,
303                            width, size);
304            }
305    
306            public ImageLocalService getWrappedImageLocalService() {
307                    return _imageLocalService;
308            }
309    
310            private ImageLocalService _imageLocalService;
311    }