001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.service.ServiceWrapper;
018
019
028 public class DLFileEntryServiceWrapper implements DLFileEntryService,
029 ServiceWrapper<DLFileEntryService> {
030 public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
031 _dlFileEntryService = dlFileEntryService;
032 }
033
034 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
035 long groupId, long repositoryId, long folderId,
036 java.lang.String sourceFileName, java.lang.String mimeType,
037 java.lang.String title, java.lang.String description,
038 java.lang.String changeLog, long fileEntryTypeId,
039 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
040 java.io.File file, java.io.InputStream is, long size,
041 com.liferay.portal.service.ServiceContext serviceContext)
042 throws com.liferay.portal.kernel.exception.PortalException,
043 com.liferay.portal.kernel.exception.SystemException {
044 return _dlFileEntryService.addFileEntry(groupId, repositoryId,
045 folderId, sourceFileName, mimeType, title, description, changeLog,
046 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
047 }
048
049 public void cancelCheckOut(long fileEntryId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException {
052 _dlFileEntryService.cancelCheckOut(fileEntryId);
053 }
054
055 public void checkInFileEntry(long fileEntryId, boolean major,
056 java.lang.String changeLog,
057 com.liferay.portal.service.ServiceContext serviceContext)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException {
060 _dlFileEntryService.checkInFileEntry(fileEntryId, major, changeLog,
061 serviceContext);
062 }
063
064 public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 _dlFileEntryService.checkInFileEntry(fileEntryId, lockUuid);
068 }
069
070
073 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
074 long fileEntryId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return _dlFileEntryService.checkOutFileEntry(fileEntryId);
078 }
079
080 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
081 long fileEntryId,
082 com.liferay.portal.service.ServiceContext serviceContext)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 return _dlFileEntryService.checkOutFileEntry(fileEntryId, serviceContext);
086 }
087
088
092 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
093 long fileEntryId, java.lang.String owner, long expirationTime)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
097 expirationTime);
098 }
099
100 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
101 long fileEntryId, java.lang.String owner, long expirationTime,
102 com.liferay.portal.service.ServiceContext serviceContext)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException {
105 return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
106 expirationTime, serviceContext);
107 }
108
109 public com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
110 long groupId, long repositoryId, long fileEntryId, long destFolderId,
111 com.liferay.portal.service.ServiceContext serviceContext)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException {
114 return _dlFileEntryService.copyFileEntry(groupId, repositoryId,
115 fileEntryId, destFolderId, serviceContext);
116 }
117
118 public void deleteFileEntry(long fileEntryId)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException {
121 _dlFileEntryService.deleteFileEntry(fileEntryId);
122 }
123
124 public void deleteFileEntry(long groupId, long folderId,
125 java.lang.String title)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException {
128 _dlFileEntryService.deleteFileEntry(groupId, folderId, title);
129 }
130
131 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByImageId(
132 long imageId)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 return _dlFileEntryService.fetchFileEntryByImageId(imageId);
136 }
137
138 public java.io.InputStream getFileAsStream(long fileEntryId,
139 java.lang.String version)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return _dlFileEntryService.getFileAsStream(fileEntryId, version);
143 }
144
145 public java.io.InputStream getFileAsStream(long fileEntryId,
146 java.lang.String version, boolean incrementCounter)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 return _dlFileEntryService.getFileAsStream(fileEntryId, version,
150 incrementCounter);
151 }
152
153 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
154 long groupId, long folderId, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return _dlFileEntryService.getFileEntries(groupId, folderId, start,
158 end, obc);
159 }
160
161 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
162 long groupId, long folderId, long fileEntryTypeId, int start, int end,
163 com.liferay.portal.kernel.util.OrderByComparator obc)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return _dlFileEntryService.getFileEntries(groupId, folderId,
166 fileEntryTypeId, start, end, obc);
167 }
168
169 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
170 long groupId, long folderId, java.lang.String[] mimeTypes, int start,
171 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return _dlFileEntryService.getFileEntries(groupId, folderId, mimeTypes,
174 start, end, obc);
175 }
176
177 public int getFileEntriesCount(long groupId, long folderId)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return _dlFileEntryService.getFileEntriesCount(groupId, folderId);
180 }
181
182 public int getFileEntriesCount(long groupId, long folderId,
183 long fileEntryTypeId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
186 fileEntryTypeId);
187 }
188
189 public int getFileEntriesCount(long groupId, long folderId,
190 java.lang.String[] mimeTypes)
191 throws com.liferay.portal.kernel.exception.SystemException {
192 return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
193 mimeTypes);
194 }
195
196 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
197 long fileEntryId)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException {
200 return _dlFileEntryService.getFileEntry(fileEntryId);
201 }
202
203 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
204 long groupId, long folderId, java.lang.String title)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException {
207 return _dlFileEntryService.getFileEntry(groupId, folderId, title);
208 }
209
210 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
211 java.lang.String uuid, long groupId)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException {
214 return _dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, groupId);
215 }
216
217 public com.liferay.portal.model.Lock getFileEntryLock(long fileEntryId) {
218 return _dlFileEntryService.getFileEntryLock(fileEntryId);
219 }
220
221 public int getFoldersFileEntriesCount(long groupId,
222 java.util.List<java.lang.Long> folderIds, int status)
223 throws com.liferay.portal.kernel.exception.SystemException {
224 return _dlFileEntryService.getFoldersFileEntriesCount(groupId,
225 folderIds, status);
226 }
227
228 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
229 long groupId, long userId, long rootFolderId, int start, int end,
230 com.liferay.portal.kernel.util.OrderByComparator obc)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return _dlFileEntryService.getGroupFileEntries(groupId, userId,
233 rootFolderId, start, end, obc);
234 }
235
236 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
237 long groupId, long userId, long rootFolderId,
238 java.lang.String[] mimeTypes, int status, int start, int end,
239 com.liferay.portal.kernel.util.OrderByComparator obc)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 return _dlFileEntryService.getGroupFileEntries(groupId, userId,
242 rootFolderId, mimeTypes, status, start, end, obc);
243 }
244
245 public int getGroupFileEntriesCount(long groupId, long userId,
246 long rootFolderId)
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
249 rootFolderId);
250 }
251
252 public int getGroupFileEntriesCount(long groupId, long userId,
253 long rootFolderId, java.lang.String[] mimeTypes, int status)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
256 rootFolderId, mimeTypes, status);
257 }
258
259 public boolean hasFileEntryLock(long fileEntryId)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException {
262 return _dlFileEntryService.hasFileEntryLock(fileEntryId);
263 }
264
265 public boolean isFileEntryCheckedOut(long fileEntryId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 return _dlFileEntryService.isFileEntryCheckedOut(fileEntryId);
269 }
270
271 public com.liferay.portal.model.Lock lockFileEntry(long fileEntryId)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException {
274 return _dlFileEntryService.lockFileEntry(fileEntryId);
275 }
276
277 public com.liferay.portal.model.Lock lockFileEntry(long fileEntryId,
278 java.lang.String owner, long expirationTime)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException {
281 return _dlFileEntryService.lockFileEntry(fileEntryId, owner,
282 expirationTime);
283 }
284
285 public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
286 long fileEntryId, long newFolderId,
287 com.liferay.portal.service.ServiceContext serviceContext)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 return _dlFileEntryService.moveFileEntry(fileEntryId, newFolderId,
291 serviceContext);
292 }
293
294 public com.liferay.portal.model.Lock refreshFileEntryLock(
295 java.lang.String lockUuid, long expirationTime)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
299 }
300
301 public void revertFileEntry(long fileEntryId, java.lang.String version,
302 com.liferay.portal.service.ServiceContext serviceContext)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException {
305 _dlFileEntryService.revertFileEntry(fileEntryId, version, serviceContext);
306 }
307
308 public void unlockFileEntry(long fileEntryId)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 _dlFileEntryService.unlockFileEntry(fileEntryId);
312 }
313
314 public void unlockFileEntry(long fileEntryId, java.lang.String lockUuid)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException {
317 _dlFileEntryService.unlockFileEntry(fileEntryId, lockUuid);
318 }
319
320 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
321 long fileEntryId, java.lang.String sourceFileName,
322 java.lang.String mimeType, java.lang.String title,
323 java.lang.String description, java.lang.String changeLog,
324 boolean majorVersion, long fileEntryTypeId,
325 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
326 java.io.File file, java.io.InputStream is, long size,
327 com.liferay.portal.service.ServiceContext serviceContext)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 return _dlFileEntryService.updateFileEntry(fileEntryId, sourceFileName,
331 mimeType, title, description, changeLog, majorVersion,
332 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
333 }
334
335 public boolean verifyFileEntryCheckOut(long fileEntryId,
336 java.lang.String lockUuid)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException {
339 return _dlFileEntryService.verifyFileEntryCheckOut(fileEntryId, lockUuid);
340 }
341
342 public boolean verifyFileEntryLock(long fileEntryId,
343 java.lang.String lockUuid)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException {
346 return _dlFileEntryService.verifyFileEntryLock(fileEntryId, lockUuid);
347 }
348
349
352 public DLFileEntryService getWrappedDLFileEntryService() {
353 return _dlFileEntryService;
354 }
355
356
359 public void setWrappedDLFileEntryService(
360 DLFileEntryService dlFileEntryService) {
361 _dlFileEntryService = dlFileEntryService;
362 }
363
364 public DLFileEntryService getWrappedService() {
365 return _dlFileEntryService;
366 }
367
368 public void setWrappedService(DLFileEntryService dlFileEntryService) {
369 _dlFileEntryService = dlFileEntryService;
370 }
371
372 private DLFileEntryService _dlFileEntryService;
373 }