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 dlFolder)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteDLFolder(long folderId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteDLFolder(
61          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portal.PortalException;
64  
65      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dynamicQuery(
66          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder updateDLFolder(
74          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
78          long userId, long plid, long parentFolderId, java.lang.String name,
79          java.lang.String description, boolean addCommunityPermissions,
80          boolean addGuestPermissions)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portal.PortalException;
83  
84      public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
85          java.lang.String uuid, long userId, long plid, long parentFolderId,
86          java.lang.String name, java.lang.String description,
87          boolean addCommunityPermissions, boolean addGuestPermissions)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portal.PortalException;
90  
91      public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
92          long userId, long plid, long parentFolderId, java.lang.String name,
93          java.lang.String description, java.lang.String[] communityPermissions,
94          java.lang.String[] guestPermissions)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portal.PortalException;
97  
98      public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
99          java.lang.String uuid, long userId, long plid, long parentFolderId,
100         java.lang.String name, java.lang.String description,
101         java.lang.Boolean addCommunityPermissions,
102         java.lang.Boolean addGuestPermissions,
103         java.lang.String[] communityPermissions,
104         java.lang.String[] guestPermissions)
105         throws com.liferay.portal.SystemException,
106             com.liferay.portal.PortalException;
107 
108     public com.liferay.portlet.documentlibrary.model.DLFolder addFolderToGroup(
109         java.lang.String uuid, long userId, long groupId, long parentFolderId,
110         java.lang.String name, java.lang.String description,
111         java.lang.Boolean addCommunityPermissions,
112         java.lang.Boolean addGuestPermissions,
113         java.lang.String[] communityPermissions,
114         java.lang.String[] guestPermissions)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portal.PortalException;
117 
118     public void addFolderResources(long folderId,
119         boolean addCommunityPermissions, boolean addGuestPermissions)
120         throws com.liferay.portal.SystemException,
121             com.liferay.portal.PortalException;
122 
123     public void addFolderResources(
124         com.liferay.portlet.documentlibrary.model.DLFolder folder,
125         boolean addCommunityPermissions, boolean addGuestPermissions)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portal.PortalException;
128 
129     public void addFolderResources(long folderId,
130         java.lang.String[] communityPermissions,
131         java.lang.String[] guestPermissions)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portal.PortalException;
134 
135     public void addFolderResources(
136         com.liferay.portlet.documentlibrary.model.DLFolder folder,
137         java.lang.String[] communityPermissions,
138         java.lang.String[] guestPermissions)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portal.PortalException;
141 
142     public void deleteFolder(long folderId)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portal.PortalException;
145 
146     public void deleteFolder(
147         com.liferay.portlet.documentlibrary.model.DLFolder folder)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portal.PortalException;
150 
151     public void deleteFolders(long groupId)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portal.PortalException;
154 
155     public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
156         long folderId)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portal.PortalException;
159 
160     public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
161         long groupId, long parentFolderId, java.lang.String name)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portal.PortalException;
164 
165     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
166         long companyId) throws com.liferay.portal.SystemException;
167 
168     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
169         long groupId, long parentFolderId)
170         throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
173         long groupId, long parentFolderId, int begin, int end)
174         throws com.liferay.portal.SystemException;
175 
176     public int getFoldersCount(long groupId, long parentFolderId)
177         throws com.liferay.portal.SystemException;
178 
179     public void getSubfolderIds(java.util.List<Long> folderIds, long groupId,
180         long folderId) throws com.liferay.portal.SystemException;
181 
182     public void reIndex(java.lang.String[] ids)
183         throws com.liferay.portal.SystemException;
184 
185     public com.liferay.portal.kernel.search.Hits search(long companyId,
186         long groupId, long[] folderIds, java.lang.String keywords)
187         throws com.liferay.portal.SystemException,
188             com.liferay.portal.PortalException;
189 
190     public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
191         long folderId, long parentFolderId, java.lang.String name,
192         java.lang.String description)
193         throws com.liferay.portal.SystemException,
194             com.liferay.portal.PortalException;
195 }