001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface DLFileEntryLocalService {
043 public com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
044 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
048 long fileEntryId);
049
050 public void deleteDLFileEntry(long fileEntryId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteDLFileEntry(
055 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
081 long fileEntryId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
087 java.lang.String uuid, long groupId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
093 int start, int end)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public int getDLFileEntriesCount()
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
101 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
105 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
106 boolean merge)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
110 long userId, long groupId, long folderId, java.lang.String name,
111 java.lang.String title, java.lang.String description,
112 java.lang.String changeLog, java.lang.String extraSettings,
113 byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException;
116
117 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
118 long userId, long groupId, long folderId, java.lang.String name,
119 java.lang.String title, java.lang.String description,
120 java.lang.String changeLog, java.lang.String extraSettings,
121 java.io.File file,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
127 long userId, long groupId, long folderId, java.lang.String name,
128 java.lang.String title, java.lang.String description,
129 java.lang.String changeLog, java.lang.String extraSettings,
130 java.io.InputStream is, long size,
131 com.liferay.portal.service.ServiceContext serviceContext)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 public void addFileEntryResources(
136 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
137 boolean addCommunityPermissions, boolean addGuestPermissions)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException;
140
141 public void addFileEntryResources(
142 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
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 void addFileEntryResources(long fileEntryId,
149 boolean addCommunityPermissions, boolean addGuestPermissions)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException;
152
153 public void addFileEntryResources(long fileEntryId,
154 java.lang.String[] communityPermissions,
155 java.lang.String[] guestPermissions)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
160 long userId, long groupId, long folderId, java.lang.String name,
161 java.lang.String sourceName, java.lang.String title,
162 java.lang.String description, java.lang.String changeLog,
163 java.lang.String extraSettings, java.io.File file,
164 com.liferay.portal.service.ServiceContext serviceContext)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 public void deleteFileEntries(long groupId, long folderId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 public void deleteFileEntry(
173 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177 public void deleteFileEntry(long groupId, long folderId,
178 java.lang.String name)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException;
181
182 public void deleteFileEntry(long groupId, long folderId,
183 java.lang.String name, java.lang.String version)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
189 long companyId, int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
194 long companyId, int start, int end,
195 com.liferay.portal.kernel.util.OrderByComparator obc)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getCompanyFileEntriesCount(long companyId)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202 public java.io.InputStream getFileAsStream(long companyId, long userId,
203 long groupId, long folderId, java.lang.String name)
204 throws com.liferay.portal.kernel.exception.PortalException,
205 com.liferay.portal.kernel.exception.SystemException;
206
207 public java.io.InputStream getFileAsStream(long companyId, long userId,
208 long groupId, long folderId, java.lang.String name,
209 java.lang.String version)
210 throws com.liferay.portal.kernel.exception.PortalException,
211 com.liferay.portal.kernel.exception.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
215 long groupId, long folderId)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
220 long groupId, long folderId, int start, int end)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
225 long groupId, long folderId, int start, int end,
226 com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.kernel.exception.SystemException;
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public int getFileEntriesCount(long groupId, long folderId)
231 throws com.liferay.portal.kernel.exception.SystemException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
235 long fileEntryId)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException;
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
241 long groupId, long folderId, java.lang.String name)
242 throws com.liferay.portal.kernel.exception.PortalException,
243 com.liferay.portal.kernel.exception.SystemException;
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
247 long groupId, long folderId, java.lang.String title)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
253 java.lang.String uuid, long groupId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public int getFoldersFileEntriesCount(long groupId,
259 java.util.List<java.lang.Long> folderIds, int status)
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, 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, 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 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
275 long groupId, long userId, int start, int end)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
280 long groupId, long userId, int start, int end,
281 com.liferay.portal.kernel.util.OrderByComparator obc)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public int getGroupFileEntriesCount(long groupId)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public int getGroupFileEntriesCount(long groupId, long userId)
290 throws com.liferay.portal.kernel.exception.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296 public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
297 long userId, long groupId, long folderId, long newFolderId,
298 java.lang.String name,
299 com.liferay.portal.service.ServiceContext serviceContext)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException;
302
303 public void updateAsset(long userId,
304 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
305 com.liferay.portlet.documentlibrary.model.DLFileVersion fileVersion,
306 long[] assetCategoryIds, java.lang.String[] assetTagNames)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException;
309
310 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
311 long userId, long groupId, long folderId, java.lang.String name,
312 java.lang.String sourceFileName, java.lang.String title,
313 java.lang.String description, java.lang.String changeLog,
314 boolean majorVersion, java.lang.String extraSettings, byte[] bytes,
315 com.liferay.portal.service.ServiceContext serviceContext)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException;
318
319 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
320 long userId, long groupId, long folderId, java.lang.String name,
321 java.lang.String sourceFileName, java.lang.String title,
322 java.lang.String description, java.lang.String changeLog,
323 boolean majorVersion, java.lang.String extraSettings,
324 java.io.File file,
325 com.liferay.portal.service.ServiceContext serviceContext)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException;
328
329 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
330 long userId, long groupId, long folderId, java.lang.String name,
331 java.lang.String sourceFileName, java.lang.String title,
332 java.lang.String description, java.lang.String changeLog,
333 boolean majorVersion, java.lang.String extraSettings,
334 java.io.InputStream is, long size,
335 com.liferay.portal.service.ServiceContext serviceContext)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException;
338
339 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
340 long userId, long fileEntryId, int status,
341 com.liferay.portal.service.ServiceContext serviceContext)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException;
344 }