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 com.liferay.portal.kernel.lock.Lock getFileEntryLock(
450 long fileEntryId) throws RemoteException {
451 try {
452 com.liferay.portal.kernel.lock.Lock returnValue = DLFileEntryServiceUtil.getFileEntryLock(fileEntryId);
453
454 return returnValue;
455 }
456 catch (Exception e) {
457 _log.error(e, e);
458
459 throw new RemoteException(e.getMessage());
460 }
461 }
462
463 public static int getFoldersFileEntriesCount(long groupId,
464 Long[] folderIds, int status) throws RemoteException {
465 try {
466 int returnValue = DLFileEntryServiceUtil.getFoldersFileEntriesCount(groupId,
467 ListUtil.toList(folderIds), status);
468
469 return returnValue;
470 }
471 catch (Exception e) {
472 _log.error(e, e);
473
474 throw new RemoteException(e.getMessage());
475 }
476 }
477
478 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getGroupFileEntries(
479 long groupId, long userId, long rootFolderId, int start, int end,
480 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
481 throws RemoteException {
482 try {
483 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
484 DLFileEntryServiceUtil.getGroupFileEntries(groupId, userId,
485 rootFolderId, start, end, obc);
486
487 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
488 }
489 catch (Exception e) {
490 _log.error(e, e);
491
492 throw new RemoteException(e.getMessage());
493 }
494 }
495
496 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getGroupFileEntries(
497 long groupId, long userId, long repositoryId, long rootFolderId,
498 java.lang.String[] mimeTypes, int status, int start, int end,
499 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
500 throws RemoteException {
501 try {
502 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
503 DLFileEntryServiceUtil.getGroupFileEntries(groupId, userId,
504 repositoryId, rootFolderId, mimeTypes, status, start, end,
505 obc);
506
507 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
508 }
509 catch (Exception e) {
510 _log.error(e, e);
511
512 throw new RemoteException(e.getMessage());
513 }
514 }
515
516 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getGroupFileEntries(
517 long groupId, long userId, long rootFolderId,
518 java.lang.String[] mimeTypes, int status, int start, int end,
519 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
520 throws RemoteException {
521 try {
522 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
523 DLFileEntryServiceUtil.getGroupFileEntries(groupId, userId,
524 rootFolderId, mimeTypes, status, start, end, obc);
525
526 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
527 }
528 catch (Exception e) {
529 _log.error(e, e);
530
531 throw new RemoteException(e.getMessage());
532 }
533 }
534
535 public static int getGroupFileEntriesCount(long groupId, long userId,
536 long rootFolderId) throws RemoteException {
537 try {
538 int returnValue = DLFileEntryServiceUtil.getGroupFileEntriesCount(groupId,
539 userId, rootFolderId);
540
541 return returnValue;
542 }
543 catch (Exception e) {
544 _log.error(e, e);
545
546 throw new RemoteException(e.getMessage());
547 }
548 }
549
550 public static int getGroupFileEntriesCount(long groupId, long userId,
551 long repositoryId, long rootFolderId, java.lang.String[] mimeTypes,
552 int status) throws RemoteException {
553 try {
554 int returnValue = DLFileEntryServiceUtil.getGroupFileEntriesCount(groupId,
555 userId, repositoryId, rootFolderId, mimeTypes, status);
556
557 return returnValue;
558 }
559 catch (Exception e) {
560 _log.error(e, e);
561
562 throw new RemoteException(e.getMessage());
563 }
564 }
565
566 public static int getGroupFileEntriesCount(long groupId, long userId,
567 long rootFolderId, java.lang.String[] mimeTypes, int status)
568 throws RemoteException {
569 try {
570 int returnValue = DLFileEntryServiceUtil.getGroupFileEntriesCount(groupId,
571 userId, rootFolderId, mimeTypes, status);
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 hasFileEntryLock(long fileEntryId)
583 throws RemoteException {
584 try {
585 boolean returnValue = DLFileEntryServiceUtil.hasFileEntryLock(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 boolean isFileEntryCheckedOut(long fileEntryId)
597 throws RemoteException {
598 try {
599 boolean returnValue = DLFileEntryServiceUtil.isFileEntryCheckedOut(fileEntryId);
600
601 return returnValue;
602 }
603 catch (Exception e) {
604 _log.error(e, e);
605
606 throw new RemoteException(e.getMessage());
607 }
608 }
609
610 public static boolean isKeepFileVersionLabel(long fileEntryId,
611 com.liferay.portal.service.ServiceContext serviceContext)
612 throws RemoteException {
613 try {
614 boolean returnValue = DLFileEntryServiceUtil.isKeepFileVersionLabel(fileEntryId,
615 serviceContext);
616
617 return returnValue;
618 }
619 catch (Exception e) {
620 _log.error(e, e);
621
622 throw new RemoteException(e.getMessage());
623 }
624 }
625
626 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap moveFileEntry(
627 long fileEntryId, long newFolderId,
628 com.liferay.portal.service.ServiceContext serviceContext)
629 throws RemoteException {
630 try {
631 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.moveFileEntry(fileEntryId,
632 newFolderId, serviceContext);
633
634 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
635 }
636 catch (Exception e) {
637 _log.error(e, e);
638
639 throw new RemoteException(e.getMessage());
640 }
641 }
642
643 public static com.liferay.portal.kernel.lock.Lock refreshFileEntryLock(
644 java.lang.String lockUuid, long companyId, long expirationTime)
645 throws RemoteException {
646 try {
647 com.liferay.portal.kernel.lock.Lock returnValue = DLFileEntryServiceUtil.refreshFileEntryLock(lockUuid,
648 companyId, expirationTime);
649
650 return returnValue;
651 }
652 catch (Exception e) {
653 _log.error(e, e);
654
655 throw new RemoteException(e.getMessage());
656 }
657 }
658
659 public static void revertFileEntry(long fileEntryId,
660 java.lang.String version,
661 com.liferay.portal.service.ServiceContext serviceContext)
662 throws RemoteException {
663 try {
664 DLFileEntryServiceUtil.revertFileEntry(fileEntryId, version,
665 serviceContext);
666 }
667 catch (Exception e) {
668 _log.error(e, e);
669
670 throw new RemoteException(e.getMessage());
671 }
672 }
673
674 public static boolean verifyFileEntryCheckOut(long fileEntryId,
675 java.lang.String lockUuid) throws RemoteException {
676 try {
677 boolean returnValue = DLFileEntryServiceUtil.verifyFileEntryCheckOut(fileEntryId,
678 lockUuid);
679
680 return returnValue;
681 }
682 catch (Exception e) {
683 _log.error(e, e);
684
685 throw new RemoteException(e.getMessage());
686 }
687 }
688
689 public static boolean verifyFileEntryLock(long fileEntryId,
690 java.lang.String lockUuid) throws RemoteException {
691 try {
692 boolean returnValue = DLFileEntryServiceUtil.verifyFileEntryLock(fileEntryId,
693 lockUuid);
694
695 return returnValue;
696 }
697 catch (Exception e) {
698 _log.error(e, e);
699
700 throw new RemoteException(e.getMessage());
701 }
702 }
703
704 private static Log _log = LogFactoryUtil.getLog(DLFileEntryServiceSoap.class);
705 }