1 package fr.in2p3.jsaga.sync.namespace;
2
3 import org.ogf.saga.error.*;
4 import org.ogf.saga.url.URL;
5
6 import java.util.List;
7
8
9
10
11
12
13
14
15
16
17 public interface SyncNSDirectory extends SyncNSEntry, Iterable<URL> {
18
19
20
21
22
23
24
25 public void changeDirSync(URL dir) throws NotImplementedException,
26 IncorrectURLException, AuthenticationFailedException,
27 AuthorizationFailedException, PermissionDeniedException,
28 BadParameterException, IncorrectStateException,
29 DoesNotExistException, TimeoutException, NoSuccessException;
30
31
32
33
34
35
36
37
38
39
40
41
42 public List<URL> listSync(String pattern, int flags)
43 throws NotImplementedException, AuthenticationFailedException,
44 AuthorizationFailedException, PermissionDeniedException,
45 BadParameterException, IncorrectStateException, TimeoutException,
46 NoSuccessException, IncorrectURLException;
47
48
49
50
51
52
53
54
55 public List<URL> listSync(int flags) throws NotImplementedException,
56 AuthenticationFailedException, AuthorizationFailedException,
57 PermissionDeniedException, BadParameterException,
58 IncorrectStateException, TimeoutException, NoSuccessException,
59 IncorrectURLException;
60
61
62
63
64
65
66
67
68
69 public List<URL> listSync(String pattern) throws NotImplementedException,
70 AuthenticationFailedException, AuthorizationFailedException,
71 PermissionDeniedException, BadParameterException,
72 IncorrectStateException, TimeoutException, NoSuccessException,
73 IncorrectURLException;
74
75
76
77
78
79
80 public List<URL> listSync() throws NotImplementedException,
81 AuthenticationFailedException, AuthorizationFailedException,
82 PermissionDeniedException, BadParameterException,
83 IncorrectStateException, TimeoutException, NoSuccessException,
84 IncorrectURLException;
85
86
87
88
89
90
91
92
93
94
95
96 public List<URL> findSync(String pattern, int flags)
97 throws NotImplementedException, AuthenticationFailedException,
98 AuthorizationFailedException, PermissionDeniedException,
99 BadParameterException, IncorrectStateException, TimeoutException,
100 NoSuccessException;
101
102
103
104
105
106
107
108
109
110 public List<URL> findSync(String pattern) throws NotImplementedException,
111 AuthenticationFailedException, AuthorizationFailedException,
112 PermissionDeniedException, BadParameterException,
113 IncorrectStateException, TimeoutException, NoSuccessException;
114
115
116
117
118
119
120
121
122 public boolean existsSync(URL name) throws NotImplementedException,
123 IncorrectURLException, AuthenticationFailedException,
124 AuthorizationFailedException, PermissionDeniedException,
125 BadParameterException, IncorrectStateException, TimeoutException,
126 NoSuccessException;
127
128
129
130
131
132
133
134
135
136
137 public long getMTimeSync(URL name) throws NotImplementedException,
138 IncorrectURLException, DoesNotExistException, AuthenticationFailedException,
139 AuthorizationFailedException, PermissionDeniedException,
140 BadParameterException, IncorrectStateException, TimeoutException,
141 NoSuccessException;
142
143
144
145
146
147
148
149
150 public boolean isDirSync(URL name) throws NotImplementedException,
151 IncorrectURLException, DoesNotExistException,
152 AuthenticationFailedException, AuthorizationFailedException,
153 PermissionDeniedException, BadParameterException,
154 IncorrectStateException, TimeoutException, NoSuccessException;
155
156
157
158
159
160
161
162
163 public boolean isEntrySync(URL name) throws NotImplementedException,
164 IncorrectURLException, DoesNotExistException,
165 AuthenticationFailedException, AuthorizationFailedException,
166 PermissionDeniedException, BadParameterException,
167 IncorrectStateException, TimeoutException, NoSuccessException;
168
169
170
171
172
173
174
175
176 public boolean isLinkSync(URL name) throws NotImplementedException,
177 IncorrectURLException, DoesNotExistException,
178 AuthenticationFailedException, AuthorizationFailedException,
179 PermissionDeniedException, BadParameterException,
180 IncorrectStateException, TimeoutException, NoSuccessException;
181
182
183
184
185
186
187
188
189 public URL readLinkSync(URL name) throws NotImplementedException,
190 IncorrectURLException, DoesNotExistException,
191 AuthenticationFailedException, AuthorizationFailedException,
192 PermissionDeniedException, BadParameterException,
193 IncorrectStateException, TimeoutException, NoSuccessException;
194
195
196
197
198
199
200 public int getNumEntriesSync() throws NotImplementedException,
201 AuthenticationFailedException, AuthorizationFailedException,
202 PermissionDeniedException, IncorrectStateException,
203 TimeoutException, NoSuccessException;
204
205
206
207
208
209
210
211
212
213
214
215 public URL getEntrySync(int entry) throws NotImplementedException,
216 AuthenticationFailedException, AuthorizationFailedException,
217 PermissionDeniedException, IncorrectStateException,
218 DoesNotExistException, TimeoutException, NoSuccessException;
219
220
221
222
223
224
225
226
227
228
229
230 public void copySync(URL source, URL target, int flags)
231 throws NotImplementedException, AuthenticationFailedException,
232 AuthorizationFailedException, PermissionDeniedException,
233 IncorrectURLException, BadParameterException,
234 IncorrectStateException, AlreadyExistsException,
235 DoesNotExistException, TimeoutException, NoSuccessException;
236
237
238
239
240
241
242
243
244
245 public void copySync(URL source, URL target) throws NotImplementedException,
246 AuthenticationFailedException, AuthorizationFailedException,
247 PermissionDeniedException, IncorrectURLException,
248 BadParameterException, IncorrectStateException,
249 AlreadyExistsException, DoesNotExistException, TimeoutException,
250 NoSuccessException;
251
252
253
254
255
256
257
258
259
260
261
262
263 public void copySync(String source, URL target, int flags)
264 throws NotImplementedException, AuthenticationFailedException,
265 AuthorizationFailedException, PermissionDeniedException,
266 IncorrectURLException, BadParameterException,
267 IncorrectStateException, AlreadyExistsException,
268 DoesNotExistException, TimeoutException, NoSuccessException;
269
270
271
272
273
274
275
276
277
278
279 public void copySync(String source, URL target) throws NotImplementedException,
280 AuthenticationFailedException, AuthorizationFailedException,
281 PermissionDeniedException, IncorrectURLException,
282 BadParameterException, IncorrectStateException,
283 AlreadyExistsException, DoesNotExistException, TimeoutException,
284 NoSuccessException;
285
286
287
288
289
290
291
292
293
294
295
296
297 public void linkSync(URL source, URL target, int flags)
298 throws NotImplementedException, AuthenticationFailedException,
299 AuthorizationFailedException, PermissionDeniedException,
300 IncorrectURLException, BadParameterException,
301 IncorrectStateException, AlreadyExistsException,
302 DoesNotExistException, TimeoutException, NoSuccessException;
303
304
305
306
307
308
309
310
311
312
313 public void linkSync(URL source, URL target) throws NotImplementedException,
314 AuthenticationFailedException, AuthorizationFailedException,
315 PermissionDeniedException, IncorrectURLException,
316 BadParameterException, IncorrectStateException,
317 AlreadyExistsException, DoesNotExistException, TimeoutException,
318 NoSuccessException;
319
320
321
322
323
324
325
326
327
328
329
330
331 public void linkSync(String source, URL target, int flags)
332 throws NotImplementedException, AuthenticationFailedException,
333 AuthorizationFailedException, PermissionDeniedException,
334 IncorrectURLException, BadParameterException,
335 IncorrectStateException, AlreadyExistsException,
336 DoesNotExistException, TimeoutException, NoSuccessException;
337
338
339
340
341
342
343
344
345
346
347 public void linkSync(String source, URL target) throws NotImplementedException,
348 AuthenticationFailedException, AuthorizationFailedException,
349 PermissionDeniedException, IncorrectURLException,
350 BadParameterException, IncorrectStateException,
351 AlreadyExistsException, DoesNotExistException, TimeoutException,
352 NoSuccessException;
353
354
355
356
357
358
359
360
361
362
363
364
365 public void moveSync(URL source, URL target, int flags)
366 throws NotImplementedException, AuthenticationFailedException,
367 AuthorizationFailedException, PermissionDeniedException,
368 IncorrectURLException, BadParameterException,
369 IncorrectStateException, AlreadyExistsException,
370 DoesNotExistException, TimeoutException, NoSuccessException;
371
372
373
374
375
376
377
378
379
380
381 public void moveSync(URL source, URL target) throws NotImplementedException,
382 AuthenticationFailedException, AuthorizationFailedException,
383 PermissionDeniedException, IncorrectURLException,
384 BadParameterException, IncorrectStateException,
385 AlreadyExistsException, DoesNotExistException, TimeoutException,
386 NoSuccessException;
387
388
389
390
391
392
393
394
395
396
397
398
399
400 public void moveSync(String source, URL target, int flags)
401 throws NotImplementedException, AuthenticationFailedException,
402 AuthorizationFailedException, PermissionDeniedException,
403 IncorrectURLException, BadParameterException,
404 IncorrectStateException, AlreadyExistsException,
405 DoesNotExistException, TimeoutException, NoSuccessException;
406
407
408
409
410
411
412
413
414
415
416
417 public void moveSync(String source, URL target) throws NotImplementedException,
418 AuthenticationFailedException, AuthorizationFailedException,
419 PermissionDeniedException, IncorrectURLException,
420 BadParameterException, IncorrectStateException,
421 AlreadyExistsException, DoesNotExistException, TimeoutException,
422 NoSuccessException;
423
424
425
426
427
428
429
430
431
432 public void removeSync(URL target, int flags) throws NotImplementedException,
433 AuthenticationFailedException, AuthorizationFailedException,
434 PermissionDeniedException, IncorrectURLException,
435 BadParameterException, IncorrectStateException,
436 DoesNotExistException, TimeoutException, NoSuccessException;
437
438
439
440
441
442
443
444 public void removeSync(URL target) throws NotImplementedException,
445 AuthenticationFailedException, AuthorizationFailedException,
446 PermissionDeniedException, IncorrectURLException,
447 BadParameterException, IncorrectStateException,
448 DoesNotExistException, TimeoutException, NoSuccessException;
449
450
451
452
453
454
455
456
457
458 public void removeSync(String target, int flags)
459 throws NotImplementedException, AuthenticationFailedException,
460 AuthorizationFailedException, PermissionDeniedException,
461 IncorrectURLException, BadParameterException,
462 IncorrectStateException, DoesNotExistException, TimeoutException,
463 NoSuccessException;
464
465
466
467
468
469
470
471 public void removeSync(String target) throws NotImplementedException,
472 AuthenticationFailedException, AuthorizationFailedException,
473 PermissionDeniedException, IncorrectURLException,
474 BadParameterException, IncorrectStateException,
475 DoesNotExistException, TimeoutException, NoSuccessException;
476
477
478
479
480
481
482
483
484
485 public void makeDirSync(URL target, int flags) throws NotImplementedException,
486 IncorrectURLException, AuthenticationFailedException,
487 AuthorizationFailedException, PermissionDeniedException,
488 BadParameterException, IncorrectStateException,
489 AlreadyExistsException, DoesNotExistException, TimeoutException,
490 NoSuccessException;
491
492
493
494
495
496
497
498 public void makeDirSync(URL target) throws NotImplementedException,
499 IncorrectURLException, AuthenticationFailedException,
500 AuthorizationFailedException, PermissionDeniedException,
501 BadParameterException, IncorrectStateException,
502 AlreadyExistsException, DoesNotExistException, TimeoutException,
503 NoSuccessException;
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518 public void permissionsAllowSync(URL target, String id, int permissions,
519 int flags) throws NotImplementedException, IncorrectURLException,
520 AuthenticationFailedException, AuthorizationFailedException,
521 PermissionDeniedException, IncorrectStateException,
522 BadParameterException, TimeoutException, NoSuccessException;
523
524
525
526
527
528
529
530
531
532
533
534
535 public void permissionsAllowSync(URL target, String id, int permissions)
536 throws NotImplementedException, AuthenticationFailedException,
537 AuthorizationFailedException, PermissionDeniedException, IncorrectURLException,
538 IncorrectStateException, BadParameterException, TimeoutException,
539 NoSuccessException;
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554 public void permissionsAllowSync(String target, String id, int permissions,
555 int flags) throws NotImplementedException, IncorrectURLException,
556 AuthenticationFailedException, AuthorizationFailedException,
557 PermissionDeniedException, IncorrectStateException,
558 BadParameterException, TimeoutException, NoSuccessException;
559
560
561
562
563
564
565
566
567
568
569
570
571 public void permissionsAllowSync(String target, String id, int permissions)
572 throws NotImplementedException, AuthenticationFailedException,
573 AuthorizationFailedException, PermissionDeniedException, IncorrectURLException,
574 IncorrectStateException, BadParameterException, TimeoutException,
575 NoSuccessException;
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590 public void permissionsDenySync(URL target, String id, int permissions,
591 int flags) throws NotImplementedException, IncorrectURLException,
592 AuthenticationFailedException, AuthorizationFailedException,
593 PermissionDeniedException, BadParameterException, TimeoutException,
594 NoSuccessException;
595
596
597
598
599
600
601
602
603
604
605
606
607 public void permissionsDenySync(URL target, String id, int permissions)
608 throws NotImplementedException, AuthenticationFailedException,
609 AuthorizationFailedException, PermissionDeniedException, IncorrectURLException,
610 BadParameterException, TimeoutException, NoSuccessException;
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625 public void permissionsDenySync(String target, String id, int permissions,
626 int flags) throws NotImplementedException, IncorrectURLException,
627 AuthenticationFailedException, AuthorizationFailedException,
628 PermissionDeniedException, BadParameterException, TimeoutException,
629 NoSuccessException;
630
631
632
633
634
635
636
637
638
639
640
641
642 public void permissionsDenySync(String target, String id, int permissions)
643 throws NotImplementedException, AuthenticationFailedException,
644 AuthorizationFailedException, PermissionDeniedException, IncorrectURLException,
645 BadParameterException, TimeoutException, NoSuccessException;
646 }