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