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