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 model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
65          com.liferay.portlet.imagegallery.model.IGImage model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.imagegallery.service.persistence.IGFolderPersistence getIGFolderPersistence();
69  
70      public void setIGFolderPersistence(
71          com.liferay.portlet.imagegallery.service.persistence.IGFolderPersistence igFolderPersistence);
72  
73      public com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence getIGImagePersistence();
74  
75      public void setIGImagePersistence(
76          com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence igImagePersistence);
77  
78      public com.liferay.portlet.imagegallery.service.persistence.IGImageFinder getIGImageFinder();
79  
80      public void setIGImageFinder(
81          com.liferay.portlet.imagegallery.service.persistence.IGImageFinder igImageFinder);
82  
83      public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
84  
85      public void setResourcePersistence(
86          com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
87  
88      public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
89  
90      public void setResourceFinder(
91          com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
92  
93      public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
94  
95      public void setUserPersistence(
96          com.liferay.portal.service.persistence.UserPersistence userPersistence);
97  
98      public com.liferay.portal.service.persistence.UserFinder getUserFinder();
99  
100     public void setUserFinder(
101         com.liferay.portal.service.persistence.UserFinder userFinder);
102 
103     public com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence();
104 
105     public void setTagsAssetPersistence(
106         com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence);
107 
108     public com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder();
109 
110     public void setTagsAssetFinder(
111         com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder);
112 
113     public void afterPropertiesSet();
114 
115     public com.liferay.portlet.imagegallery.model.IGImage addImage(
116         long userId, long folderId, java.lang.String description,
117         java.io.File file, java.lang.String contentType,
118         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
119         boolean addGuestPermissions)
120         throws com.liferay.portal.SystemException, 
121             com.liferay.portal.PortalException;
122 
123     public com.liferay.portlet.imagegallery.model.IGImage addImage(
124         java.lang.String uuid, long userId, long folderId,
125         java.lang.String description, java.io.File file,
126         java.lang.String contentType, java.lang.String[] tagsEntries,
127         boolean addCommunityPermissions, boolean addGuestPermissions)
128         throws com.liferay.portal.SystemException, 
129             com.liferay.portal.PortalException;
130 
131     public com.liferay.portlet.imagegallery.model.IGImage addImage(
132         long userId, long folderId, java.lang.String description,
133         java.io.File file, java.lang.String contentType,
134         java.lang.String[] tagsEntries,
135         java.lang.String[] communityPermissions,
136         java.lang.String[] guestPermissions)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portal.PortalException;
139 
140     public com.liferay.portlet.imagegallery.model.IGImage addImage(
141         java.lang.String uuid, long userId, long folderId,
142         java.lang.String description, java.io.File file,
143         java.lang.String contentType, java.lang.String[] tagsEntries,
144         java.lang.Boolean addCommunityPermissions,
145         java.lang.Boolean addGuestPermissions,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.SystemException, 
149             com.liferay.portal.PortalException;
150 
151     public void addImageResources(long folderId, long imageId,
152         boolean addCommunityPermissions, boolean addGuestPermissions)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portal.PortalException;
155 
156     public void addImageResources(
157         com.liferay.portlet.imagegallery.model.IGFolder folder,
158         com.liferay.portlet.imagegallery.model.IGImage image,
159         boolean addCommunityPermissions, boolean addGuestPermissions)
160         throws com.liferay.portal.SystemException, 
161             com.liferay.portal.PortalException;
162 
163     public void addImageResources(long folderId, long imageId,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portal.PortalException;
168 
169     public void addImageResources(
170         com.liferay.portlet.imagegallery.model.IGFolder folder,
171         com.liferay.portlet.imagegallery.model.IGImage image,
172         java.lang.String[] communityPermissions,
173         java.lang.String[] guestPermissions)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portal.PortalException;
176 
177     public void deleteImage(long imageId)
178         throws com.liferay.portal.SystemException, 
179             com.liferay.portal.PortalException;
180 
181     public void deleteImage(
182         com.liferay.portlet.imagegallery.model.IGImage image)
183         throws com.liferay.portal.SystemException, 
184             com.liferay.portal.PortalException;
185 
186     public void deleteImages(long folderId)
187         throws com.liferay.portal.SystemException, 
188             com.liferay.portal.PortalException;
189 
190     public int getFoldersImagesCount(java.util.List folderIds)
191         throws com.liferay.portal.SystemException;
192 
193     public java.util.List getGroupImages(long groupId, int begin, int end)
194         throws com.liferay.portal.SystemException;
195 
196     public java.util.List getGroupImages(long groupId, long userId, int begin,
197         int end) throws com.liferay.portal.SystemException;
198 
199     public int getGroupImagesCount(long groupId)
200         throws com.liferay.portal.SystemException;
201 
202     public int getGroupImagesCount(long groupId, long userId)
203         throws com.liferay.portal.SystemException;
204 
205     public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
206         throws com.liferay.portal.SystemException, 
207             com.liferay.portal.PortalException;
208 
209     public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
210         long largeImageId)
211         throws com.liferay.portal.SystemException, 
212             com.liferay.portal.PortalException;
213 
214     public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
215         long smallImageId)
216         throws com.liferay.portal.SystemException, 
217             com.liferay.portal.PortalException;
218 
219     public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
220         java.lang.String uuid, long groupId)
221         throws com.liferay.portal.SystemException, 
222             com.liferay.portal.PortalException;
223 
224     public java.util.List getImages(long folderId)
225         throws com.liferay.portal.SystemException;
226 
227     public java.util.List getImages(long folderId, int begin, int end)
228         throws com.liferay.portal.SystemException;
229 
230     public java.util.List getImages(long folderId, int begin, int end,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException;
233 
234     public int getImagesCount(long folderId)
235         throws com.liferay.portal.SystemException;
236 
237     public java.util.List getNoAssetImages()
238         throws com.liferay.portal.SystemException;
239 
240     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
241         long userId, long imageId, long folderId, java.lang.String description,
242         java.io.File file, java.lang.String contentType,
243         java.lang.String[] tagsEntries)
244         throws com.liferay.portal.SystemException, 
245             com.liferay.portal.PortalException;
246 
247     public void updateTagsAsset(long userId,
248         com.liferay.portlet.imagegallery.model.IGImage image,
249         java.lang.String[] tagsEntries)
250         throws com.liferay.portal.SystemException, 
251             com.liferay.portal.PortalException;
252 }