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