1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.astrogrid.filemanager.client ;
24
25 import org.astrogrid.store.Ivorn;
26
27 import org.astrogrid.filemanager.resolver.FileManagerResolverException ;
28 import org.astrogrid.filemanager.common.exception.NodeNotFoundException ;
29 import org.astrogrid.filemanager.common.exception.FileManagerIdentifierException;
30 import org.astrogrid.filemanager.common.exception.FileManagerServiceException;
31
32 /***
33 * Public interface for the FileManager client.
34 * The this interface hides all of the implementation details required to connect to the Registry, Community and FileManager services.
35 *
36 */
37 public interface FileManagerClient
38 {
39 /***
40 * Access to the root node for the registered account space.
41 * @return The root node of the account space.
42 * @throws NodeNotFoundException If the node does not exist.
43 * @throws FileManagerIdentifierException If unable to parse the Ivorn.
44 * @throws FileManagerResolverException If unable to resolve the ivorn into a manager delegate.
45 * @throws FileManagerServiceException If a problem occurs when handling the request.
46 *
47 *
48 */
49 public FileManagerNode home()
50 throws
51 FileManagerResolverException,
52 FileManagerServiceException,
53 FileManagerIdentifierException,
54 NodeNotFoundException;
55
56 /***
57 * Access to a node in a file manager service.
58 * @param ivorn The identifier for the node.
59 * @return The FileManagerNode for the Ivorn.
60 * @throws NodeNotFoundException If the node does not exist.
61 * @throws FileManagerIdentifierException If unable to parse the Ivorn.
62 * @throws FileManagerResolverException If unable to resolve the ivorn into a manager delegate.
63 * @throws FileManagerServiceException If a problem occurs when handling the request.
64 *
65 */
66 public FileManagerNode node(Ivorn ivorn)
67 throws
68 FileManagerResolverException,
69 FileManagerServiceException,
70 FileManagerIdentifierException,
71 NodeNotFoundException;
72
73
74 }
75
76