001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class ImageLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.Image addImage(
048 com.liferay.portal.model.Image image)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addImage(image);
051 }
052
053
059 public static com.liferay.portal.model.Image createImage(long imageId) {
060 return getService().createImage(imageId);
061 }
062
063
071 public static com.liferay.portal.model.Image deleteImage(long imageId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException {
074 return getService().deleteImage(imageId);
075 }
076
077
084 public static com.liferay.portal.model.Image deleteImage(
085 com.liferay.portal.model.Image image)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 return getService().deleteImage(image);
088 }
089
090 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
091 return getService().dynamicQuery();
092 }
093
094
101 @SuppressWarnings("rawtypes")
102 public static java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().dynamicQuery(dynamicQuery);
106 }
107
108
121 @SuppressWarnings("rawtypes")
122 public static 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 getService().dynamicQuery(dynamicQuery, start, end);
126 }
127
128
142 @SuppressWarnings("rawtypes")
143 public static java.util.List dynamicQuery(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145 int end,
146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getService()
149 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
150 }
151
152
159 public static long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161 throws com.liferay.portal.kernel.exception.SystemException {
162 return getService().dynamicQueryCount(dynamicQuery);
163 }
164
165 public static com.liferay.portal.model.Image fetchImage(long imageId)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getService().fetchImage(imageId);
168 }
169
170
178 public static com.liferay.portal.model.Image getImage(long imageId)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService().getImage(imageId);
182 }
183
184 public static com.liferay.portal.model.PersistedModel getPersistedModel(
185 java.io.Serializable primaryKeyObj)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService().getPersistedModel(primaryKeyObj);
189 }
190
191
203 public static java.util.List<com.liferay.portal.model.Image> getImages(
204 int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getService().getImages(start, end);
207 }
208
209
215 public static int getImagesCount()
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().getImagesCount();
218 }
219
220
227 public static com.liferay.portal.model.Image updateImage(
228 com.liferay.portal.model.Image image)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().updateImage(image);
231 }
232
233
241 public static com.liferay.portal.model.Image updateImage(
242 com.liferay.portal.model.Image image, boolean merge)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getService().updateImage(image, merge);
245 }
246
247
252 public static java.lang.String getBeanIdentifier() {
253 return getService().getBeanIdentifier();
254 }
255
256
261 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
262 getService().setBeanIdentifier(beanIdentifier);
263 }
264
265 public static com.liferay.portal.model.Image getCompanyLogo(long imageId) {
266 return getService().getCompanyLogo(imageId);
267 }
268
269 public static com.liferay.portal.model.Image getDefaultCompanyLogo() {
270 return getService().getDefaultCompanyLogo();
271 }
272
273 public static com.liferay.portal.model.Image getDefaultOrganizationLogo() {
274 return getService().getDefaultOrganizationLogo();
275 }
276
277 public static com.liferay.portal.model.Image getDefaultSpacer() {
278 return getService().getDefaultSpacer();
279 }
280
281 public static com.liferay.portal.model.Image getDefaultUserFemalePortrait() {
282 return getService().getDefaultUserFemalePortrait();
283 }
284
285 public static com.liferay.portal.model.Image getDefaultUserMalePortrait() {
286 return getService().getDefaultUserMalePortrait();
287 }
288
289 public static com.liferay.portal.model.Image getImage(byte[] bytes)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException {
292 return getService().getImage(bytes);
293 }
294
295 public static com.liferay.portal.model.Image getImage(java.io.File file)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 return getService().getImage(file);
299 }
300
301 public static com.liferay.portal.model.Image getImage(
302 java.io.InputStream is)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException {
305 return getService().getImage(is);
306 }
307
308 public static com.liferay.portal.model.Image getImage(
309 java.io.InputStream is, boolean cleanUpStream)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException {
312 return getService().getImage(is, cleanUpStream);
313 }
314
315 public static com.liferay.portal.model.Image getImageOrDefault(long imageId) {
316 return getService().getImageOrDefault(imageId);
317 }
318
319 public static java.util.List<com.liferay.portal.model.Image> getImages()
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getService().getImages();
322 }
323
324 public static java.util.List<com.liferay.portal.model.Image> getImagesBySize(
325 int size) throws com.liferay.portal.kernel.exception.SystemException {
326 return getService().getImagesBySize(size);
327 }
328
329 public static boolean isNullOrDefaultSpacer(byte[] bytes) {
330 return getService().isNullOrDefaultSpacer(bytes);
331 }
332
333 public static com.liferay.portal.model.Image updateImage(long imageId,
334 byte[] bytes)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 return getService().updateImage(imageId, bytes);
338 }
339
340 public static com.liferay.portal.model.Image updateImage(long imageId,
341 byte[] bytes, java.lang.String type, int height, int width, int size)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException {
344 return getService()
345 .updateImage(imageId, bytes, type, height, width, size);
346 }
347
348 public static com.liferay.portal.model.Image updateImage(long imageId,
349 java.io.File file)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException {
352 return getService().updateImage(imageId, file);
353 }
354
355 public static com.liferay.portal.model.Image updateImage(long imageId,
356 java.io.InputStream is)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException {
359 return getService().updateImage(imageId, is);
360 }
361
362 public static com.liferay.portal.model.Image updateImage(long imageId,
363 java.io.InputStream is, boolean cleanUpStream)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException {
366 return getService().updateImage(imageId, is, cleanUpStream);
367 }
368
369 public static ImageLocalService getService() {
370 if (_service == null) {
371 _service = (ImageLocalService)PortalBeanLocatorUtil.locate(ImageLocalService.class.getName());
372
373 ReferenceRegistry.registerReference(ImageLocalServiceUtil.class,
374 "_service");
375 }
376
377 return _service;
378 }
379
380
383 public void setService(ImageLocalService service) {
384 }
385
386 private static ImageLocalService _service;
387 }