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, 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         java.lang.String uuid, long userId, long folderId,
112         java.lang.String name, java.lang.String description, java.io.File file,
113         java.lang.String contentType, java.lang.String[] tagsEntries,
114         boolean addCommunityPermissions, boolean addGuestPermissions)
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.io.File file,
121         java.lang.String contentType, java.lang.String[] tagsEntries,
122         java.lang.String[] communityPermissions,
123         java.lang.String[] guestPermissions)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     public com.liferay.portlet.imagegallery.model.IGImage addImage(
128         java.lang.String uuid, long userId, long folderId,
129         java.lang.String name, java.lang.String description, java.io.File file,
130         java.lang.String contentType, java.lang.String[] tagsEntries,
131         java.lang.Boolean addCommunityPermissions,
132         java.lang.Boolean addGuestPermissions,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public void addImageResources(long imageId,
139         boolean addCommunityPermissions, boolean addGuestPermissions)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public void addImageResources(
144         com.liferay.portlet.imagegallery.model.IGImage image,
145         boolean addCommunityPermissions, boolean addGuestPermissions)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void addImageResources(long imageId,
150         java.lang.String[] communityPermissions,
151         java.lang.String[] guestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     public void addImageResources(
156         com.liferay.portlet.imagegallery.model.IGImage image,
157         java.lang.String[] communityPermissions,
158         java.lang.String[] guestPermissions)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     public void deleteImage(long imageId)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     public void deleteImage(
167         com.liferay.portlet.imagegallery.model.IGImage image)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public void deleteImages(long folderId)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException;
174 
175     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176     public int getFoldersImagesCount(java.util.List<Long> folderIds)
177         throws com.liferay.portal.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
181         long groupId, int start, int end)
182         throws com.liferay.portal.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
186         long groupId, long userId, int start, int end)
187         throws com.liferay.portal.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public int getGroupImagesCount(long groupId)
191         throws com.liferay.portal.SystemException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public int getGroupImagesCount(long groupId, long userId)
195         throws com.liferay.portal.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
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 getImageByCustom1ImageId(
204         long custom1ImageId)
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 getImageByCustom2ImageId(
210         long custom2ImageId)
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 getImageByFolderIdAndNameWithExtension(
216         long folderId, java.lang.String nameWithExtension)
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 getImageByLargeImageId(
222         long largeImageId)
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 getImageBySmallImageId(
228         long smallImageId)
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 getImageByUuidAndGroupId(
234         java.lang.String uuid, long groupId)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException;
237 
238     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
240         long folderId) throws com.liferay.portal.SystemException;
241 
242     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
244         long folderId, int start, int end)
245         throws com.liferay.portal.SystemException;
246 
247     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
249         long folderId, int start, int end,
250         com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.SystemException;
252 
253     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254     public int getImagesCount(long folderId)
255         throws com.liferay.portal.SystemException;
256 
257     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
259         throws com.liferay.portal.SystemException;
260 
261     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262     public void reIndex(long imageId) throws com.liferay.portal.SystemException;
263 
264     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265     public void reIndex(com.liferay.portlet.imagegallery.model.IGImage image)
266         throws com.liferay.portal.SystemException;
267 
268     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
269         long userId, long imageId, long folderId, java.lang.String name,
270         java.lang.String description, java.io.File file,
271         java.lang.String contentType, java.lang.String[] tagsEntries)
272         throws com.liferay.portal.PortalException,
273             com.liferay.portal.SystemException;
274 
275     public void updateTagsAsset(long userId,
276         com.liferay.portlet.imagegallery.model.IGImage image,
277         java.lang.String[] tagsEntries)
278         throws com.liferay.portal.PortalException,
279             com.liferay.portal.SystemException;
280 }