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