1
22
23 package com.liferay.portlet.imagegallery.service;
24
25
51 public class IGImageServiceUtil {
52 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
53 long folderId, java.lang.String description, java.io.File file,
54 java.lang.String contentType, java.lang.String[] tagsEntries,
55 boolean addCommunityPermissions, boolean addGuestPermissions)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException, java.rmi.RemoteException {
58 IGImageService igImageService = IGImageServiceFactory.getService();
59
60 return igImageService.addImage(folderId, description, file,
61 contentType, tagsEntries, addCommunityPermissions,
62 addGuestPermissions);
63 }
64
65 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
66 long folderId, java.lang.String description, java.io.File file,
67 java.lang.String contentType, java.lang.String[] tagsEntries,
68 java.lang.String[] communityPermissions,
69 java.lang.String[] guestPermissions)
70 throws com.liferay.portal.PortalException,
71 com.liferay.portal.SystemException, java.rmi.RemoteException {
72 IGImageService igImageService = IGImageServiceFactory.getService();
73
74 return igImageService.addImage(folderId, description, file,
75 contentType, tagsEntries, communityPermissions, guestPermissions);
76 }
77
78 public static void deleteImage(long imageId)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException, java.rmi.RemoteException {
81 IGImageService igImageService = IGImageServiceFactory.getService();
82 igImageService.deleteImage(imageId);
83 }
84
85 public static com.liferay.portlet.imagegallery.model.IGImage getImage(
86 long imageId)
87 throws com.liferay.portal.PortalException,
88 com.liferay.portal.SystemException, java.rmi.RemoteException {
89 IGImageService igImageService = IGImageServiceFactory.getService();
90
91 return igImageService.getImage(imageId);
92 }
93
94 public static com.liferay.portlet.imagegallery.model.IGImage updateImage(
95 long imageId, long folderId, java.lang.String description,
96 java.io.File file, java.lang.String contentType,
97 java.lang.String[] tagsEntries)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException, java.rmi.RemoteException {
100 IGImageService igImageService = IGImageServiceFactory.getService();
101
102 return igImageService.updateImage(imageId, folderId, description, file,
103 contentType, tagsEntries);
104 }
105 }