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 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.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)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getDLFileEntriesCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
99 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
103 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
104 boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
108 java.lang.String uuid, long userId, long groupId, long folderId,
109 java.lang.String name, java.lang.String title,
110 java.lang.String description, java.lang.String versionDescription,
111 java.lang.String extraSettings, byte[] bytes,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 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, java.io.File file,
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.InputStream is, long size,
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 void addFileEntryResources(
135 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
136 boolean addCommunityPermissions, boolean addGuestPermissions)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public void addFileEntryResources(
141 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
142 java.lang.String[] communityPermissions,
143 java.lang.String[] guestPermissions)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146
147 public void addFileEntryResources(long fileEntryId,
148 boolean addCommunityPermissions, boolean addGuestPermissions)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException;
151
152 public void addFileEntryResources(long fileEntryId,
153 java.lang.String[] communityPermissions,
154 java.lang.String[] guestPermissions)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException;
157
158 public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
159 long userId, long groupId, long folderId, java.lang.String name,
160 java.lang.String sourceName, java.lang.String title,
161 java.lang.String description, java.lang.String versionDescription,
162 java.lang.String extraSettings, java.io.File file,
163 com.liferay.portal.service.ServiceContext serviceContext)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 public void deleteFileEntries(long groupId, long folderId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 public void deleteFileEntry(
172 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException;
175
176 public void deleteFileEntry(long groupId, long folderId,
177 java.lang.String name)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181 public void deleteFileEntry(long groupId, long folderId,
182 java.lang.String name, java.lang.String version)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
188 long companyId, int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
193 long companyId, int start, int end,
194 com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.kernel.exception.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public int getCompanyFileEntriesCount(long companyId)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201 public java.io.InputStream getFileAsStream(long companyId, long userId,
202 long groupId, long folderId, java.lang.String name)
203 throws com.liferay.portal.kernel.exception.PortalException,
204 com.liferay.portal.kernel.exception.SystemException;
205
206 public java.io.InputStream getFileAsStream(long companyId, long userId,
207 long groupId, long folderId, java.lang.String name,
208 java.lang.String version)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
214 long groupId, long folderId)
215 throws com.liferay.portal.kernel.exception.SystemException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
219 long groupId, long folderId, int start, int end)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
224 long groupId, long folderId, int start, int end,
225 com.liferay.portal.kernel.util.OrderByComparator obc)
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public int getFileEntriesCount(long groupId, long folderId)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
234 long fileEntryId)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
240 long groupId, long folderId, java.lang.String name)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException;
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
246 long groupId, long folderId, java.lang.String title)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
252 java.lang.String uuid, long groupId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public int getFoldersFileEntriesCount(long groupId,
258 java.util.List<Long> folderIds, int status)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
263 long groupId, int start, int end)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
268 long groupId, int start, int end,
269 com.liferay.portal.kernel.util.OrderByComparator obc)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
274 long groupId, long userId, int start, int end)
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
279 long groupId, long userId, int start, int end,
280 com.liferay.portal.kernel.util.OrderByComparator obc)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public int getGroupFileEntriesCount(long groupId)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public int getGroupFileEntriesCount(long groupId, long userId)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 public void updateAsset(long userId,
296 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
297 long[] assetCategoryIds, java.lang.String[] assetTagNames)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException;
300
301 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
302 long userId, long groupId, long folderId, long newFolderId,
303 java.lang.String name, java.lang.String sourceFileName,
304 java.lang.String title, java.lang.String description,
305 java.lang.String versionDescription, boolean majorVersion,
306 java.lang.String extraSettings, byte[] bytes,
307 com.liferay.portal.service.ServiceContext serviceContext)
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, java.io.File file,
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.InputStream is, long size,
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 updateStatus(
332 long userId, long fileEntryId,
333 com.liferay.portal.service.ServiceContext serviceContext)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException;
336 }