1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.imagegallery.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.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.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteIGImage(
62          com.liferay.portlet.imagegallery.model.IGImage igImage)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      @SuppressWarnings("unchecked")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      @SuppressWarnings("unchecked")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException;
74  
75      @SuppressWarnings("unchecked")
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.kernel.exception.SystemException;
81  
82      public long dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
90              com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.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)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104     public int getIGImagesCount()
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
108         com.liferay.portlet.imagegallery.model.IGImage igImage)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
112         com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public com.liferay.portlet.imagegallery.model.IGImage addImage(
116         java.lang.String uuid, long userId, long groupId, long folderId,
117         java.lang.String name, java.lang.String description, java.io.File file,
118         java.lang.String contentType,
119         com.liferay.portal.service.ServiceContext serviceContext)
120         throws com.liferay.portal.kernel.exception.PortalException,
121             com.liferay.portal.kernel.exception.SystemException;
122 
123     public com.liferay.portlet.imagegallery.model.IGImage addImage(
124         java.lang.String uuid, long userId, long groupId, long folderId,
125         java.lang.String name, java.lang.String description,
126         java.lang.String fileName, byte[] bytes, java.lang.String contentType,
127         com.liferay.portal.service.ServiceContext serviceContext)
128         throws com.liferay.portal.kernel.exception.PortalException,
129             com.liferay.portal.kernel.exception.SystemException;
130 
131     public com.liferay.portlet.imagegallery.model.IGImage addImage(
132         java.lang.String uuid, long userId, long groupId, long folderId,
133         java.lang.String name, java.lang.String description,
134         java.lang.String fileName, java.io.InputStream is,
135         java.lang.String contentType,
136         com.liferay.portal.service.ServiceContext serviceContext)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException;
139 
140     public void addImageResources(
141         com.liferay.portlet.imagegallery.model.IGImage image,
142         boolean addCommunityPermissions, boolean addGuestPermissions)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException;
145 
146     public void addImageResources(
147         com.liferay.portlet.imagegallery.model.IGImage image,
148         java.lang.String[] communityPermissions,
149         java.lang.String[] guestPermissions)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException;
152 
153     public void addImageResources(long imageId,
154         boolean addCommunityPermissions, boolean addGuestPermissions)
155         throws com.liferay.portal.kernel.exception.PortalException,
156             com.liferay.portal.kernel.exception.SystemException;
157 
158     public void addImageResources(long imageId,
159         java.lang.String[] communityPermissions,
160         java.lang.String[] guestPermissions)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException;
163 
164     public void deleteImage(
165         com.liferay.portlet.imagegallery.model.IGImage image)
166         throws com.liferay.portal.kernel.exception.PortalException,
167             com.liferay.portal.kernel.exception.SystemException;
168 
169     public void deleteImage(long imageId)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException;
172 
173     public void deleteImages(long groupId, long folderId)
174         throws com.liferay.portal.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public int getFoldersImagesCount(long groupId,
179         java.util.List<java.lang.Long> folderIds)
180         throws com.liferay.portal.kernel.exception.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
184         long groupId, int start, int end)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
189         long groupId, long userId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public int getGroupImagesCount(long groupId)
194         throws com.liferay.portal.kernel.exception.SystemException;
195 
196     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197     public int getGroupImagesCount(long groupId, long userId)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
202         throws com.liferay.portal.kernel.exception.PortalException,
203             com.liferay.portal.kernel.exception.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
207         long custom1ImageId)
208         throws com.liferay.portal.kernel.exception.PortalException,
209             com.liferay.portal.kernel.exception.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
213         long custom2ImageId)
214         throws com.liferay.portal.kernel.exception.PortalException,
215             com.liferay.portal.kernel.exception.SystemException;
216 
217     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218     public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
219         long groupId, long folderId, java.lang.String nameWithExtension)
220         throws com.liferay.portal.kernel.exception.PortalException,
221             com.liferay.portal.kernel.exception.SystemException;
222 
223     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
225         long largeImageId)
226         throws com.liferay.portal.kernel.exception.PortalException,
227             com.liferay.portal.kernel.exception.SystemException;
228 
229     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230     public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
231         long smallImageId)
232         throws com.liferay.portal.kernel.exception.PortalException,
233             com.liferay.portal.kernel.exception.SystemException;
234 
235     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236     public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
237         java.lang.String uuid, long groupId)
238         throws com.liferay.portal.kernel.exception.PortalException,
239             com.liferay.portal.kernel.exception.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
243         long groupId, long folderId)
244         throws com.liferay.portal.kernel.exception.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
248         long groupId, long folderId, int start, int end)
249         throws com.liferay.portal.kernel.exception.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
253         long groupId, long folderId, int start, int end,
254         com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.kernel.exception.SystemException;
256 
257     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258     public int getImagesCount(long groupId, long folderId)
259         throws com.liferay.portal.kernel.exception.SystemException;
260 
261     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
263         throws com.liferay.portal.kernel.exception.SystemException;
264 
265     public void updateAsset(long userId,
266         com.liferay.portlet.imagegallery.model.IGImage image,
267         long[] assetCategoryIds, java.lang.String[] assetTagNames,
268         java.lang.String contentType)
269         throws com.liferay.portal.kernel.exception.PortalException,
270             com.liferay.portal.kernel.exception.SystemException;
271 
272     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
273         long userId, long imageId, long groupId, long folderId,
274         java.lang.String name, java.lang.String description, byte[] bytes,
275         java.lang.String contentType,
276         com.liferay.portal.service.ServiceContext serviceContext)
277         throws com.liferay.portal.kernel.exception.PortalException,
278             com.liferay.portal.kernel.exception.SystemException;
279 
280     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
281         long userId, long imageId, long groupId, long folderId,
282         java.lang.String name, java.lang.String description, java.io.File file,
283         java.lang.String contentType,
284         com.liferay.portal.service.ServiceContext serviceContext)
285         throws com.liferay.portal.kernel.exception.PortalException,
286             com.liferay.portal.kernel.exception.SystemException;
287 
288     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
289         long userId, long imageId, long groupId, long folderId,
290         java.lang.String name, java.lang.String description,
291         java.io.InputStream is, java.lang.String contentType,
292         com.liferay.portal.service.ServiceContext serviceContext)
293         throws com.liferay.portal.kernel.exception.PortalException,
294             com.liferay.portal.kernel.exception.SystemException;
295 
296     public void updateSmallImage(long smallImageId, long largeImageId)
297         throws com.liferay.portal.kernel.exception.PortalException,
298             com.liferay.portal.kernel.exception.SystemException;
299 }