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="DLFileEntryService.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.DLFileEntryServiceImpl}}.
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 remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       DLFileEntryServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface DLFileEntryService {
50      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
51          long folderId, java.lang.String name, java.lang.String title,
52          java.lang.String description, java.lang.String extraSettings,
53          byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException;
56  
57      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
58          long folderId, java.lang.String name, java.lang.String title,
59          java.lang.String description, java.lang.String extraSettings,
60          java.io.File file,
61          com.liferay.portal.service.ServiceContext serviceContext)
62          throws com.liferay.portal.PortalException,
63              com.liferay.portal.SystemException;
64  
65      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
66          long folderId, java.lang.String name, java.lang.String title,
67          java.lang.String description, java.lang.String versionDescription,
68          java.lang.String extraSettings, byte[] bytes,
69          com.liferay.portal.service.ServiceContext serviceContext)
70          throws com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
74          long folderId, java.lang.String name, java.lang.String title,
75          java.lang.String description, java.lang.String versionDescription,
76          java.lang.String extraSettings, java.io.File file,
77          com.liferay.portal.service.ServiceContext serviceContext)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException;
80  
81      public void deleteFileEntry(long folderId, java.lang.String name)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException;
84  
85      public void deleteFileEntry(long folderId, java.lang.String name,
86          double version)
87          throws com.liferay.portal.PortalException,
88              com.liferay.portal.SystemException;
89  
90      public void deleteFileEntryByTitle(long folderId,
91          java.lang.String titleWithExtension)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException;
94  
95      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
97          long folderId)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException;
100 
101     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
103         long folderId, java.lang.String name)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException;
106 
107     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
109         long folderId, java.lang.String titleWithExtension)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException;
112 
113     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114     public boolean hasFileEntryLock(long folderId, java.lang.String name)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException;
117 
118     public com.liferay.portal.model.Lock lockFileEntry(long folderId,
119         java.lang.String name)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 
123     public com.liferay.portal.model.Lock lockFileEntry(long folderId,
124         java.lang.String name, java.lang.String owner, long expirationTime)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public com.liferay.portal.model.Lock refreshFileEntryLock(
129         java.lang.String lockUuid, long expirationTime)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public void unlockFileEntry(long folderId, java.lang.String name)
134         throws com.liferay.portal.SystemException;
135 
136     public void unlockFileEntry(long folderId, java.lang.String name,
137         java.lang.String lockUuid)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
142         long folderId, long newFolderId, java.lang.String name,
143         java.lang.String sourceFileName, java.lang.String title,
144         java.lang.String description, java.lang.String extraSettings,
145         byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
150         long folderId, long newFolderId, java.lang.String name,
151         java.lang.String sourceFileName, java.lang.String title,
152         java.lang.String description, java.lang.String extraSettings,
153         java.io.File file,
154         com.liferay.portal.service.ServiceContext serviceContext)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
159         long folderId, long newFolderId, java.lang.String name,
160         java.lang.String sourceFileName, java.lang.String title,
161         java.lang.String description, java.lang.String versionDescription,
162         java.lang.String extraSettings, byte[] bytes,
163         com.liferay.portal.service.ServiceContext serviceContext)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
168         long folderId, long newFolderId, java.lang.String name,
169         java.lang.String sourceFileName, java.lang.String title,
170         java.lang.String description, java.lang.String versionDescription,
171         java.lang.String extraSettings, java.io.File file,
172         com.liferay.portal.service.ServiceContext serviceContext)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException;
175 
176     public boolean verifyFileEntryLock(long folderId, java.lang.String name,
177         java.lang.String lockUuid)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException;
180 }