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      /**
51      * @deprecated
52      */
53      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
54          long folderId, java.lang.String name, java.lang.String title,
55          java.lang.String description, java.lang.String extraSettings,
56          byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException;
59  
60      /**
61      * @deprecated
62      */
63      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
64          long folderId, java.lang.String name, java.lang.String title,
65          java.lang.String description, java.lang.String extraSettings,
66          java.io.File file,
67          com.liferay.portal.service.ServiceContext serviceContext)
68          throws com.liferay.portal.PortalException,
69              com.liferay.portal.SystemException;
70  
71      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
72          long folderId, java.lang.String name, java.lang.String title,
73          java.lang.String description, java.lang.String versionDescription,
74          java.lang.String extraSettings, byte[] bytes,
75          com.liferay.portal.service.ServiceContext serviceContext)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException;
78  
79      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
80          long folderId, java.lang.String name, java.lang.String title,
81          java.lang.String description, java.lang.String versionDescription,
82          java.lang.String extraSettings, java.io.File file,
83          com.liferay.portal.service.ServiceContext serviceContext)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException;
86  
87      public void deleteFileEntry(long folderId, java.lang.String name)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException;
90  
91      public void deleteFileEntry(long folderId, java.lang.String name,
92          double version)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException;
95  
96      public void deleteFileEntryByTitle(long folderId,
97          java.lang.String titleWithExtension)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException;
100 
101     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
103         long folderId)
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 getFileEntry(
109         long folderId, java.lang.String name)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException;
112 
113     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
115         long folderId, java.lang.String titleWithExtension)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException;
118 
119     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120     public com.liferay.portal.model.Lock getFileEntryLock(long folderId,
121         java.lang.String name)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException;
124 
125     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126     public boolean hasFileEntryLock(long folderId, java.lang.String name)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException;
129 
130     public com.liferay.portal.model.Lock lockFileEntry(long folderId,
131         java.lang.String name)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException;
134 
135     public com.liferay.portal.model.Lock lockFileEntry(long folderId,
136         java.lang.String name, java.lang.String owner, long expirationTime)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public com.liferay.portal.model.Lock refreshFileEntryLock(
141         java.lang.String lockUuid, long expirationTime)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException;
144 
145     public void unlockFileEntry(long folderId, java.lang.String name)
146         throws com.liferay.portal.SystemException;
147 
148     public void unlockFileEntry(long folderId, java.lang.String name,
149         java.lang.String lockUuid)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     /**
154     * @deprecated
155     */
156     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
157         long folderId, long newFolderId, java.lang.String name,
158         java.lang.String sourceFileName, java.lang.String title,
159         java.lang.String description, java.lang.String extraSettings,
160         byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     /**
165     * @deprecated
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 extraSettings,
171         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 com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
177         long folderId, long newFolderId, java.lang.String name,
178         java.lang.String sourceFileName, java.lang.String title,
179         java.lang.String description, java.lang.String versionDescription,
180         java.lang.String extraSettings, byte[] bytes,
181         com.liferay.portal.service.ServiceContext serviceContext)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException;
184 
185     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
186         long folderId, long newFolderId, java.lang.String name,
187         java.lang.String sourceFileName, java.lang.String title,
188         java.lang.String description, java.lang.String versionDescription,
189         java.lang.String extraSettings, java.io.File file,
190         com.liferay.portal.service.ServiceContext serviceContext)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 
194     public boolean verifyFileEntryLock(long folderId, java.lang.String name,
195         java.lang.String lockUuid)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException;
198 }