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