1
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
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface DLFileEntryService {
50
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
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
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
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 }