001
014
015 package com.liferay.portlet.documentlibrary.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.kernel.util.ListUtil;
022
023 import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil;
024
025 import java.rmi.RemoteException;
026
027
067 @ProviderType
068 public class DLFileEntryServiceSoap {
069 public static com.liferay.portlet.documentlibrary.model.DLFileVersionSoap cancelCheckOut(
070 long fileEntryId) throws RemoteException {
071 try {
072 com.liferay.portlet.documentlibrary.model.DLFileVersion returnValue = DLFileEntryServiceUtil.cancelCheckOut(fileEntryId);
073
074 return com.liferay.portlet.documentlibrary.model.DLFileVersionSoap.toSoapModel(returnValue);
075 }
076 catch (Exception e) {
077 _log.error(e, e);
078
079 throw new RemoteException(e.getMessage());
080 }
081 }
082
083 public static void checkInFileEntry(long fileEntryId, boolean major,
084 java.lang.String changeLog,
085 com.liferay.portal.service.ServiceContext serviceContext)
086 throws RemoteException {
087 try {
088 DLFileEntryServiceUtil.checkInFileEntry(fileEntryId, major,
089 changeLog, serviceContext);
090 }
091 catch (Exception e) {
092 _log.error(e, e);
093
094 throw new RemoteException(e.getMessage());
095 }
096 }
097
098
102 @Deprecated
103 public static void checkInFileEntry(long fileEntryId,
104 java.lang.String lockUuid) throws RemoteException {
105 try {
106 DLFileEntryServiceUtil.checkInFileEntry(fileEntryId, lockUuid);
107 }
108 catch (Exception e) {
109 _log.error(e, e);
110
111 throw new RemoteException(e.getMessage());
112 }
113 }
114
115 public static void checkInFileEntry(long fileEntryId,
116 java.lang.String lockUuid,
117 com.liferay.portal.service.ServiceContext serviceContext)
118 throws RemoteException {
119 try {
120 DLFileEntryServiceUtil.checkInFileEntry(fileEntryId, lockUuid,
121 serviceContext);
122 }
123 catch (Exception e) {
124 _log.error(e, e);
125
126 throw new RemoteException(e.getMessage());
127 }
128 }
129
130
134 @Deprecated
135 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap checkOutFileEntry(
136 long fileEntryId) throws RemoteException {
137 try {
138 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.checkOutFileEntry(fileEntryId);
139
140 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
141 }
142 catch (Exception e) {
143 _log.error(e, e);
144
145 throw new RemoteException(e.getMessage());
146 }
147 }
148
149 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap checkOutFileEntry(
150 long fileEntryId,
151 com.liferay.portal.service.ServiceContext serviceContext)
152 throws RemoteException {
153 try {
154 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.checkOutFileEntry(fileEntryId,
155 serviceContext);
156
157 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
158 }
159 catch (Exception e) {
160 _log.error(e, e);
161
162 throw new RemoteException(e.getMessage());
163 }
164 }
165
166
170 @Deprecated
171 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap checkOutFileEntry(
172 long fileEntryId, java.lang.String owner, long expirationTime)
173 throws RemoteException {
174 try {
175 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.checkOutFileEntry(fileEntryId,
176 owner, expirationTime);
177
178 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
179 }
180 catch (Exception e) {
181 _log.error(e, e);
182
183 throw new RemoteException(e.getMessage());
184 }
185 }
186
187 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap checkOutFileEntry(
188 long fileEntryId, java.lang.String owner, long expirationTime,
189 com.liferay.portal.service.ServiceContext serviceContext)
190 throws RemoteException {
191 try {
192 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.checkOutFileEntry(fileEntryId,
193 owner, expirationTime, serviceContext);
194
195 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
196 }
197 catch (Exception e) {
198 _log.error(e, e);
199
200 throw new RemoteException(e.getMessage());
201 }
202 }
203
204 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap copyFileEntry(
205 long groupId, long repositoryId, long fileEntryId, long destFolderId,
206 com.liferay.portal.service.ServiceContext serviceContext)
207 throws RemoteException {
208 try {
209 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.copyFileEntry(groupId,
210 repositoryId, fileEntryId, destFolderId, serviceContext);
211
212 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
213 }
214 catch (Exception e) {
215 _log.error(e, e);
216
217 throw new RemoteException(e.getMessage());
218 }
219 }
220
221 public static void deleteFileEntry(long fileEntryId)
222 throws RemoteException {
223 try {
224 DLFileEntryServiceUtil.deleteFileEntry(fileEntryId);
225 }
226 catch (Exception e) {
227 _log.error(e, e);
228
229 throw new RemoteException(e.getMessage());
230 }
231 }
232
233 public static void deleteFileEntry(long groupId, long folderId,
234 java.lang.String title) throws RemoteException {
235 try {
236 DLFileEntryServiceUtil.deleteFileEntry(groupId, folderId, title);
237 }
238 catch (Exception e) {
239 _log.error(e, e);
240
241 throw new RemoteException(e.getMessage());
242 }
243 }
244
245 public static void deleteFileVersion(long fileEntryId,
246 java.lang.String version) throws RemoteException {
247 try {
248 DLFileEntryServiceUtil.deleteFileVersion(fileEntryId, version);
249 }
250 catch (Exception e) {
251 _log.error(e, e);
252
253 throw new RemoteException(e.getMessage());
254 }
255 }
256
257 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap fetchFileEntryByImageId(
258 long imageId) throws RemoteException {
259 try {
260 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.fetchFileEntryByImageId(imageId);
261
262 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
263 }
264 catch (Exception e) {
265 _log.error(e, e);
266
267 throw new RemoteException(e.getMessage());
268 }
269 }
270
271 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getFileEntries(
272 long groupId, long folderId, int status, int start, int end,
273 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
274 throws RemoteException {
275 try {
276 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
277 DLFileEntryServiceUtil.getFileEntries(groupId, folderId,
278 status, start, end, obc);
279
280 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
281 }
282 catch (Exception e) {
283 _log.error(e, e);
284
285 throw new RemoteException(e.getMessage());
286 }
287 }
288
289 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getFileEntries(
290 long groupId, long folderId, int start, int end,
291 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
292 throws RemoteException {
293 try {
294 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
295 DLFileEntryServiceUtil.getFileEntries(groupId, folderId, start,
296 end, obc);
297
298 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
299 }
300 catch (Exception e) {
301 _log.error(e, e);
302
303 throw new RemoteException(e.getMessage());
304 }
305 }
306
307 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getFileEntries(
308 long groupId, long folderId, long fileEntryTypeId, int start, int end,
309 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
310 throws RemoteException {
311 try {
312 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
313 DLFileEntryServiceUtil.getFileEntries(groupId, folderId,
314 fileEntryTypeId, start, end, obc);
315
316 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
317 }
318 catch (Exception e) {
319 _log.error(e, e);
320
321 throw new RemoteException(e.getMessage());
322 }
323 }
324
325 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getFileEntries(
326 long groupId, long folderId, java.lang.String[] mimeTypes, int start,
327 int end,
328 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
329 throws RemoteException {
330 try {
331 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
332 DLFileEntryServiceUtil.getFileEntries(groupId, folderId,
333 mimeTypes, start, end, obc);
334
335 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
336 }
337 catch (Exception e) {
338 _log.error(e, e);
339
340 throw new RemoteException(e.getMessage());
341 }
342 }
343
344 public static int getFileEntriesCount(long groupId, long folderId)
345 throws RemoteException {
346 try {
347 int returnValue = DLFileEntryServiceUtil.getFileEntriesCount(groupId,
348 folderId);
349
350 return returnValue;
351 }
352 catch (Exception e) {
353 _log.error(e, e);
354
355 throw new RemoteException(e.getMessage());
356 }
357 }
358
359 public static int getFileEntriesCount(long groupId, long folderId,
360 int status) throws RemoteException {
361 try {
362 int returnValue = DLFileEntryServiceUtil.getFileEntriesCount(groupId,
363 folderId, status);
364
365 return returnValue;
366 }
367 catch (Exception e) {
368 _log.error(e, e);
369
370 throw new RemoteException(e.getMessage());
371 }
372 }
373
374 public static int getFileEntriesCount(long groupId, long folderId,
375 long fileEntryTypeId) throws RemoteException {
376 try {
377 int returnValue = DLFileEntryServiceUtil.getFileEntriesCount(groupId,
378 folderId, fileEntryTypeId);
379
380 return returnValue;
381 }
382 catch (Exception e) {
383 _log.error(e, e);
384
385 throw new RemoteException(e.getMessage());
386 }
387 }
388
389 public static int getFileEntriesCount(long groupId, long folderId,
390 java.lang.String[] mimeTypes) throws RemoteException {
391 try {
392 int returnValue = DLFileEntryServiceUtil.getFileEntriesCount(groupId,
393 folderId, mimeTypes);
394
395 return returnValue;
396 }
397 catch (Exception e) {
398 _log.error(e, e);
399
400 throw new RemoteException(e.getMessage());
401 }
402 }
403
404 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap getFileEntry(
405 long fileEntryId) throws RemoteException {
406 try {
407 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntry(fileEntryId);
408
409 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
410 }
411 catch (Exception e) {
412 _log.error(e, e);
413
414 throw new RemoteException(e.getMessage());
415 }
416 }
417
418 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap getFileEntry(
419 long groupId, long folderId, java.lang.String title)
420 throws RemoteException {
421 try {
422 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntry(groupId,
423 folderId, title);
424
425 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
426 }
427 catch (Exception e) {
428 _log.error(e, e);
429
430 throw new RemoteException(e.getMessage());
431 }
432 }
433
434 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap getFileEntryByUuidAndGroupId(
435 java.lang.String uuid, long groupId) throws RemoteException {
436 try {
437 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntryByUuidAndGroupId(uuid,
438 groupId);
439
440 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
441 }
442 catch (Exception e) {
443 _log.error(e, e);
444
445 throw new RemoteException(e.getMessage());
446 }
447 }
448
449 public static int getFoldersFileEntriesCount(long groupId,
450 Long[] folderIds, int status) throws RemoteException {
451 try {
452 int returnValue = DLFileEntryServiceUtil.getFoldersFileEntriesCount(groupId,
453 ListUtil.toList(folderIds), status);
454
455 return returnValue;
456 }
457 catch (Exception e) {
458 _log.error(e, e);
459
460 throw new RemoteException(e.getMessage());
461 }
462 }
463
464 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getGroupFileEntries(
465 long groupId, long userId, long rootFolderId, int start, int end,
466 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
467 throws RemoteException {
468 try {
469 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
470 DLFileEntryServiceUtil.getGroupFileEntries(groupId, userId,
471 rootFolderId, start, end, obc);
472
473 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
474 }
475 catch (Exception e) {
476 _log.error(e, e);
477
478 throw new RemoteException(e.getMessage());
479 }
480 }
481
482 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getGroupFileEntries(
483 long groupId, long userId, long repositoryId, long rootFolderId,
484 java.lang.String[] mimeTypes, int status, int start, int end,
485 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
486 throws RemoteException {
487 try {
488 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
489 DLFileEntryServiceUtil.getGroupFileEntries(groupId, userId,
490 repositoryId, rootFolderId, mimeTypes, status, start, end,
491 obc);
492
493 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
494 }
495 catch (Exception e) {
496 _log.error(e, e);
497
498 throw new RemoteException(e.getMessage());
499 }
500 }
501
502 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getGroupFileEntries(
503 long groupId, long userId, long rootFolderId,
504 java.lang.String[] mimeTypes, int status, int start, int end,
505 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
506 throws RemoteException {
507 try {
508 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
509 DLFileEntryServiceUtil.getGroupFileEntries(groupId, userId,
510 rootFolderId, mimeTypes, status, start, end, obc);
511
512 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
513 }
514 catch (Exception e) {
515 _log.error(e, e);
516
517 throw new RemoteException(e.getMessage());
518 }
519 }
520
521 public static int getGroupFileEntriesCount(long groupId, long userId,
522 long rootFolderId) throws RemoteException {
523 try {
524 int returnValue = DLFileEntryServiceUtil.getGroupFileEntriesCount(groupId,
525 userId, rootFolderId);
526
527 return returnValue;
528 }
529 catch (Exception e) {
530 _log.error(e, e);
531
532 throw new RemoteException(e.getMessage());
533 }
534 }
535
536 public static int getGroupFileEntriesCount(long groupId, long userId,
537 long repositoryId, long rootFolderId, java.lang.String[] mimeTypes,
538 int status) throws RemoteException {
539 try {
540 int returnValue = DLFileEntryServiceUtil.getGroupFileEntriesCount(groupId,
541 userId, repositoryId, rootFolderId, mimeTypes, status);
542
543 return returnValue;
544 }
545 catch (Exception e) {
546 _log.error(e, e);
547
548 throw new RemoteException(e.getMessage());
549 }
550 }
551
552 public static int getGroupFileEntriesCount(long groupId, long userId,
553 long rootFolderId, java.lang.String[] mimeTypes, int status)
554 throws RemoteException {
555 try {
556 int returnValue = DLFileEntryServiceUtil.getGroupFileEntriesCount(groupId,
557 userId, rootFolderId, mimeTypes, status);
558
559 return returnValue;
560 }
561 catch (Exception e) {
562 _log.error(e, e);
563
564 throw new RemoteException(e.getMessage());
565 }
566 }
567
568 public static boolean hasFileEntryLock(long fileEntryId)
569 throws RemoteException {
570 try {
571 boolean returnValue = DLFileEntryServiceUtil.hasFileEntryLock(fileEntryId);
572
573 return returnValue;
574 }
575 catch (Exception e) {
576 _log.error(e, e);
577
578 throw new RemoteException(e.getMessage());
579 }
580 }
581
582 public static boolean isFileEntryCheckedOut(long fileEntryId)
583 throws RemoteException {
584 try {
585 boolean returnValue = DLFileEntryServiceUtil.isFileEntryCheckedOut(fileEntryId);
586
587 return returnValue;
588 }
589 catch (Exception e) {
590 _log.error(e, e);
591
592 throw new RemoteException(e.getMessage());
593 }
594 }
595
596 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap moveFileEntry(
597 long fileEntryId, long newFolderId,
598 com.liferay.portal.service.ServiceContext serviceContext)
599 throws RemoteException {
600 try {
601 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.moveFileEntry(fileEntryId,
602 newFolderId, serviceContext);
603
604 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
605 }
606 catch (Exception e) {
607 _log.error(e, e);
608
609 throw new RemoteException(e.getMessage());
610 }
611 }
612
613 public static void revertFileEntry(long fileEntryId,
614 java.lang.String version,
615 com.liferay.portal.service.ServiceContext serviceContext)
616 throws RemoteException {
617 try {
618 DLFileEntryServiceUtil.revertFileEntry(fileEntryId, version,
619 serviceContext);
620 }
621 catch (Exception e) {
622 _log.error(e, e);
623
624 throw new RemoteException(e.getMessage());
625 }
626 }
627
628 public static boolean verifyFileEntryCheckOut(long fileEntryId,
629 java.lang.String lockUuid) throws RemoteException {
630 try {
631 boolean returnValue = DLFileEntryServiceUtil.verifyFileEntryCheckOut(fileEntryId,
632 lockUuid);
633
634 return returnValue;
635 }
636 catch (Exception e) {
637 _log.error(e, e);
638
639 throw new RemoteException(e.getMessage());
640 }
641 }
642
643 public static boolean verifyFileEntryLock(long fileEntryId,
644 java.lang.String lockUuid) throws RemoteException {
645 try {
646 boolean returnValue = DLFileEntryServiceUtil.verifyFileEntryLock(fileEntryId,
647 lockUuid);
648
649 return returnValue;
650 }
651 catch (Exception e) {
652 _log.error(e, e);
653
654 throw new RemoteException(e.getMessage());
655 }
656 }
657
658 private static Log _log = LogFactoryUtil.getLog(DLFileEntryServiceSoap.class);
659 }