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="IGFolderLocalService.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.IGFolderLocalServiceImpl</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.IGFolderLocalServiceFactory
48   * @see com.liferay.portlet.imagegallery.service.IGFolderLocalServiceUtil
49   *
50   */
51  public interface IGFolderLocalService {
52      public com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
53          com.liferay.portlet.imagegallery.model.IGFolder 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.IGFolder updateIGFolder(
65          com.liferay.portlet.imagegallery.model.IGFolder 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.TagsEntryPersistence getTagsEntryPersistence();
104 
105     public void setTagsEntryPersistence(
106         com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence);
107 
108     public com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder();
109 
110     public void setTagsEntryFinder(
111         com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder);
112 
113     public void afterPropertiesSet();
114 
115     public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
116         long userId, long plid, long parentFolderId, java.lang.String name,
117         java.lang.String description, boolean addCommunityPermissions,
118         boolean addGuestPermissions)
119         throws com.liferay.portal.SystemException, 
120             com.liferay.portal.PortalException;
121 
122     public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
123         java.lang.String uuid, long userId, long plid, long parentFolderId,
124         java.lang.String name, java.lang.String description,
125         boolean addCommunityPermissions, boolean addGuestPermissions)
126         throws com.liferay.portal.SystemException, 
127             com.liferay.portal.PortalException;
128 
129     public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
130         long userId, long plid, long parentFolderId, java.lang.String name,
131         java.lang.String description, java.lang.String[] communityPermissions,
132         java.lang.String[] guestPermissions)
133         throws com.liferay.portal.SystemException, 
134             com.liferay.portal.PortalException;
135 
136     public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
137         java.lang.String uuid, long userId, long plid, long parentFolderId,
138         java.lang.String name, java.lang.String description,
139         java.lang.Boolean addCommunityPermissions,
140         java.lang.Boolean addGuestPermissions,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.SystemException, 
144             com.liferay.portal.PortalException;
145 
146     public com.liferay.portlet.imagegallery.model.IGFolder addFolderToGroup(
147         java.lang.String uuid, long userId, long groupId, long parentFolderId,
148         java.lang.String name, java.lang.String description,
149         java.lang.Boolean addCommunityPermissions,
150         java.lang.Boolean addGuestPermissions,
151         java.lang.String[] communityPermissions,
152         java.lang.String[] guestPermissions)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portal.PortalException;
155 
156     public void addFolderResources(long folderId,
157         boolean addCommunityPermissions, boolean addGuestPermissions)
158         throws com.liferay.portal.SystemException, 
159             com.liferay.portal.PortalException;
160 
161     public void addFolderResources(
162         com.liferay.portlet.imagegallery.model.IGFolder folder,
163         boolean addCommunityPermissions, boolean addGuestPermissions)
164         throws com.liferay.portal.SystemException, 
165             com.liferay.portal.PortalException;
166 
167     public void addFolderResources(long folderId,
168         java.lang.String[] communityPermissions,
169         java.lang.String[] guestPermissions)
170         throws com.liferay.portal.SystemException, 
171             com.liferay.portal.PortalException;
172 
173     public void addFolderResources(
174         com.liferay.portlet.imagegallery.model.IGFolder folder,
175         java.lang.String[] communityPermissions,
176         java.lang.String[] guestPermissions)
177         throws com.liferay.portal.SystemException, 
178             com.liferay.portal.PortalException;
179 
180     public void deleteFolder(long folderId)
181         throws com.liferay.portal.SystemException, 
182             com.liferay.portal.PortalException;
183 
184     public void deleteFolder(
185         com.liferay.portlet.imagegallery.model.IGFolder folder)
186         throws com.liferay.portal.SystemException, 
187             com.liferay.portal.PortalException;
188 
189     public void deleteFolders(long groupId)
190         throws com.liferay.portal.SystemException, 
191             com.liferay.portal.PortalException;
192 
193     public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
194         long folderId)
195         throws com.liferay.portal.SystemException, 
196             com.liferay.portal.PortalException;
197 
198     public java.util.List getFolders(long groupId)
199         throws com.liferay.portal.SystemException;
200 
201     public java.util.List getFolders(long groupId, long parentFolderId)
202         throws com.liferay.portal.SystemException;
203 
204     public java.util.List getFolders(long groupId, long parentFolderId,
205         int begin, int end) throws com.liferay.portal.SystemException;
206 
207     public int getFoldersCount(long groupId, long parentFolderId)
208         throws com.liferay.portal.SystemException;
209 
210     public void getSubfolderIds(java.util.List folderIds, long groupId,
211         long folderId) throws com.liferay.portal.SystemException;
212 
213     public void reIndex(java.lang.String[] ids)
214         throws com.liferay.portal.SystemException;
215 
216     public com.liferay.portal.kernel.search.Hits search(long companyId,
217         long groupId, long[] folderIds, java.lang.String keywords)
218         throws com.liferay.portal.SystemException;
219 
220     public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
221         long folderId, long parentFolderId, java.lang.String name,
222         java.lang.String description, boolean mergeWithParentFolder)
223         throws com.liferay.portal.SystemException, 
224             com.liferay.portal.PortalException;
225 }