1
22
23 package com.liferay.portlet.imagegallery.service;
24
25
26
47 public class IGImageServiceUtil {
48 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
49 long folderId, java.lang.String name, java.lang.String description,
50 java.io.File file, java.lang.String contentType,
51 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
52 boolean addGuestPermissions)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException, java.rmi.RemoteException {
55 return _service.addImage(folderId, name, description, file,
56 contentType, tagsEntries, addCommunityPermissions,
57 addGuestPermissions);
58 }
59
60 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
61 long folderId, java.lang.String name, java.lang.String description,
62 java.io.File file, java.lang.String contentType,
63 java.lang.String[] tagsEntries,
64 java.lang.String[] communityPermissions,
65 java.lang.String[] guestPermissions)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException, java.rmi.RemoteException {
68 return _service.addImage(folderId, name, description, file,
69 contentType, tagsEntries, communityPermissions, guestPermissions);
70 }
71
72 public static void deleteImage(long imageId)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException, java.rmi.RemoteException {
75 _service.deleteImage(imageId);
76 }
77
78 public static void deleteImageByFolderIdAndNameWithExtension(
79 long folderId, java.lang.String nameWithExtension)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException, java.rmi.RemoteException {
82 _service.deleteImageByFolderIdAndNameWithExtension(folderId,
83 nameWithExtension);
84 }
85
86 public static com.liferay.portlet.imagegallery.model.IGImage getImage(
87 long imageId)
88 throws com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException, java.rmi.RemoteException {
90 return _service.getImage(imageId);
91 }
92
93 public static com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
94 long folderId, java.lang.String nameWithExtension)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException, java.rmi.RemoteException {
97 return _service.getImageByFolderIdAndNameWithExtension(folderId,
98 nameWithExtension);
99 }
100
101 public static com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
102 long largeImageId)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException, java.rmi.RemoteException {
105 return _service.getImageByLargeImageId(largeImageId);
106 }
107
108 public static com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
109 long smallImageId)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException, java.rmi.RemoteException {
112 return _service.getImageBySmallImageId(smallImageId);
113 }
114
115 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
116 long folderId)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException, java.rmi.RemoteException {
119 return _service.getImages(folderId);
120 }
121
122 public static com.liferay.portlet.imagegallery.model.IGImage updateImage(
123 long imageId, long folderId, java.lang.String name,
124 java.lang.String description, java.io.File file,
125 java.lang.String contentType, java.lang.String[] tagsEntries)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException, java.rmi.RemoteException {
128 return _service.updateImage(imageId, folderId, name, description, file,
129 contentType, tagsEntries);
130 }
131
132 public static IGImageService getService() {
133 return _service;
134 }
135
136 public void setService(IGImageService service) {
137 _service = service;
138 }
139
140 private static IGImageService _service;
141 }