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.documentlibrary.service;
24  
25  
26  /**
27   * <a href="DLFolderLocalService.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.documentlibrary.service.impl.DLFolderLocalServiceImpl</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.documentlibrary.service.DLFolderLocalServiceFactory
48   * @see com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil
49   *
50   */
51  public interface DLFolderLocalService {
52      public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
53          com.liferay.portlet.documentlibrary.model.DLFolder 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.documentlibrary.model.DLFolder updateDLFolder(
65          com.liferay.portlet.documentlibrary.model.DLFolder model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence getDLFileEntryPersistence();
69  
70      public void setDLFileEntryPersistence(
71          com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence);
72  
73      public com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder getDLFileEntryFinder();
74  
75      public void setDLFileEntryFinder(
76          com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder dlFileEntryFinder);
77  
78      public com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder();
79  
80      public void setDLFileEntryAndShortcutFinder(
81          com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder);
82  
83      public com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence getDLFileRankPersistence();
84  
85      public void setDLFileRankPersistence(
86          com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence);
87  
88      public com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder getDLFileRankFinder();
89  
90      public void setDLFileRankFinder(
91          com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder dlFileRankFinder);
92  
93      public com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence getDLFileShortcutPersistence();
94  
95      public void setDLFileShortcutPersistence(
96          com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence);
97  
98      public com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder getDLFileShortcutFinder();
99  
100     public void setDLFileShortcutFinder(
101         com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder dlFileShortcutFinder);
102 
103     public com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence getDLFileVersionPersistence();
104 
105     public void setDLFileVersionPersistence(
106         com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence);
107 
108     public com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence getDLFolderPersistence();
109 
110     public void setDLFolderPersistence(
111         com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence);
112 
113     public com.liferay.portal.service.persistence.LayoutPersistence getLayoutPersistence();
114 
115     public void setLayoutPersistence(
116         com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence);
117 
118     public com.liferay.portal.service.persistence.LayoutFinder getLayoutFinder();
119 
120     public void setLayoutFinder(
121         com.liferay.portal.service.persistence.LayoutFinder layoutFinder);
122 
123     public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
124 
125     public void setResourcePersistence(
126         com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
127 
128     public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
129 
130     public void setResourceFinder(
131         com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
132 
133     public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
134 
135     public void setUserPersistence(
136         com.liferay.portal.service.persistence.UserPersistence userPersistence);
137 
138     public com.liferay.portal.service.persistence.UserFinder getUserFinder();
139 
140     public void setUserFinder(
141         com.liferay.portal.service.persistence.UserFinder userFinder);
142 
143     public com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence();
144 
145     public void setWebDAVPropsPersistence(
146         com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence);
147 
148     public void afterPropertiesSet();
149 
150     public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
151         long userId, long plid, long parentFolderId, java.lang.String name,
152         java.lang.String description, boolean addCommunityPermissions,
153         boolean addGuestPermissions)
154         throws com.liferay.portal.SystemException, 
155             com.liferay.portal.PortalException;
156 
157     public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
158         java.lang.String uuid, long userId, long plid, long parentFolderId,
159         java.lang.String name, java.lang.String description,
160         boolean addCommunityPermissions, boolean addGuestPermissions)
161         throws com.liferay.portal.SystemException, 
162             com.liferay.portal.PortalException;
163 
164     public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
165         long userId, long plid, long parentFolderId, java.lang.String name,
166         java.lang.String description, java.lang.String[] communityPermissions,
167         java.lang.String[] guestPermissions)
168         throws com.liferay.portal.SystemException, 
169             com.liferay.portal.PortalException;
170 
171     public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
172         java.lang.String uuid, long userId, long plid, long parentFolderId,
173         java.lang.String name, java.lang.String description,
174         java.lang.Boolean addCommunityPermissions,
175         java.lang.Boolean addGuestPermissions,
176         java.lang.String[] communityPermissions,
177         java.lang.String[] guestPermissions)
178         throws com.liferay.portal.SystemException, 
179             com.liferay.portal.PortalException;
180 
181     public com.liferay.portlet.documentlibrary.model.DLFolder addFolderToGroup(
182         java.lang.String uuid, long userId, long groupId, long parentFolderId,
183         java.lang.String name, java.lang.String description,
184         java.lang.Boolean addCommunityPermissions,
185         java.lang.Boolean addGuestPermissions,
186         java.lang.String[] communityPermissions,
187         java.lang.String[] guestPermissions)
188         throws com.liferay.portal.SystemException, 
189             com.liferay.portal.PortalException;
190 
191     public void addFolderResources(long folderId,
192         boolean addCommunityPermissions, boolean addGuestPermissions)
193         throws com.liferay.portal.SystemException, 
194             com.liferay.portal.PortalException;
195 
196     public void addFolderResources(
197         com.liferay.portlet.documentlibrary.model.DLFolder folder,
198         boolean addCommunityPermissions, boolean addGuestPermissions)
199         throws com.liferay.portal.SystemException, 
200             com.liferay.portal.PortalException;
201 
202     public void addFolderResources(long folderId,
203         java.lang.String[] communityPermissions,
204         java.lang.String[] guestPermissions)
205         throws com.liferay.portal.SystemException, 
206             com.liferay.portal.PortalException;
207 
208     public void addFolderResources(
209         com.liferay.portlet.documentlibrary.model.DLFolder folder,
210         java.lang.String[] communityPermissions,
211         java.lang.String[] guestPermissions)
212         throws com.liferay.portal.SystemException, 
213             com.liferay.portal.PortalException;
214 
215     public void deleteFolder(long folderId)
216         throws com.liferay.portal.SystemException, 
217             com.liferay.portal.PortalException;
218 
219     public void deleteFolder(
220         com.liferay.portlet.documentlibrary.model.DLFolder folder)
221         throws com.liferay.portal.SystemException, 
222             com.liferay.portal.PortalException;
223 
224     public void deleteFolders(long groupId)
225         throws com.liferay.portal.SystemException, 
226             com.liferay.portal.PortalException;
227 
228     public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
229         long folderId)
230         throws com.liferay.portal.SystemException, 
231             com.liferay.portal.PortalException;
232 
233     public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
234         long groupId, long parentFolderId, java.lang.String name)
235         throws com.liferay.portal.SystemException, 
236             com.liferay.portal.PortalException;
237 
238     public java.util.List getFolders(long companyId)
239         throws com.liferay.portal.SystemException;
240 
241     public java.util.List getFolders(long groupId, long parentFolderId)
242         throws com.liferay.portal.SystemException;
243 
244     public java.util.List getFolders(long groupId, long parentFolderId,
245         int begin, int end) throws com.liferay.portal.SystemException;
246 
247     public int getFoldersCount(long groupId, long parentFolderId)
248         throws com.liferay.portal.SystemException;
249 
250     public void getSubfolderIds(java.util.List folderIds, long groupId,
251         long folderId) throws com.liferay.portal.SystemException;
252 
253     public void reIndex(java.lang.String[] ids)
254         throws com.liferay.portal.SystemException;
255 
256     public com.liferay.portal.kernel.search.Hits search(long companyId,
257         long groupId, long[] folderIds, java.lang.String keywords)
258         throws com.liferay.portal.SystemException, 
259             com.liferay.portal.PortalException;
260 
261     public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
262         long folderId, long parentFolderId, java.lang.String name,
263         java.lang.String description)
264         throws com.liferay.portal.SystemException, 
265             com.liferay.portal.PortalException;
266 }