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