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
238 public static java.lang.String getBeanIdentifier() {
239 return getService().getBeanIdentifier();
240 }
241
242
247 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
248 getService().setBeanIdentifier(beanIdentifier);
249 }
250
251 public static com.liferay.portal.model.Image getCompanyLogo(long imageId) {
252 return getService().getCompanyLogo(imageId);
253 }
254
255 public static com.liferay.portal.model.Image getDefaultCompanyLogo() {
256 return getService().getDefaultCompanyLogo();
257 }
258
259 public static com.liferay.portal.model.Image getDefaultOrganizationLogo() {
260 return getService().getDefaultOrganizationLogo();
261 }
262
263 public static com.liferay.portal.model.Image getDefaultSpacer() {
264 return getService().getDefaultSpacer();
265 }
266
267 public static com.liferay.portal.model.Image getDefaultUserFemalePortrait() {
268 return getService().getDefaultUserFemalePortrait();
269 }
270
271 public static com.liferay.portal.model.Image getDefaultUserMalePortrait() {
272 return getService().getDefaultUserMalePortrait();
273 }
274
275 public static com.liferay.portal.model.Image getImage(byte[] bytes)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService().getImage(bytes);
279 }
280
281 public static com.liferay.portal.model.Image getImage(java.io.File file)
282 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException {
284 return getService().getImage(file);
285 }
286
287 public static com.liferay.portal.model.Image getImage(
288 java.io.InputStream is)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException {
291 return getService().getImage(is);
292 }
293
294 public static com.liferay.portal.model.Image getImage(
295 java.io.InputStream is, boolean cleanUpStream)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 return getService().getImage(is, cleanUpStream);
299 }
300
301 public static com.liferay.portal.model.Image getImageOrDefault(long imageId) {
302 return getService().getImageOrDefault(imageId);
303 }
304
305 public static java.util.List<com.liferay.portal.model.Image> getImages()
306 throws com.liferay.portal.kernel.exception.SystemException {
307 return getService().getImages();
308 }
309
310 public static java.util.List<com.liferay.portal.model.Image> getImagesBySize(
311 int size) throws com.liferay.portal.kernel.exception.SystemException {
312 return getService().getImagesBySize(size);
313 }
314
315 public static boolean isNullOrDefaultSpacer(byte[] bytes) {
316 return getService().isNullOrDefaultSpacer(bytes);
317 }
318
319 public static com.liferay.portal.model.Image updateImage(long imageId,
320 byte[] bytes)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException {
323 return getService().updateImage(imageId, bytes);
324 }
325
326 public static com.liferay.portal.model.Image updateImage(long imageId,
327 byte[] bytes, java.lang.String type, int height, int width, int size)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 return getService()
331 .updateImage(imageId, bytes, type, height, width, size);
332 }
333
334 public static com.liferay.portal.model.Image updateImage(long imageId,
335 java.io.File file)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException {
338 return getService().updateImage(imageId, file);
339 }
340
341 public static com.liferay.portal.model.Image updateImage(long imageId,
342 java.io.InputStream is)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException {
345 return getService().updateImage(imageId, is);
346 }
347
348 public static com.liferay.portal.model.Image updateImage(long imageId,
349 java.io.InputStream is, boolean cleanUpStream)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException {
352 return getService().updateImage(imageId, is, cleanUpStream);
353 }
354
355 public static ImageLocalService getService() {
356 if (_service == null) {
357 _service = (ImageLocalService)PortalBeanLocatorUtil.locate(ImageLocalService.class.getName());
358
359 ReferenceRegistry.registerReference(ImageLocalServiceUtil.class,
360 "_service");
361 }
362
363 return _service;
364 }
365
366
369 public void setService(ImageLocalService service) {
370 }
371
372 private static ImageLocalService _service;
373 }