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