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