1
19
20 package com.liferay.portlet.documentlibrary.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Isolation;
25 import com.liferay.portal.kernel.annotation.Propagation;
26 import com.liferay.portal.kernel.annotation.Transactional;
27
28
52 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
53 PortalException.class, SystemException.class})
54 public interface DLFolderLocalService {
55 public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
56 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
57 throws com.liferay.portal.SystemException;
58
59 public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
60 long folderId);
61
62 public void deleteDLFolder(long folderId)
63 throws com.liferay.portal.SystemException,
64 com.liferay.portal.PortalException;
65
66 public void deleteDLFolder(
67 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException;
73
74 public java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
80 long folderId)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portal.PortalException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
86 int start, int end) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public int getDLFoldersCount() throws com.liferay.portal.SystemException;
90
91 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
92 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
96 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
97 boolean merge) throws com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
100 long userId, long groupId, long parentFolderId, java.lang.String name,
101 java.lang.String description,
102 com.liferay.portal.service.ServiceContext serviceContext)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
107 java.lang.String uuid, long userId, long groupId, long parentFolderId,
108 java.lang.String name, java.lang.String description,
109 com.liferay.portal.service.ServiceContext serviceContext)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 public void addFolderResources(long folderId,
114 boolean addCommunityPermissions, boolean addGuestPermissions)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException;
117
118 public void addFolderResources(
119 com.liferay.portlet.documentlibrary.model.DLFolder folder,
120 boolean addCommunityPermissions, boolean addGuestPermissions)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException;
123
124 public void addFolderResources(long folderId,
125 java.lang.String[] communityPermissions,
126 java.lang.String[] guestPermissions)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException;
129
130 public void addFolderResources(
131 com.liferay.portlet.documentlibrary.model.DLFolder folder,
132 java.lang.String[] communityPermissions,
133 java.lang.String[] guestPermissions)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException;
136
137 public void deleteFolder(long folderId)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException;
140
141 public void deleteFolder(
142 com.liferay.portlet.documentlibrary.model.DLFolder folder)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException;
145
146 public void deleteFolders(long groupId)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.util.List<Object> getFileEntriesAndFileShortcuts(
152 long folderId, int start, int end)
153 throws com.liferay.portal.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public java.util.List<Object> getFileEntriesAndFileShortcuts(
157 java.util.List<Long> folderIds, int start, int end)
158 throws com.liferay.portal.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public int getFileEntriesAndFileShortcutsCount(long folderId)
162 throws com.liferay.portal.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public int getFileEntriesAndFileShortcutsCount(
166 java.util.List<Long> folderIds)
167 throws com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
171 long folderId)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
177 long groupId, long parentFolderId, java.lang.String name)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
183 long folderId, int start, int end)
184 throws com.liferay.portal.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
188 java.util.List<Long> folderIds, int start, int end)
189 throws com.liferay.portal.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId)
193 throws com.liferay.portal.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public int getFoldersAndFileEntriesAndFileShortcutsCount(
197 java.util.List<Long> folderIds)
198 throws com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
202 long companyId) throws com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
206 long groupId, long parentFolderId)
207 throws com.liferay.portal.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
211 long groupId, long parentFolderId, int start, int end)
212 throws com.liferay.portal.SystemException;
213
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public int getFoldersCount(long groupId, long parentFolderId)
216 throws com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public void getSubfolderIds(java.util.List<Long> folderIds, long groupId,
220 long folderId) throws com.liferay.portal.SystemException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public void reIndex(java.lang.String[] ids)
224 throws com.liferay.portal.SystemException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public com.liferay.portal.kernel.search.Hits search(long companyId,
228 long groupId, long userId, long[] folderIds, java.lang.String keywords,
229 int start, int end) throws com.liferay.portal.SystemException;
230
231 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
232 long folderId, long parentFolderId, java.lang.String name,
233 java.lang.String description,
234 com.liferay.portal.service.ServiceContext serviceContext)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException;
237 }