/[volute]/trunk/projects/grid/vospace/php_endpoint/vospace_service.php
ViewVC logotype

Contents of /trunk/projects/grid/vospace/php_endpoint/vospace_service.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 730 - (show annotations)
Mon Aug 18 15:21:02 2008 UTC (11 years, 11 months ago) by richard.p.wagner
File size: 1541 byte(s)
adding file system backend
1 <?php
2
3 include('config.inc');
4
5 require_once(BACKEND.'properties.php');
6 require_once(BACKEND.'node.php');
7
8 class VOSpaceService {
9
10 function GetViews($message)
11 {
12
13 return $data;
14
15 }
16
17 function GetProtocols($message)
18 {
19
20 return $data;
21
22 }
23
24 function GetProperties(){
25
26 global $provided_properties;
27
28 return array('accepts' => null,
29 'provides' => $provided_properties,
30 'contains' => null);
31 }
32
33 function CreateNode($message)
34 {
35
36 return $data;
37
38 }
39
40 function DeleteNode($message)
41 {
42
43 return $data;
44
45 }
46
47 function MoveNode($message)
48 {
49
50 return $data;
51
52 }
53
54 function CopyNode($message)
55 {
56
57
58 return $data;
59
60 }
61
62 function GetNode($target)
63 {
64
65 $node = new Node($target->target);
66
67 if(!$node->exists()){
68 $bad_target = $target->target;
69 throw new SoapFault("Server", "Node not found.", " ",
70 array("uri" => $bad_target),
71 "NodeNotFoundFault");
72 }
73
74 return array('node' => $node);
75 }
76
77 function SetNode($message)
78 {
79
80
81 return $data;
82
83 }
84
85 function ListNodes($message){
86 $data = array("response"=>array("token" => "foo", "limit" => 100, "detail" => "min", "nodes"=> array()));
87 return $data;
88 }
89
90 function FindNodes($message)
91 {
92
93 return $data;
94
95 }
96
97 function PushToVoSpace($message)
98 {
99
100 return $data;
101
102 }
103
104 function PullToVoSpace($message)
105 {
106
107 return $data;
108
109 }
110
111 function PullFromVoSpace($message)
112 {
113
114 return $data;
115
116 }
117
118 function PushFromVoSpace($message){
119
120 return $data;
121
122 }
123
124 }
125
126 ?>

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26