1
22
23 package com.liferay.portlet.imagegallery.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface IGImageLocalService {
57 public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
58 com.liferay.portlet.imagegallery.model.IGImage igImage)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.imagegallery.model.IGImage createIGImage(
62 long imageId);
63
64 public void deleteIGImage(long imageId)
65 throws com.liferay.portal.SystemException,
66 com.liferay.portal.PortalException;
67
68 public void deleteIGImage(
69 com.liferay.portlet.imagegallery.model.IGImage igImage)
70 throws com.liferay.portal.SystemException;
71
72 public java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74 throws com.liferay.portal.SystemException;
75
76 public java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
82 long imageId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getIGImagesCount() throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
94 com.liferay.portlet.imagegallery.model.IGImage igImage)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.imagegallery.model.IGImage addImage(
98 long userId, long folderId, java.lang.String name,
99 java.lang.String description, java.io.File file,
100 java.lang.String contentType,
101 com.liferay.portal.service.ServiceContext serviceContext)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.imagegallery.model.IGImage addImage(
106 long userId, long folderId, java.lang.String name,
107 java.lang.String description, java.lang.String fileName, byte[] bytes,
108 java.lang.String contentType,
109 com.liferay.portal.service.ServiceContext serviceContext)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 public com.liferay.portlet.imagegallery.model.IGImage addImage(
114 long userId, long folderId, java.lang.String name,
115 java.lang.String description, java.lang.String fileName,
116 java.io.InputStream is, java.lang.String contentType,
117 com.liferay.portal.service.ServiceContext serviceContext)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException;
120
121 public com.liferay.portlet.imagegallery.model.IGImage addImage(
122 java.lang.String uuid, long userId, long folderId,
123 java.lang.String name, java.lang.String description, java.io.File file,
124 java.lang.String contentType,
125 com.liferay.portal.service.ServiceContext serviceContext)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException;
128
129 public com.liferay.portlet.imagegallery.model.IGImage addImage(
130 java.lang.String uuid, long userId, long folderId,
131 java.lang.String name, java.lang.String description,
132 java.lang.String fileName, byte[] bytes, java.lang.String contentType,
133 com.liferay.portal.service.ServiceContext serviceContext)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException;
136
137 public com.liferay.portlet.imagegallery.model.IGImage addImage(
138 java.lang.String uuid, long userId, long folderId,
139 java.lang.String name, java.lang.String description,
140 java.lang.String fileName, java.io.InputStream is,
141 java.lang.String contentType,
142 com.liferay.portal.service.ServiceContext serviceContext)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException;
145
146 public void addImageResources(long folderId, long imageId,
147 boolean addCommunityPermissions, boolean addGuestPermissions)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException;
150
151 public void addImageResources(
152 com.liferay.portlet.imagegallery.model.IGFolder folder,
153 com.liferay.portlet.imagegallery.model.IGImage image,
154 boolean addCommunityPermissions, boolean addGuestPermissions)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException;
157
158 public void addImageResources(long folderId, long imageId,
159 java.lang.String[] communityPermissions,
160 java.lang.String[] guestPermissions)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 public void addImageResources(
165 com.liferay.portlet.imagegallery.model.IGFolder folder,
166 com.liferay.portlet.imagegallery.model.IGImage image,
167 java.lang.String[] communityPermissions,
168 java.lang.String[] guestPermissions)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException;
171
172 public void deleteImage(long imageId)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException;
175
176 public void deleteImage(
177 com.liferay.portlet.imagegallery.model.IGImage image)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException;
180
181 public void deleteImages(long folderId)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public int getFoldersImagesCount(java.util.List<Long> folderIds)
187 throws com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
191 long groupId, int start, int end)
192 throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
196 long groupId, long userId, int start, int end)
197 throws com.liferay.portal.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public int getGroupImagesCount(long groupId)
201 throws com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public int getGroupImagesCount(long groupId, long userId)
205 throws com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
214 long custom1ImageId)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
220 long custom2ImageId)
221 throws com.liferay.portal.PortalException,
222 com.liferay.portal.SystemException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
226 long folderId, java.lang.String nameWithExtension)
227 throws com.liferay.portal.PortalException,
228 com.liferay.portal.SystemException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
232 long largeImageId)
233 throws com.liferay.portal.PortalException,
234 com.liferay.portal.SystemException;
235
236 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
238 long smallImageId)
239 throws com.liferay.portal.PortalException,
240 com.liferay.portal.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
244 java.lang.String uuid, long groupId)
245 throws com.liferay.portal.PortalException,
246 com.liferay.portal.SystemException;
247
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
250 long folderId) throws com.liferay.portal.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
254 long folderId, int start, int end)
255 throws com.liferay.portal.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
259 long folderId, int start, int end,
260 com.liferay.portal.kernel.util.OrderByComparator obc)
261 throws com.liferay.portal.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public int getImagesCount(long folderId)
265 throws com.liferay.portal.SystemException;
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
269 throws com.liferay.portal.SystemException;
270
271 public void reIndex(long imageId) throws com.liferay.portal.SystemException;
272
273 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
274 long userId, long imageId, long folderId, java.lang.String name,
275 java.lang.String description, byte[] bytes,
276 java.lang.String contentType,
277 com.liferay.portal.service.ServiceContext serviceContext)
278 throws com.liferay.portal.PortalException,
279 com.liferay.portal.SystemException;
280
281 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
282 long userId, long imageId, long folderId, java.lang.String name,
283 java.lang.String description, java.io.File file,
284 java.lang.String contentType,
285 com.liferay.portal.service.ServiceContext serviceContext)
286 throws com.liferay.portal.PortalException,
287 com.liferay.portal.SystemException;
288
289 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
290 long userId, long imageId, long folderId, java.lang.String name,
291 java.lang.String description, java.io.InputStream is,
292 java.lang.String contentType,
293 com.liferay.portal.service.ServiceContext serviceContext)
294 throws com.liferay.portal.PortalException,
295 com.liferay.portal.SystemException;
296
297 public void updateTagsAsset(long userId,
298 com.liferay.portlet.imagegallery.model.IGImage image,
299 java.lang.String[] tagsEntries)
300 throws com.liferay.portal.PortalException,
301 com.liferay.portal.SystemException;
302 }