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