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      @SuppressWarnings("rawtypes")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      @SuppressWarnings("rawtypes")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException;
74  
75      @SuppressWarnings("rawtypes")
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.SystemException;
81  
82      public int dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.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.PortalException,
90              com.liferay.portal.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.PortalException,
96              com.liferay.portal.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) throws com.liferay.portal.SystemException;
101 
102     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103     public int getDLFileEntriesCount()
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
107         com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
108         throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
111         com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
112         boolean merge) throws com.liferay.portal.SystemException;
113 
114     /**
115     * @deprecated
116     */
117     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
118         long userId, long folderId, java.lang.String name,
119         java.lang.String title, java.lang.String description,
120         java.lang.String extraSettings, byte[] bytes,
121         com.liferay.portal.service.ServiceContext serviceContext)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException;
124 
125     /**
126     * @deprecated
127     */
128     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
129         long userId, long folderId, java.lang.String name,
130         java.lang.String title, java.lang.String description,
131         java.lang.String extraSettings, java.io.File file,
132         com.liferay.portal.service.ServiceContext serviceContext)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException;
135 
136     /**
137     * @deprecated
138     */
139     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
140         long userId, long folderId, java.lang.String name,
141         java.lang.String title, java.lang.String description,
142         java.lang.String extraSettings, java.io.InputStream is, int size,
143         com.liferay.portal.service.ServiceContext serviceContext)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     /**
148     * @deprecated
149     */
150     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
151         java.lang.String uuid, long userId, long folderId,
152         java.lang.String name, java.lang.String title,
153         java.lang.String description, java.lang.String extraSettings,
154         byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     /**
159     * @deprecated
160     */
161     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
162         java.lang.String uuid, long userId, long folderId,
163         java.lang.String name, java.lang.String title,
164         java.lang.String description, java.lang.String extraSettings,
165         java.io.File file,
166         com.liferay.portal.service.ServiceContext serviceContext)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException;
169 
170     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
171         java.lang.String uuid, long userId, long folderId,
172         java.lang.String name, java.lang.String title,
173         java.lang.String description, java.lang.String versionDescription,
174         java.lang.String extraSettings, byte[] bytes,
175         com.liferay.portal.service.ServiceContext serviceContext)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException;
178 
179     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
180         java.lang.String uuid, long userId, long folderId,
181         java.lang.String name, java.lang.String title,
182         java.lang.String description, java.lang.String versionDescription,
183         java.lang.String extraSettings, java.io.File file,
184         com.liferay.portal.service.ServiceContext serviceContext)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
189         java.lang.String uuid, long userId, long folderId,
190         java.lang.String name, java.lang.String title,
191         java.lang.String description, java.lang.String versionDescription,
192         java.lang.String extraSettings, java.io.InputStream is, long size,
193         com.liferay.portal.service.ServiceContext serviceContext)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     public void addFileEntryResources(
198         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
199         boolean addCommunityPermissions, boolean addGuestPermissions)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException;
202 
203     public void addFileEntryResources(
204         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
205         java.lang.String[] communityPermissions,
206         java.lang.String[] guestPermissions)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException;
209 
210     public void addFileEntryResources(long fileEntryId,
211         boolean addCommunityPermissions, boolean addGuestPermissions)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException;
214 
215     public void addFileEntryResources(long fileEntryId,
216         java.lang.String[] communityPermissions,
217         java.lang.String[] guestPermissions)
218         throws com.liferay.portal.PortalException,
219             com.liferay.portal.SystemException;
220 
221     public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
222         long userId, long folderId, java.lang.String name,
223         java.lang.String sourceName, java.lang.String title,
224         java.lang.String description, java.lang.String extraSettings,
225         java.io.File file,
226         com.liferay.portal.service.ServiceContext serviceContext)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException;
229 
230     public void deleteFileEntries(long folderId)
231         throws com.liferay.portal.PortalException,
232             com.liferay.portal.SystemException;
233 
234     public void deleteFileEntry(
235         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException;
238 
239     public void deleteFileEntry(long folderId, java.lang.String name)
240         throws com.liferay.portal.PortalException,
241             com.liferay.portal.SystemException;
242 
243     public void deleteFileEntry(long folderId, java.lang.String name,
244         double version)
245         throws com.liferay.portal.PortalException,
246             com.liferay.portal.SystemException;
247 
248     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
250         long companyId, int start, int end)
251         throws com.liferay.portal.SystemException;
252 
253     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
255         long companyId, int start, int end,
256         com.liferay.portal.kernel.util.OrderByComparator obc)
257         throws com.liferay.portal.SystemException;
258 
259     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260     public int getCompanyFileEntriesCount(long companyId)
261         throws com.liferay.portal.SystemException;
262 
263     public java.io.InputStream getFileAsStream(long companyId, long userId,
264         long folderId, java.lang.String name)
265         throws com.liferay.portal.PortalException,
266             com.liferay.portal.SystemException;
267 
268     public java.io.InputStream getFileAsStream(long companyId, long userId,
269         long folderId, java.lang.String name, double version)
270         throws com.liferay.portal.PortalException,
271             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) throws com.liferay.portal.SystemException;
276 
277     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
279         long folderId, int start, int end)
280         throws com.liferay.portal.SystemException;
281 
282     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
284         long folderId, int start, int end,
285         com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException;
287 
288     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289     public int getFileEntriesCount(long folderId)
290         throws com.liferay.portal.SystemException;
291 
292     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
294         long fileEntryId)
295         throws com.liferay.portal.PortalException,
296             com.liferay.portal.SystemException;
297 
298     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
300         long folderId, java.lang.String name)
301         throws com.liferay.portal.PortalException,
302             com.liferay.portal.SystemException;
303 
304     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
306         long folderId, java.lang.String titleWithExtension)
307         throws com.liferay.portal.PortalException,
308             com.liferay.portal.SystemException;
309 
310     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
312         java.lang.String uuid, long groupId)
313         throws com.liferay.portal.PortalException,
314             com.liferay.portal.SystemException;
315 
316     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317     public int getFoldersFileEntriesCount(
318         java.util.List<java.lang.Long> folderIds)
319         throws com.liferay.portal.SystemException;
320 
321     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
323         long groupId, int start, int end)
324         throws com.liferay.portal.SystemException;
325 
326     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
328         long groupId, int start, int end,
329         com.liferay.portal.kernel.util.OrderByComparator obc)
330         throws com.liferay.portal.SystemException;
331 
332     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
334         long groupId, long userId, int start, int end)
335         throws com.liferay.portal.SystemException;
336 
337     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
339         long groupId, long userId, int start, int end,
340         com.liferay.portal.kernel.util.OrderByComparator obc)
341         throws com.liferay.portal.SystemException;
342 
343     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344     public int getGroupFileEntriesCount(long groupId)
345         throws com.liferay.portal.SystemException;
346 
347     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348     public int getGroupFileEntriesCount(long groupId, long userId)
349         throws com.liferay.portal.SystemException;
350 
351     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
353         throws com.liferay.portal.SystemException;
354 
355     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356     public void reIndex(long fileEntryId)
357         throws com.liferay.portal.SystemException;
358 
359     /**
360     * @deprecated
361     */
362     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
363         long userId, long folderId, long newFolderId, java.lang.String name,
364         java.lang.String sourceFileName, java.lang.String title,
365         java.lang.String description, java.lang.String extraSettings,
366         byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
367         throws com.liferay.portal.PortalException,
368             com.liferay.portal.SystemException;
369 
370     /**
371     * @deprecated
372     */
373     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
374         long userId, long folderId, long newFolderId, java.lang.String name,
375         java.lang.String sourceFileName, java.lang.String title,
376         java.lang.String description, java.lang.String extraSettings,
377         java.io.File file,
378         com.liferay.portal.service.ServiceContext serviceContext)
379         throws com.liferay.portal.PortalException,
380             com.liferay.portal.SystemException;
381 
382     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
383         long userId, long folderId, long newFolderId, java.lang.String name,
384         java.lang.String sourceFileName, java.lang.String title,
385         java.lang.String description, java.lang.String versionDescription,
386         java.lang.String extraSettings, byte[] bytes,
387         com.liferay.portal.service.ServiceContext serviceContext)
388         throws com.liferay.portal.PortalException,
389             com.liferay.portal.SystemException;
390 
391     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
392         long userId, long folderId, long newFolderId, java.lang.String name,
393         java.lang.String sourceFileName, java.lang.String title,
394         java.lang.String description, java.lang.String versionDescription,
395         java.lang.String extraSettings, java.io.File file,
396         com.liferay.portal.service.ServiceContext serviceContext)
397         throws com.liferay.portal.PortalException,
398             com.liferay.portal.SystemException;
399 
400     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
401         long userId, long folderId, long newFolderId, java.lang.String name,
402         java.lang.String sourceFileName, java.lang.String title,
403         java.lang.String description, java.lang.String versionDescription,
404         java.lang.String extraSettings, java.io.InputStream is, long size,
405         com.liferay.portal.service.ServiceContext serviceContext)
406         throws com.liferay.portal.PortalException,
407             com.liferay.portal.SystemException;
408 
409     public void updateTagsAsset(long userId,
410         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
411         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
412         throws com.liferay.portal.PortalException,
413             com.liferay.portal.SystemException;
414 }