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