1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  
26  /**
27   * <a href="IGImageLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.imagegallery.service.impl.IGImageLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.imagegallery.service.IGImageLocalServiceUtil
48   *
49   */
50  public interface IGImageLocalService {
51      public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
52          com.liferay.portlet.imagegallery.model.IGImage igImage)
53          throws com.liferay.portal.SystemException;
54  
55      public void deleteIGImage(long imageId)
56          throws com.liferay.portal.SystemException,
57              com.liferay.portal.PortalException;
58  
59      public void deleteIGImage(
60          com.liferay.portlet.imagegallery.model.IGImage igImage)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException;
70  
71      public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
72          long imageId)
73          throws com.liferay.portal.SystemException,
74              com.liferay.portal.PortalException;
75  
76      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
77          int start, int end) throws com.liferay.portal.SystemException;
78  
79      public int getIGImagesCount() throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
82          com.liferay.portlet.imagegallery.model.IGImage igImage)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.imagegallery.model.IGImage addImage(
86          long userId, long folderId, java.lang.String name,
87          java.lang.String description, java.io.File file,
88          java.lang.String contentType, java.lang.String[] tagsEntries,
89          boolean addCommunityPermissions, boolean addGuestPermissions)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException;
92  
93      public com.liferay.portlet.imagegallery.model.IGImage addImage(
94          java.lang.String uuid, long userId, long folderId,
95          java.lang.String name, java.lang.String description, java.io.File file,
96          java.lang.String contentType, java.lang.String[] tagsEntries,
97          boolean addCommunityPermissions, boolean addGuestPermissions)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.imagegallery.model.IGImage addImage(
102         long userId, long folderId, java.lang.String name,
103         java.lang.String description, java.io.File file,
104         java.lang.String contentType, java.lang.String[] tagsEntries,
105         java.lang.String[] communityPermissions,
106         java.lang.String[] guestPermissions)
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         java.lang.Boolean addCommunityPermissions,
115         java.lang.Boolean addGuestPermissions,
116         java.lang.String[] communityPermissions,
117         java.lang.String[] guestPermissions)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException;
120 
121     public void addImageResources(long folderId, long imageId,
122         boolean addCommunityPermissions, boolean addGuestPermissions)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public void addImageResources(
127         com.liferay.portlet.imagegallery.model.IGFolder folder,
128         com.liferay.portlet.imagegallery.model.IGImage image,
129         boolean addCommunityPermissions, boolean addGuestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public void addImageResources(long folderId, long imageId,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void addImageResources(
140         com.liferay.portlet.imagegallery.model.IGFolder folder,
141         com.liferay.portlet.imagegallery.model.IGImage image,
142         java.lang.String[] communityPermissions,
143         java.lang.String[] guestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public void deleteImage(long imageId)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public void deleteImage(
152         com.liferay.portlet.imagegallery.model.IGImage image)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     public void deleteImages(long folderId)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public int getFoldersImagesCount(java.util.List<Long> folderIds)
161         throws com.liferay.portal.SystemException;
162 
163     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
164         long groupId, int start, int end)
165         throws com.liferay.portal.SystemException;
166 
167     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
168         long groupId, long userId, int start, int end)
169         throws com.liferay.portal.SystemException;
170 
171     public int getGroupImagesCount(long groupId)
172         throws com.liferay.portal.SystemException;
173 
174     public int getGroupImagesCount(long groupId, long userId)
175         throws com.liferay.portal.SystemException;
176 
177     public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException;
180 
181     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
182         long custom1ImageId)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException;
185 
186     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
187         long custom2ImageId)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException;
190 
191     public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
192         long folderId, java.lang.String nameWithExtension)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException;
195 
196     public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
197         long largeImageId)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException;
200 
201     public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
202         long smallImageId)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException;
205 
206     public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
207         java.lang.String uuid, long groupId)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
212         long folderId) throws com.liferay.portal.SystemException;
213 
214     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
215         long folderId, int start, int end)
216         throws com.liferay.portal.SystemException;
217 
218     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
219         long folderId, int start, int end,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.SystemException;
222 
223     public int getImagesCount(long folderId)
224         throws com.liferay.portal.SystemException;
225 
226     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
227         throws com.liferay.portal.SystemException;
228 
229     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
230         long userId, long imageId, long folderId, java.lang.String name,
231         java.lang.String description, java.io.File file,
232         java.lang.String contentType, java.lang.String[] tagsEntries)
233         throws com.liferay.portal.PortalException,
234             com.liferay.portal.SystemException;
235 
236     public void updateTagsAsset(long userId,
237         com.liferay.portlet.imagegallery.model.IGImage image,
238         java.lang.String[] tagsEntries)
239         throws com.liferay.portal.PortalException,
240             com.liferay.portal.SystemException;
241 }