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 com.liferay.portlet.imagegallery.model.IGImage createIGImage(
56          long imageId);
57  
58      public void deleteIGImage(long imageId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portal.PortalException;
61  
62      public void deleteIGImage(
63          com.liferay.portlet.imagegallery.model.IGImage igImage)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
75          long imageId)
76          throws com.liferay.portal.SystemException,
77              com.liferay.portal.PortalException;
78  
79      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
80          int start, int end) throws com.liferay.portal.SystemException;
81  
82      public int getIGImagesCount() throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
85          com.liferay.portlet.imagegallery.model.IGImage igImage)
86          throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.imagegallery.model.IGImage addImage(
89          long userId, long folderId, java.lang.String name,
90          java.lang.String description, java.io.File file,
91          java.lang.String contentType, java.lang.String[] tagsEntries,
92          boolean addCommunityPermissions, boolean addGuestPermissions)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.imagegallery.model.IGImage addImage(
97          java.lang.String uuid, long userId, long folderId,
98          java.lang.String name, java.lang.String description, java.io.File file,
99          java.lang.String contentType, java.lang.String[] tagsEntries,
100         boolean addCommunityPermissions, boolean addGuestPermissions)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.imagegallery.model.IGImage addImage(
105         long userId, long folderId, java.lang.String name,
106         java.lang.String description, java.io.File file,
107         java.lang.String contentType, java.lang.String[] tagsEntries,
108         java.lang.String[] communityPermissions,
109         java.lang.String[] guestPermissions)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException;
112 
113     public com.liferay.portlet.imagegallery.model.IGImage addImage(
114         java.lang.String uuid, long userId, long folderId,
115         java.lang.String name, java.lang.String description, java.io.File file,
116         java.lang.String contentType, java.lang.String[] tagsEntries,
117         java.lang.Boolean addCommunityPermissions,
118         java.lang.Boolean addGuestPermissions,
119         java.lang.String[] communityPermissions,
120         java.lang.String[] guestPermissions)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     public void addImageResources(long folderId, long imageId,
125         boolean addCommunityPermissions, boolean addGuestPermissions)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException;
128 
129     public void addImageResources(
130         com.liferay.portlet.imagegallery.model.IGFolder folder,
131         com.liferay.portlet.imagegallery.model.IGImage image,
132         boolean addCommunityPermissions, boolean addGuestPermissions)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException;
135 
136     public void addImageResources(long folderId, long imageId,
137         java.lang.String[] communityPermissions,
138         java.lang.String[] guestPermissions)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public void addImageResources(
143         com.liferay.portlet.imagegallery.model.IGFolder folder,
144         com.liferay.portlet.imagegallery.model.IGImage image,
145         java.lang.String[] communityPermissions,
146         java.lang.String[] guestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void deleteImage(long imageId)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException;
153 
154     public void deleteImage(
155         com.liferay.portlet.imagegallery.model.IGImage image)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException;
158 
159     public void deleteImages(long folderId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public int getFoldersImagesCount(java.util.List<Long> folderIds)
164         throws com.liferay.portal.SystemException;
165 
166     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
167         long groupId, int start, int end)
168         throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
171         long groupId, long userId, int start, int end)
172         throws com.liferay.portal.SystemException;
173 
174     public int getGroupImagesCount(long groupId)
175         throws com.liferay.portal.SystemException;
176 
177     public int getGroupImagesCount(long groupId, long userId)
178         throws com.liferay.portal.SystemException;
179 
180     public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException;
183 
184     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
185         long custom1ImageId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException;
188 
189     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
190         long custom2ImageId)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 
194     public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
195         long folderId, java.lang.String nameWithExtension)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException;
198 
199     public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
200         long largeImageId)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException;
203 
204     public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
205         long smallImageId)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException;
208 
209     public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
210         java.lang.String uuid, long groupId)
211         throws com.liferay.portal.PortalException,
212             com.liferay.portal.SystemException;
213 
214     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
215         long folderId) throws com.liferay.portal.SystemException;
216 
217     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
218         long folderId, int start, int end)
219         throws com.liferay.portal.SystemException;
220 
221     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
222         long folderId, int start, int end,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException;
225 
226     public int getImagesCount(long folderId)
227         throws com.liferay.portal.SystemException;
228 
229     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
230         throws com.liferay.portal.SystemException;
231 
232     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
233         long userId, long imageId, long folderId, java.lang.String name,
234         java.lang.String description, java.io.File file,
235         java.lang.String contentType, java.lang.String[] tagsEntries)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException;
238 
239     public void updateTagsAsset(long userId,
240         com.liferay.portlet.imagegallery.model.IGImage image,
241         java.lang.String[] tagsEntries)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException;
244 }