1
22
23 package com.liferay.portlet.documentlibrary.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface DLFileEntryLocalService {
57 public com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
58 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
62 long fileEntryId);
63
64 public void deleteDLFileEntry(long fileEntryId)
65 throws com.liferay.portal.SystemException,
66 com.liferay.portal.PortalException;
67
68 public void deleteDLFileEntry(
69 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
70 throws com.liferay.portal.SystemException;
71
72 public java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74 throws com.liferay.portal.SystemException;
75
76 public java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
82 long fileEntryId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getDLFileEntriesCount()
92 throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
95 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
96 throws com.liferay.portal.SystemException;
97
98 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
99 long userId, long folderId, java.lang.String name,
100 java.lang.String title, java.lang.String description,
101 java.lang.String[] tagsEntries, java.lang.String extraSettings,
102 java.io.File file, boolean addCommunityPermissions,
103 boolean addGuestPermissions)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106
107 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
108 long userId, long folderId, java.lang.String name,
109 java.lang.String title, java.lang.String description,
110 java.lang.String[] tagsEntries, java.lang.String extraSettings,
111 byte[] bytes, boolean addCommunityPermissions,
112 boolean addGuestPermissions)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
117 java.lang.String uuid, long userId, long folderId,
118 java.lang.String name, java.lang.String title,
119 java.lang.String description, java.lang.String[] tagsEntries,
120 java.lang.String extraSettings, byte[] bytes,
121 boolean addCommunityPermissions, boolean addGuestPermissions)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException;
124
125 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
126 long userId, long folderId, java.lang.String name,
127 java.lang.String title, java.lang.String description,
128 java.lang.String[] tagsEntries, java.lang.String extraSettings,
129 java.io.File file, java.lang.String[] communityPermissions,
130 java.lang.String[] guestPermissions)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException;
133
134 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
135 long userId, long folderId, java.lang.String name,
136 java.lang.String title, java.lang.String description,
137 java.lang.String[] tagsEntries, java.lang.String extraSettings,
138 byte[] bytes, java.lang.String[] communityPermissions,
139 java.lang.String[] guestPermissions)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
144 long userId, long folderId, java.lang.String name,
145 java.lang.String title, java.lang.String description,
146 java.lang.String[] tagsEntries, java.lang.String extraSettings,
147 java.io.File file, java.lang.Boolean addCommunityPermissions,
148 java.lang.Boolean addGuestPermissions,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException;
153
154 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
155 java.lang.String uuid, long userId, long folderId,
156 java.lang.String name, java.lang.String title,
157 java.lang.String description, java.lang.String[] tagsEntries,
158 java.lang.String extraSettings, byte[] bytes,
159 java.lang.Boolean addCommunityPermissions,
160 java.lang.Boolean addGuestPermissions,
161 java.lang.String[] communityPermissions,
162 java.lang.String[] guestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
167 java.lang.String uuid, long userId, long folderId,
168 java.lang.String name, java.lang.String title,
169 java.lang.String description, java.lang.String[] tagsEntries,
170 java.lang.String extraSettings, java.io.InputStream is, long size,
171 java.lang.Boolean addCommunityPermissions,
172 java.lang.Boolean addGuestPermissions,
173 java.lang.String[] communityPermissions,
174 java.lang.String[] guestPermissions)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException;
177
178 public void addFileEntryResources(long folderId, java.lang.String name,
179 boolean addCommunityPermissions, boolean addGuestPermissions)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException;
182
183 public void addFileEntryResources(
184 com.liferay.portlet.documentlibrary.model.DLFolder folder,
185 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
186 boolean addCommunityPermissions, boolean addGuestPermissions)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException;
189
190 public void addFileEntryResources(long folderId, java.lang.String name,
191 java.lang.String[] communityPermissions,
192 java.lang.String[] guestPermissions)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException;
195
196 public void addFileEntryResources(
197 com.liferay.portlet.documentlibrary.model.DLFolder folder,
198 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
199 java.lang.String[] communityPermissions,
200 java.lang.String[] guestPermissions)
201 throws com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException;
203
204 public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
205 long userId, long folderId, java.lang.String name,
206 java.lang.String sourceName, java.lang.String title,
207 java.lang.String description, java.lang.String[] tagsEntries,
208 java.lang.String extraSettings, java.io.File file,
209 boolean addCommunityPermissions, boolean addGuestPermissions)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException;
212
213 public void deleteFileEntries(long folderId)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException;
216
217 public void deleteFileEntry(long folderId, java.lang.String name)
218 throws com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException;
220
221 public void deleteFileEntry(long folderId, java.lang.String name,
222 double version)
223 throws com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException;
225
226 public void deleteFileEntry(
227 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException;
230
231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
233 long companyId, int start, int end)
234 throws com.liferay.portal.SystemException;
235
236 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
238 long companyId, int start, int end,
239 com.liferay.portal.kernel.util.OrderByComparator obc)
240 throws com.liferay.portal.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public int getCompanyFileEntriesCount(long companyId)
244 throws com.liferay.portal.SystemException;
245
246 public java.io.InputStream getFileAsStream(long companyId, long userId,
247 long folderId, java.lang.String name)
248 throws com.liferay.portal.PortalException,
249 com.liferay.portal.SystemException;
250
251 public java.io.InputStream getFileAsStream(long companyId, long userId,
252 long folderId, java.lang.String name, double version)
253 throws com.liferay.portal.PortalException,
254 com.liferay.portal.SystemException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
258 long folderId) throws com.liferay.portal.SystemException;
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
262 long folderId, int start, int end)
263 throws com.liferay.portal.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
267 long folderId, int start, int end,
268 com.liferay.portal.kernel.util.OrderByComparator obc)
269 throws com.liferay.portal.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<Object> getFileEntriesAndShortcuts(long folderId,
273 int start, int end) throws com.liferay.portal.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<Object> getFileEntriesAndShortcuts(
277 java.util.List<Long> folderIds, int start, int end)
278 throws com.liferay.portal.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public int getFileEntriesAndShortcutsCount(long folderId)
282 throws com.liferay.portal.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public int getFileEntriesAndShortcutsCount(java.util.List<Long> folderIds)
286 throws com.liferay.portal.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public int getFileEntriesCount(long folderId)
290 throws com.liferay.portal.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
294 long fileEntryId)
295 throws com.liferay.portal.PortalException,
296 com.liferay.portal.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
300 long folderId, java.lang.String name)
301 throws com.liferay.portal.PortalException,
302 com.liferay.portal.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
306 java.lang.String uuid, long groupId)
307 throws com.liferay.portal.PortalException,
308 com.liferay.portal.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
312 long folderId, java.lang.String titleWithExtension)
313 throws com.liferay.portal.PortalException,
314 com.liferay.portal.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public int getFoldersFileEntriesCount(java.util.List<Long> folderIds)
318 throws com.liferay.portal.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
322 long groupId, int start, int end)
323 throws com.liferay.portal.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
327 long groupId, int start, int end,
328 com.liferay.portal.kernel.util.OrderByComparator obc)
329 throws com.liferay.portal.SystemException;
330
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
333 long groupId, long userId, int start, int end)
334 throws com.liferay.portal.SystemException;
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
338 long groupId, long userId, int start, int end,
339 com.liferay.portal.kernel.util.OrderByComparator obc)
340 throws com.liferay.portal.SystemException;
341
342 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343 public int getGroupFileEntriesCount(long groupId)
344 throws com.liferay.portal.SystemException;
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public int getGroupFileEntriesCount(long groupId, long userId)
348 throws com.liferay.portal.SystemException;
349
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
352 throws com.liferay.portal.SystemException;
353
354 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
355 long userId, long folderId, long newFolderId, java.lang.String name,
356 java.lang.String sourceFileName, java.lang.String title,
357 java.lang.String description, java.lang.String[] tagsEntries,
358 java.lang.String extraSettings, java.io.File file)
359 throws com.liferay.portal.PortalException,
360 com.liferay.portal.SystemException;
361
362 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
363 long userId, long folderId, long newFolderId, java.lang.String name,
364 java.lang.String sourceFileName, java.lang.String title,
365 java.lang.String description, java.lang.String[] tagsEntries,
366 java.lang.String extraSettings, byte[] bytes)
367 throws com.liferay.portal.PortalException,
368 com.liferay.portal.SystemException;
369
370 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
371 long userId, long folderId, long newFolderId, java.lang.String name,
372 java.lang.String sourceFileName, java.lang.String title,
373 java.lang.String description, java.lang.String[] tagsEntries,
374 java.lang.String extraSettings, java.io.InputStream is, long size)
375 throws com.liferay.portal.PortalException,
376 com.liferay.portal.SystemException;
377
378 public void updateTagsAsset(long userId,
379 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
380 java.lang.String[] tagsEntries)
381 throws com.liferay.portal.PortalException,
382 com.liferay.portal.SystemException;
383 }