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.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface IGImageLocalService {
54 public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
55 com.liferay.portlet.imagegallery.model.IGImage igImage)
56 throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.imagegallery.model.IGImage createIGImage(
59 long imageId);
60
61 public void deleteIGImage(long imageId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public void deleteIGImage(
66 com.liferay.portlet.imagegallery.model.IGImage igImage)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
79 long imageId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.PortalException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
85 int start, int end) throws com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public int getIGImagesCount() throws com.liferay.portal.SystemException;
89
90 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
91 com.liferay.portlet.imagegallery.model.IGImage igImage)
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 java.lang.String uuid, long userId, long folderId,
104 java.lang.String name, 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 long userId, long folderId, java.lang.String name,
112 java.lang.String description, java.io.File file,
113 java.lang.String contentType, java.lang.String[] tagsEntries,
114 java.lang.String[] communityPermissions,
115 java.lang.String[] guestPermissions)
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(long folderId, long imageId,
131 boolean addCommunityPermissions, boolean addGuestPermissions)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException;
134
135 public void addImageResources(
136 com.liferay.portlet.imagegallery.model.IGFolder folder,
137 com.liferay.portlet.imagegallery.model.IGImage image,
138 boolean addCommunityPermissions, boolean addGuestPermissions)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException;
141
142 public void addImageResources(long folderId, long imageId,
143 java.lang.String[] communityPermissions,
144 java.lang.String[] guestPermissions)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException;
147
148 public void addImageResources(
149 com.liferay.portlet.imagegallery.model.IGFolder folder,
150 com.liferay.portlet.imagegallery.model.IGImage image,
151 java.lang.String[] communityPermissions,
152 java.lang.String[] guestPermissions)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException;
155
156 public void deleteImage(long imageId)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public void deleteImage(
161 com.liferay.portlet.imagegallery.model.IGImage image)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException;
164
165 public void deleteImages(long folderId)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public int getFoldersImagesCount(java.util.List<Long> folderIds)
171 throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
175 long groupId, int start, int end)
176 throws com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
180 long groupId, long userId, int start, int end)
181 throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public int getGroupImagesCount(long groupId)
185 throws com.liferay.portal.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public int getGroupImagesCount(long groupId, long userId)
189 throws com.liferay.portal.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
198 long custom1ImageId)
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 getImageByCustom2ImageId(
204 long custom2ImageId)
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 getImageByFolderIdAndNameWithExtension(
210 long folderId, java.lang.String nameWithExtension)
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 getImageByLargeImageId(
216 long largeImageId)
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 getImageBySmallImageId(
222 long smallImageId)
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 getImageByUuidAndGroupId(
228 java.lang.String uuid, long groupId)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
234 long folderId) throws com.liferay.portal.SystemException;
235
236 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
238 long folderId, int start, int end)
239 throws com.liferay.portal.SystemException;
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
243 long folderId, int start, int end,
244 com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public int getImagesCount(long folderId)
249 throws com.liferay.portal.SystemException;
250
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
253 throws com.liferay.portal.SystemException;
254
255 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
256 long userId, long imageId, long folderId, java.lang.String name,
257 java.lang.String description, java.io.File file,
258 java.lang.String contentType, java.lang.String[] tagsEntries)
259 throws com.liferay.portal.PortalException,
260 com.liferay.portal.SystemException;
261
262 public void updateTagsAsset(long userId,
263 com.liferay.portlet.imagegallery.model.IGImage image,
264 java.lang.String[] tagsEntries)
265 throws com.liferay.portal.PortalException,
266 com.liferay.portal.SystemException;
267 }