1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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  /**
24   * <a href="DLFileEntryLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       DLFileEntryLocalServiceUtil
45   * @generated
46   */
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      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
75          long fileEntryId)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.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) throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public int getDLFileEntriesCount()
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
88          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
89          throws com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
92          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
93          boolean merge) throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
96          long userId, long folderId, java.lang.String name,
97          java.lang.String title, java.lang.String description,
98          java.lang.String[] tagsEntries, java.lang.String extraSettings,
99          byte[] bytes, boolean addCommunityPermissions,
100         boolean addGuestPermissions)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
105         long userId, long folderId, java.lang.String name,
106         java.lang.String title, java.lang.String description,
107         java.lang.String[] tagsEntries, java.lang.String extraSettings,
108         byte[] bytes, java.lang.String[] communityPermissions,
109         java.lang.String[] guestPermissions)
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[] tagsEntries, java.lang.String extraSettings,
117         java.io.File file, boolean addCommunityPermissions,
118         boolean addGuestPermissions)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
123         long userId, long folderId, java.lang.String name,
124         java.lang.String title, java.lang.String description,
125         java.lang.String[] tagsEntries, java.lang.String extraSettings,
126         java.io.File file, java.lang.Boolean addCommunityPermissions,
127         java.lang.Boolean addGuestPermissions,
128         java.lang.String[] communityPermissions,
129         java.lang.String[] guestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
134         long userId, long folderId, java.lang.String name,
135         java.lang.String title, java.lang.String description,
136         java.lang.String[] tagsEntries, java.lang.String extraSettings,
137         java.io.File file, java.lang.String[] communityPermissions,
138         java.lang.String[] guestPermissions)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
143         long userId, long folderId, java.lang.String name,
144         java.lang.String title, java.lang.String description,
145         java.lang.String[] tagsEntries, java.lang.String extraSettings,
146         java.io.InputStream is, int size, boolean addCommunityPermissions,
147         boolean addGuestPermissions)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
152         java.lang.String uuid, long userId, long folderId,
153         java.lang.String name, java.lang.String title,
154         java.lang.String description, java.lang.String[] tagsEntries,
155         java.lang.String extraSettings, byte[] bytes,
156         boolean addCommunityPermissions, boolean addGuestPermissions)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
161         java.lang.String uuid, long userId, long folderId,
162         java.lang.String name, java.lang.String title,
163         java.lang.String description, java.lang.String[] tagsEntries,
164         java.lang.String extraSettings, byte[] bytes,
165         java.lang.Boolean addCommunityPermissions,
166         java.lang.Boolean addGuestPermissions,
167         java.lang.String[] communityPermissions,
168         java.lang.String[] guestPermissions)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException;
171 
172     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
173         java.lang.String uuid, long userId, long folderId,
174         java.lang.String name, java.lang.String title,
175         java.lang.String description, java.lang.String[] tagsEntries,
176         java.lang.String extraSettings, java.io.InputStream is, int size,
177         boolean addCommunityPermissions, boolean addGuestPermissions)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException;
180 
181     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
182         java.lang.String uuid, long userId, long folderId,
183         java.lang.String name, java.lang.String title,
184         java.lang.String description, java.lang.String[] tagsEntries,
185         java.lang.String extraSettings, java.io.InputStream is, long size,
186         java.lang.Boolean addCommunityPermissions,
187         java.lang.Boolean addGuestPermissions,
188         java.lang.String[] communityPermissions,
189         java.lang.String[] guestPermissions)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException;
192 
193     public void addFileEntryResources(
194         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
195         boolean addCommunityPermissions, boolean addGuestPermissions)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException;
198 
199     public void addFileEntryResources(
200         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
201         java.lang.String[] communityPermissions,
202         java.lang.String[] guestPermissions)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException;
205 
206     public void addFileEntryResources(long fileEntryId,
207         boolean addCommunityPermissions, boolean addGuestPermissions)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException;
210 
211     public void addFileEntryResources(long fileEntryId,
212         java.lang.String[] communityPermissions,
213         java.lang.String[] guestPermissions)
214         throws com.liferay.portal.PortalException,
215             com.liferay.portal.SystemException;
216 
217     public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
218         long userId, long folderId, java.lang.String name,
219         java.lang.String sourceName, java.lang.String title,
220         java.lang.String description, java.lang.String[] tagsEntries,
221         java.lang.String extraSettings, java.io.File file,
222         boolean addCommunityPermissions, boolean addGuestPermissions)
223         throws com.liferay.portal.PortalException,
224             com.liferay.portal.SystemException;
225 
226     public void deleteFileEntries(long folderId)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException;
229 
230     public void deleteFileEntry(
231         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
232         throws com.liferay.portal.PortalException,
233             com.liferay.portal.SystemException;
234 
235     public void deleteFileEntry(long folderId, java.lang.String name)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException;
238 
239     public void deleteFileEntry(long folderId, java.lang.String name,
240         double version)
241         throws com.liferay.portal.PortalException,
242             com.liferay.portal.SystemException;
243 
244     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
246         long companyId, int start, int end)
247         throws com.liferay.portal.SystemException;
248 
249     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
251         long companyId, int start, int end,
252         com.liferay.portal.kernel.util.OrderByComparator obc)
253         throws com.liferay.portal.SystemException;
254 
255     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256     public int getCompanyFileEntriesCount(long companyId)
257         throws com.liferay.portal.SystemException;
258 
259     public java.io.InputStream getFileAsStream(long companyId, long userId,
260         long folderId, java.lang.String name)
261         throws com.liferay.portal.PortalException,
262             com.liferay.portal.SystemException;
263 
264     public java.io.InputStream getFileAsStream(long companyId, long userId,
265         long folderId, java.lang.String name, double version)
266         throws com.liferay.portal.PortalException,
267             com.liferay.portal.SystemException;
268 
269     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
271         long folderId) throws com.liferay.portal.SystemException;
272 
273     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
275         long folderId, int start, int end)
276         throws com.liferay.portal.SystemException;
277 
278     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
280         long folderId, int start, int end,
281         com.liferay.portal.kernel.util.OrderByComparator obc)
282         throws com.liferay.portal.SystemException;
283 
284     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285     public java.util.List<Object> getFileEntriesAndShortcuts(
286         java.util.List<Long> folderIds, int start, int end)
287         throws com.liferay.portal.SystemException;
288 
289     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290     public java.util.List<Object> getFileEntriesAndShortcuts(long folderId,
291         int start, int end) throws com.liferay.portal.SystemException;
292 
293     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294     public int getFileEntriesAndShortcutsCount(java.util.List<Long> folderIds)
295         throws com.liferay.portal.SystemException;
296 
297     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298     public int getFileEntriesAndShortcutsCount(long folderId)
299         throws com.liferay.portal.SystemException;
300 
301     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302     public int getFileEntriesCount(long folderId)
303         throws com.liferay.portal.SystemException;
304 
305     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
307         long fileEntryId)
308         throws com.liferay.portal.PortalException,
309             com.liferay.portal.SystemException;
310 
311     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
313         long folderId, java.lang.String name)
314         throws com.liferay.portal.PortalException,
315             com.liferay.portal.SystemException;
316 
317     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
319         long folderId, java.lang.String titleWithExtension)
320         throws com.liferay.portal.PortalException,
321             com.liferay.portal.SystemException;
322 
323     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
325         java.lang.String uuid, long groupId)
326         throws com.liferay.portal.PortalException,
327             com.liferay.portal.SystemException;
328 
329     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330     public int getFoldersFileEntriesCount(java.util.List<Long> folderIds)
331         throws com.liferay.portal.SystemException;
332 
333     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
335         long groupId, int start, int end)
336         throws com.liferay.portal.SystemException;
337 
338     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
340         long groupId, int start, int end,
341         com.liferay.portal.kernel.util.OrderByComparator obc)
342         throws com.liferay.portal.SystemException;
343 
344     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
346         long groupId, long userId, int start, int end)
347         throws com.liferay.portal.SystemException;
348 
349     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
351         long groupId, long userId, int start, int end,
352         com.liferay.portal.kernel.util.OrderByComparator obc)
353         throws com.liferay.portal.SystemException;
354 
355     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356     public int getGroupFileEntriesCount(long groupId)
357         throws com.liferay.portal.SystemException;
358 
359     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360     public int getGroupFileEntriesCount(long groupId, long userId)
361         throws com.liferay.portal.SystemException;
362 
363     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
365         throws com.liferay.portal.SystemException;
366 
367     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
368         long userId, long folderId, long newFolderId, java.lang.String name,
369         java.lang.String sourceFileName, java.lang.String title,
370         java.lang.String description, java.lang.String[] tagsEntries,
371         java.lang.String extraSettings, byte[] bytes)
372         throws com.liferay.portal.PortalException,
373             com.liferay.portal.SystemException;
374 
375     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
376         long userId, long folderId, long newFolderId, java.lang.String name,
377         java.lang.String sourceFileName, java.lang.String title,
378         java.lang.String description, java.lang.String[] tagsEntries,
379         java.lang.String extraSettings, java.io.File file)
380         throws com.liferay.portal.PortalException,
381             com.liferay.portal.SystemException;
382 
383     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
384         long userId, long folderId, long newFolderId, java.lang.String name,
385         java.lang.String sourceFileName, java.lang.String title,
386         java.lang.String description, java.lang.String[] tagsEntries,
387         java.lang.String extraSettings, java.io.InputStream is, long size)
388         throws com.liferay.portal.PortalException,
389             com.liferay.portal.SystemException;
390 
391     public void updateTagsAsset(long userId,
392         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
393         java.lang.String[] tagsEntries)
394         throws com.liferay.portal.PortalException,
395             com.liferay.portal.SystemException;
396 }