1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
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  /**
32   * <a href="IGImageLocalService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * {@link
42   * com.liferay.portlet.imagegallery.service.impl.IGImageLocalServiceImpl}}.
43   * Modify methods in that class and rerun ServiceBuilder to populate this class
44   * and all other generated classes.
45   * </p>
46   *
47   * <p>
48   * 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.
49   * </p>
50   *
51   * @author    Brian Wing Shun Chan
52   * @see       IGImageLocalServiceUtil
53   * @generated
54   */
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,
106         com.liferay.portal.service.ServiceContext serviceContext)
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.lang.String fileName, byte[] bytes,
113         java.lang.String contentType,
114         com.liferay.portal.service.ServiceContext serviceContext)
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.lang.String fileName,
121         java.io.InputStream is, java.lang.String contentType,
122         com.liferay.portal.service.ServiceContext serviceContext)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public com.liferay.portlet.imagegallery.model.IGImage addImage(
127         java.lang.String uuid, long userId, long folderId,
128         java.lang.String name, java.lang.String description, java.io.File file,
129         java.lang.String contentType,
130         com.liferay.portal.service.ServiceContext serviceContext)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.imagegallery.model.IGImage addImage(
135         java.lang.String uuid, long userId, long folderId,
136         java.lang.String name, java.lang.String description,
137         java.lang.String fileName, byte[] bytes, java.lang.String contentType,
138         com.liferay.portal.service.ServiceContext serviceContext)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public com.liferay.portlet.imagegallery.model.IGImage addImage(
143         java.lang.String uuid, long userId, long folderId,
144         java.lang.String name, java.lang.String description,
145         java.lang.String fileName, java.io.InputStream is,
146         java.lang.String contentType,
147         com.liferay.portal.service.ServiceContext serviceContext)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public void addImageResources(
152         com.liferay.portlet.imagegallery.model.IGImage image,
153         boolean addCommunityPermissions, boolean addGuestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void addImageResources(
158         com.liferay.portlet.imagegallery.model.IGImage image,
159         java.lang.String[] communityPermissions,
160         java.lang.String[] guestPermissions)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public void addImageResources(long imageId,
165         boolean addCommunityPermissions, boolean addGuestPermissions)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException;
168 
169     public void addImageResources(long imageId,
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 deleteImage(
176         com.liferay.portlet.imagegallery.model.IGImage image)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     public void deleteImage(long imageId)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException;
183 
184     public void deleteImages(long folderId)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public int getFoldersImagesCount(java.util.List<Long> folderIds)
190         throws com.liferay.portal.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
194         long groupId, int start, int end)
195         throws com.liferay.portal.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
199         long groupId, long userId, int start, int end)
200         throws com.liferay.portal.SystemException;
201 
202     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203     public int getGroupImagesCount(long groupId)
204         throws com.liferay.portal.SystemException;
205 
206     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207     public int getGroupImagesCount(long groupId, long userId)
208         throws com.liferay.portal.SystemException;
209 
210     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211     public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException;
214 
215     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
217         long custom1ImageId)
218         throws com.liferay.portal.PortalException,
219             com.liferay.portal.SystemException;
220 
221     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
223         long custom2ImageId)
224         throws com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
229         long folderId, java.lang.String nameWithExtension)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException;
232 
233     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234     public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
235         long largeImageId)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException;
238 
239     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240     public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
241         long smallImageId)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException;
244 
245     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246     public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
247         java.lang.String uuid, long groupId)
248         throws com.liferay.portal.PortalException,
249             com.liferay.portal.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
253         long folderId) throws com.liferay.portal.SystemException;
254 
255     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
257         long folderId, int start, int end)
258         throws com.liferay.portal.SystemException;
259 
260     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
262         long folderId, int start, int end,
263         com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException;
265 
266     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267     public int getImagesCount(long folderId)
268         throws com.liferay.portal.SystemException;
269 
270     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
272         throws com.liferay.portal.SystemException;
273 
274     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275     public void reIndex(com.liferay.portlet.imagegallery.model.IGImage image)
276         throws com.liferay.portal.SystemException;
277 
278     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279     public void reIndex(long imageId) throws com.liferay.portal.SystemException;
280 
281     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
282         long userId, long imageId, long folderId, java.lang.String name,
283         java.lang.String description, byte[] bytes,
284         java.lang.String contentType,
285         com.liferay.portal.service.ServiceContext serviceContext)
286         throws com.liferay.portal.PortalException,
287             com.liferay.portal.SystemException;
288 
289     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
290         long userId, long imageId, long folderId, java.lang.String name,
291         java.lang.String description, java.io.File file,
292         java.lang.String contentType,
293         com.liferay.portal.service.ServiceContext serviceContext)
294         throws com.liferay.portal.PortalException,
295             com.liferay.portal.SystemException;
296 
297     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
298         long userId, long imageId, long folderId, java.lang.String name,
299         java.lang.String description, java.io.InputStream is,
300         java.lang.String contentType,
301         com.liferay.portal.service.ServiceContext serviceContext)
302         throws com.liferay.portal.PortalException,
303             com.liferay.portal.SystemException;
304 
305     public void updateSmallImage(long smallImageId, long largeImageId)
306         throws com.liferay.portal.PortalException,
307             com.liferay.portal.SystemException;
308 
309     public void updateTagsAsset(long userId,
310         com.liferay.portlet.imagegallery.model.IGImage image,
311         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
312         throws com.liferay.portal.PortalException,
313             com.liferay.portal.SystemException;
314 
315     public void updateTagsAsset(long userId,
316         com.liferay.portlet.imagegallery.model.IGImage image,
317         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries,
318         java.lang.String contentType)
319         throws com.liferay.portal.PortalException,
320             com.liferay.portal.SystemException;
321 }