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