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