1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
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  /**
24   * <a href="IGImageLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.imagegallery.service.impl.IGImageLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       IGImageLocalServiceUtil
45   * @generated
46   */
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      @SuppressWarnings("rawtypes")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      @SuppressWarnings("rawtypes")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException;
74  
75      @SuppressWarnings("rawtypes")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.SystemException;
81  
82      public int dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
88          long imageId)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException;
91  
92      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93      public com.liferay.portlet.imagegallery.model.IGImage getIGImageByUuidAndGroupId(
94          java.lang.String uuid, long groupId)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException;
97  
98      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
100         int start, int end) throws com.liferay.portal.SystemException;
101 
102     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103     public int getIGImagesCount() throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
106         com.liferay.portlet.imagegallery.model.IGImage igImage)
107         throws com.liferay.portal.SystemException;
108 
109     public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
110         com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
111         throws 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.io.File file,
116         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         long userId, long folderId, java.lang.String name,
123         java.lang.String description, java.lang.String fileName, byte[] bytes,
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         long userId, long folderId, java.lang.String name,
131         java.lang.String description, java.lang.String fileName,
132         java.io.InputStream is, 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, java.io.File file,
140         java.lang.String contentType,
141         com.liferay.portal.service.ServiceContext serviceContext)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException;
144 
145     public com.liferay.portlet.imagegallery.model.IGImage addImage(
146         java.lang.String uuid, long userId, long folderId,
147         java.lang.String name, java.lang.String description,
148         java.lang.String fileName, byte[] bytes, java.lang.String contentType,
149         com.liferay.portal.service.ServiceContext serviceContext)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public com.liferay.portlet.imagegallery.model.IGImage addImage(
154         java.lang.String uuid, long userId, long folderId,
155         java.lang.String name, java.lang.String description,
156         java.lang.String fileName, java.io.InputStream is,
157         java.lang.String contentType,
158         com.liferay.portal.service.ServiceContext serviceContext)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     public void addImageResources(
163         com.liferay.portlet.imagegallery.model.IGImage image,
164         boolean addCommunityPermissions, boolean addGuestPermissions)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException;
167 
168     public void addImageResources(
169         com.liferay.portlet.imagegallery.model.IGImage image,
170         java.lang.String[] communityPermissions,
171         java.lang.String[] guestPermissions)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException;
174 
175     public void addImageResources(long imageId,
176         boolean addCommunityPermissions, boolean addGuestPermissions)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     public void addImageResources(long imageId,
181         java.lang.String[] communityPermissions,
182         java.lang.String[] guestPermissions)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException;
185 
186     public void deleteImage(
187         com.liferay.portlet.imagegallery.model.IGImage image)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException;
190 
191     public void deleteImage(long imageId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException;
194 
195     public void deleteImages(long folderId)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public int getFoldersImagesCount(java.util.List<java.lang.Long> folderIds)
201         throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
205         long groupId, int start, int end)
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
210         long groupId, long userId, int start, int end)
211         throws com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public int getGroupImagesCount(long groupId)
215         throws com.liferay.portal.SystemException;
216 
217     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218     public int getGroupImagesCount(long groupId, long userId)
219         throws com.liferay.portal.SystemException;
220 
221     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222     public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
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 getImageByCustom1ImageId(
228         long custom1ImageId)
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 getImageByCustom2ImageId(
234         long custom2ImageId)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException;
237 
238     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239     public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
240         long folderId, java.lang.String nameWithExtension)
241         throws com.liferay.portal.PortalException,
242             com.liferay.portal.SystemException;
243 
244     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245     public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
246         long largeImageId)
247         throws com.liferay.portal.PortalException,
248             com.liferay.portal.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
252         long smallImageId)
253         throws com.liferay.portal.PortalException,
254             com.liferay.portal.SystemException;
255 
256     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257     public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
258         java.lang.String uuid, long groupId)
259         throws com.liferay.portal.PortalException,
260             com.liferay.portal.SystemException;
261 
262     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
264         long folderId) throws com.liferay.portal.SystemException;
265 
266     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
268         long folderId, int start, int end)
269         throws com.liferay.portal.SystemException;
270 
271     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
273         long folderId, int start, int end,
274         com.liferay.portal.kernel.util.OrderByComparator obc)
275         throws com.liferay.portal.SystemException;
276 
277     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278     public int getImagesCount(long folderId)
279         throws com.liferay.portal.SystemException;
280 
281     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
283         throws com.liferay.portal.SystemException;
284 
285     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286     public void reIndex(com.liferay.portlet.imagegallery.model.IGImage image)
287         throws com.liferay.portal.SystemException;
288 
289     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290     public void reIndex(long imageId) throws com.liferay.portal.SystemException;
291 
292     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
293         long userId, long imageId, long folderId, java.lang.String name,
294         java.lang.String description, byte[] bytes,
295         java.lang.String contentType,
296         com.liferay.portal.service.ServiceContext serviceContext)
297         throws com.liferay.portal.PortalException,
298             com.liferay.portal.SystemException;
299 
300     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
301         long userId, long imageId, long folderId, java.lang.String name,
302         java.lang.String description, java.io.File file,
303         java.lang.String contentType,
304         com.liferay.portal.service.ServiceContext serviceContext)
305         throws com.liferay.portal.PortalException,
306             com.liferay.portal.SystemException;
307 
308     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
309         long userId, long imageId, long folderId, java.lang.String name,
310         java.lang.String description, java.io.InputStream is,
311         java.lang.String contentType,
312         com.liferay.portal.service.ServiceContext serviceContext)
313         throws com.liferay.portal.PortalException,
314             com.liferay.portal.SystemException;
315 
316     public void updateSmallImage(long smallImageId, long largeImageId)
317         throws com.liferay.portal.PortalException,
318             com.liferay.portal.SystemException;
319 
320     /**
321     * @deprecated
322     */
323     public void updateTagsAsset(long userId,
324         com.liferay.portlet.imagegallery.model.IGImage image,
325         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
326         throws com.liferay.portal.PortalException,
327             com.liferay.portal.SystemException;
328 
329     public void updateTagsAsset(long userId,
330         com.liferay.portlet.imagegallery.model.IGImage image,
331         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries,
332         java.lang.String contentType)
333         throws com.liferay.portal.PortalException,
334             com.liferay.portal.SystemException;
335 }