001
014
015 package com.liferay.portlet.documentlibrary.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.ListUtil;
020
021 import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil;
022
023 import java.rmi.RemoteException;
024
025
068 public class DLFileEntryServiceSoap {
069 public static void cancelCheckOut(long fileEntryId)
070 throws RemoteException {
071 try {
072 DLFileEntryServiceUtil.cancelCheckOut(fileEntryId);
073 }
074 catch (Exception e) {
075 _log.error(e, e);
076
077 throw new RemoteException(e.getMessage());
078 }
079 }
080
081 public static void checkInFileEntry(long fileEntryId, boolean major,
082 java.lang.String changeLog,
083 com.liferay.portal.service.ServiceContext serviceContext)
084 throws RemoteException {
085 try {
086 DLFileEntryServiceUtil.checkInFileEntry(fileEntryId, major,
087 changeLog, serviceContext);
088 }
089 catch (Exception e) {
090 _log.error(e, e);
091
092 throw new RemoteException(e.getMessage());
093 }
094 }
095
096 public static void checkInFileEntry(long fileEntryId,
097 java.lang.String lockUuid) throws RemoteException {
098 try {
099 DLFileEntryServiceUtil.checkInFileEntry(fileEntryId, lockUuid);
100 }
101 catch (Exception e) {
102 _log.error(e, e);
103
104 throw new RemoteException(e.getMessage());
105 }
106 }
107
108 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap checkOutFileEntry(
109 long fileEntryId) throws RemoteException {
110 try {
111 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.checkOutFileEntry(fileEntryId);
112
113 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap checkOutFileEntry(
123 long fileEntryId, java.lang.String owner, long expirationTime)
124 throws RemoteException {
125 try {
126 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.checkOutFileEntry(fileEntryId,
127 owner, expirationTime);
128
129 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
130 }
131 catch (Exception e) {
132 _log.error(e, e);
133
134 throw new RemoteException(e.getMessage());
135 }
136 }
137
138 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap copyFileEntry(
139 long groupId, long repositoryId, long fileEntryId, long destFolderId,
140 com.liferay.portal.service.ServiceContext serviceContext)
141 throws RemoteException {
142 try {
143 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.copyFileEntry(groupId,
144 repositoryId, fileEntryId, destFolderId, serviceContext);
145
146 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
147 }
148 catch (Exception e) {
149 _log.error(e, e);
150
151 throw new RemoteException(e.getMessage());
152 }
153 }
154
155 public static void deleteFileEntry(long fileEntryId)
156 throws RemoteException {
157 try {
158 DLFileEntryServiceUtil.deleteFileEntry(fileEntryId);
159 }
160 catch (Exception e) {
161 _log.error(e, e);
162
163 throw new RemoteException(e.getMessage());
164 }
165 }
166
167 public static void deleteFileEntry(long groupId, long folderId,
168 java.lang.String title) throws RemoteException {
169 try {
170 DLFileEntryServiceUtil.deleteFileEntry(groupId, folderId, title);
171 }
172 catch (Exception e) {
173 _log.error(e, e);
174
175 throw new RemoteException(e.getMessage());
176 }
177 }
178
179 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap fetchFileEntryByImageId(
180 long imageId) throws RemoteException {
181 try {
182 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.fetchFileEntryByImageId(imageId);
183
184 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
185 }
186 catch (Exception e) {
187 _log.error(e, e);
188
189 throw new RemoteException(e.getMessage());
190 }
191 }
192
193 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getFileEntries(
194 long groupId, long folderId, int start, int end,
195 com.liferay.portal.kernel.util.OrderByComparator obc)
196 throws RemoteException {
197 try {
198 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
199 DLFileEntryServiceUtil.getFileEntries(groupId, folderId, start,
200 end, obc);
201
202 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
203 }
204 catch (Exception e) {
205 _log.error(e, e);
206
207 throw new RemoteException(e.getMessage());
208 }
209 }
210
211 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getFileEntries(
212 long groupId, long folderId, long fileEntryTypeId, int start, int end,
213 com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws RemoteException {
215 try {
216 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
217 DLFileEntryServiceUtil.getFileEntries(groupId, folderId,
218 fileEntryTypeId, start, end, obc);
219
220 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
221 }
222 catch (Exception e) {
223 _log.error(e, e);
224
225 throw new RemoteException(e.getMessage());
226 }
227 }
228
229 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getFileEntries(
230 long groupId, long folderId, java.lang.String[] mimeTypes, int start,
231 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
232 throws RemoteException {
233 try {
234 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
235 DLFileEntryServiceUtil.getFileEntries(groupId, folderId,
236 mimeTypes, start, end, obc);
237
238 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
239 }
240 catch (Exception e) {
241 _log.error(e, e);
242
243 throw new RemoteException(e.getMessage());
244 }
245 }
246
247 public static int getFileEntriesCount(long groupId, long folderId)
248 throws RemoteException {
249 try {
250 int returnValue = DLFileEntryServiceUtil.getFileEntriesCount(groupId,
251 folderId);
252
253 return returnValue;
254 }
255 catch (Exception e) {
256 _log.error(e, e);
257
258 throw new RemoteException(e.getMessage());
259 }
260 }
261
262 public static int getFileEntriesCount(long groupId, long folderId,
263 long fileEntryTypeId) throws RemoteException {
264 try {
265 int returnValue = DLFileEntryServiceUtil.getFileEntriesCount(groupId,
266 folderId, fileEntryTypeId);
267
268 return returnValue;
269 }
270 catch (Exception e) {
271 _log.error(e, e);
272
273 throw new RemoteException(e.getMessage());
274 }
275 }
276
277 public static int getFileEntriesCount(long groupId, long folderId,
278 java.lang.String[] mimeTypes) throws RemoteException {
279 try {
280 int returnValue = DLFileEntryServiceUtil.getFileEntriesCount(groupId,
281 folderId, mimeTypes);
282
283 return returnValue;
284 }
285 catch (Exception e) {
286 _log.error(e, e);
287
288 throw new RemoteException(e.getMessage());
289 }
290 }
291
292 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap getFileEntry(
293 long fileEntryId) throws RemoteException {
294 try {
295 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntry(fileEntryId);
296
297 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
298 }
299 catch (Exception e) {
300 _log.error(e, e);
301
302 throw new RemoteException(e.getMessage());
303 }
304 }
305
306 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap getFileEntry(
307 long groupId, long folderId, java.lang.String title)
308 throws RemoteException {
309 try {
310 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntry(groupId,
311 folderId, title);
312
313 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(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 getFileEntryByUuidAndGroupId(
323 java.lang.String uuid, long groupId) throws RemoteException {
324 try {
325 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntryByUuidAndGroupId(uuid,
326 groupId);
327
328 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
329 }
330 catch (Exception e) {
331 _log.error(e, e);
332
333 throw new RemoteException(e.getMessage());
334 }
335 }
336
337 public static int getFoldersFileEntriesCount(long groupId,
338 Long[] folderIds, int status) throws RemoteException {
339 try {
340 int returnValue = DLFileEntryServiceUtil.getFoldersFileEntriesCount(groupId,
341 ListUtil.toList(folderIds), status);
342
343 return returnValue;
344 }
345 catch (Exception e) {
346 _log.error(e, e);
347
348 throw new RemoteException(e.getMessage());
349 }
350 }
351
352 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getGroupFileEntries(
353 long groupId, long userId, long rootFolderId, int start, int end,
354 com.liferay.portal.kernel.util.OrderByComparator obc)
355 throws RemoteException {
356 try {
357 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
358 DLFileEntryServiceUtil.getGroupFileEntries(groupId, userId,
359 rootFolderId, start, end, obc);
360
361 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
362 }
363 catch (Exception e) {
364 _log.error(e, e);
365
366 throw new RemoteException(e.getMessage());
367 }
368 }
369
370 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getGroupFileEntries(
371 long groupId, long userId, long rootFolderId,
372 java.lang.String[] mimeTypes, int status, int start, int end,
373 com.liferay.portal.kernel.util.OrderByComparator obc)
374 throws RemoteException {
375 try {
376 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
377 DLFileEntryServiceUtil.getGroupFileEntries(groupId, userId,
378 rootFolderId, mimeTypes, status, start, end, obc);
379
380 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(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 getGroupFileEntriesCount(long groupId, long userId,
390 long rootFolderId) throws RemoteException {
391 try {
392 int returnValue = DLFileEntryServiceUtil.getGroupFileEntriesCount(groupId,
393 userId, rootFolderId);
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 int getGroupFileEntriesCount(long groupId, long userId,
405 long rootFolderId, java.lang.String[] mimeTypes, int status)
406 throws RemoteException {
407 try {
408 int returnValue = DLFileEntryServiceUtil.getGroupFileEntriesCount(groupId,
409 userId, rootFolderId, mimeTypes, status);
410
411 return returnValue;
412 }
413 catch (Exception e) {
414 _log.error(e, e);
415
416 throw new RemoteException(e.getMessage());
417 }
418 }
419
420 public static boolean hasFileEntryLock(long fileEntryId)
421 throws RemoteException {
422 try {
423 boolean returnValue = DLFileEntryServiceUtil.hasFileEntryLock(fileEntryId);
424
425 return returnValue;
426 }
427 catch (Exception e) {
428 _log.error(e, e);
429
430 throw new RemoteException(e.getMessage());
431 }
432 }
433
434 public static boolean isFileEntryCheckedOut(long fileEntryId)
435 throws RemoteException {
436 try {
437 boolean returnValue = DLFileEntryServiceUtil.isFileEntryCheckedOut(fileEntryId);
438
439 return returnValue;
440 }
441 catch (Exception e) {
442 _log.error(e, e);
443
444 throw new RemoteException(e.getMessage());
445 }
446 }
447
448 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap moveFileEntry(
449 long fileEntryId, long newFolderId,
450 com.liferay.portal.service.ServiceContext serviceContext)
451 throws RemoteException {
452 try {
453 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.moveFileEntry(fileEntryId,
454 newFolderId, serviceContext);
455
456 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
457 }
458 catch (Exception e) {
459 _log.error(e, e);
460
461 throw new RemoteException(e.getMessage());
462 }
463 }
464
465 public static void revertFileEntry(long fileEntryId,
466 java.lang.String version,
467 com.liferay.portal.service.ServiceContext serviceContext)
468 throws RemoteException {
469 try {
470 DLFileEntryServiceUtil.revertFileEntry(fileEntryId, version,
471 serviceContext);
472 }
473 catch (Exception e) {
474 _log.error(e, e);
475
476 throw new RemoteException(e.getMessage());
477 }
478 }
479
480 public static void unlockFileEntry(long fileEntryId)
481 throws RemoteException {
482 try {
483 DLFileEntryServiceUtil.unlockFileEntry(fileEntryId);
484 }
485 catch (Exception e) {
486 _log.error(e, e);
487
488 throw new RemoteException(e.getMessage());
489 }
490 }
491
492 public static void unlockFileEntry(long fileEntryId,
493 java.lang.String lockUuid) throws RemoteException {
494 try {
495 DLFileEntryServiceUtil.unlockFileEntry(fileEntryId, lockUuid);
496 }
497 catch (Exception e) {
498 _log.error(e, e);
499
500 throw new RemoteException(e.getMessage());
501 }
502 }
503
504 public static boolean verifyFileEntryCheckOut(long fileEntryId,
505 java.lang.String lockUuid) throws RemoteException {
506 try {
507 boolean returnValue = DLFileEntryServiceUtil.verifyFileEntryCheckOut(fileEntryId,
508 lockUuid);
509
510 return returnValue;
511 }
512 catch (Exception e) {
513 _log.error(e, e);
514
515 throw new RemoteException(e.getMessage());
516 }
517 }
518
519 public static boolean verifyFileEntryLock(long fileEntryId,
520 java.lang.String lockUuid) throws RemoteException {
521 try {
522 boolean returnValue = DLFileEntryServiceUtil.verifyFileEntryLock(fileEntryId,
523 lockUuid);
524
525 return returnValue;
526 }
527 catch (Exception e) {
528 _log.error(e, e);
529
530 throw new RemoteException(e.getMessage());
531 }
532 }
533
534 private static Log _log = LogFactoryUtil.getLog(DLFileEntryServiceSoap.class);
535 }