View Javadoc

1   /*$Id: ScriptVoSpaceClient.java,v 1.3 2004/12/07 16:50:33 jdt Exp $
2    * Created on 30-Nov-2004
3    *
4    * Copyright (C) AstroGrid. All rights reserved.
5    *
6    * This software is published under the terms of the AstroGrid 
7    * Software License version 1.2, a copy of which has been included 
8    * with this distribution in the LICENSE.txt file.  
9    *
10  **/
11  package org.astrogrid.scripting;
12  
13  import org.astrogrid.community.User;
14  import org.astrogrid.store.Ivorn;
15  import org.astrogrid.store.VoSpaceClient;
16  import org.astrogrid.store.delegate.StoreClient;
17  
18  import java.io.IOException;
19  import java.io.InputStream;
20  import java.io.OutputStream;
21  import java.net.URISyntaxException;
22  import java.net.URL;
23  
24  /*** Wrapper of standard vospace client that has string-friendly scripting methods.
25   * @author Noel Winstanley nw@jb.man.ac.uk 30-Nov-2004
26   *
27   */
28  public class ScriptVoSpaceClient extends VoSpaceClient {
29  
30      /*** Construct a new ScriptVoSpaceClient
31       * @param arg0
32       */
33      protected ScriptVoSpaceClient(User operator) {
34          super(operator);
35      }
36      
37  
38      public void copy(String fromIvorn, String toIvorn) throws IOException, URISyntaxException {
39          super.copy(new Ivorn(fromIvorn), new Ivorn(toIvorn));
40      }
41      
42      public Ivorn createUser(String arg0, String arg1) throws IOException,
43              URISyntaxException {
44          return super.createUser(new Ivorn(arg0), new Ivorn(arg1));
45      }
46      public void delete(String arg0) throws IOException, URISyntaxException {
47          super.delete(new Ivorn(arg0));
48      }
49      public void deleteUser(String arg0, String arg1) throws IOException, URISyntaxException {
50          super.deleteUser(new Ivorn(arg0), new Ivorn(arg1));
51      }
52      public StoreClient getDelegate(String arg0) throws IOException, URISyntaxException {
53          return super.getDelegate(new Ivorn(arg0));
54      }
55      public InputStream getStream(String arg0) throws IOException, URISyntaxException {
56          return super.getStream(new Ivorn(arg0));
57      }
58      public void move(String arg0, String arg1) throws IOException, URISyntaxException {
59          super.move(new Ivorn(arg0), new Ivorn(arg1));
60      }
61      public void newFolder(String arg0) throws IOException, URISyntaxException {
62          super.newFolder(new Ivorn(arg0));
63      }
64      public void putBytes(byte[] arg0, int arg1, int arg2, String arg3,
65              boolean arg4) throws IOException, URISyntaxException {
66          super.putBytes(arg0, arg1, arg2, new Ivorn(arg3), arg4);
67      }
68      public OutputStream putStream(String arg0) throws IOException, URISyntaxException {
69          return super.putStream(new Ivorn(arg0));
70      }
71      public void putUrl(URL arg0, String arg1, boolean arg2) throws IOException, URISyntaxException {
72          super.putUrl(arg0, new Ivorn(arg1), arg2);
73      }
74      
75      public void putUrl(URL arg0, String arg1) throws IOException, URISyntaxException {
76          super.putUrl(arg0, new Ivorn(arg1), false);
77      }    
78  }
79  
80  
81  /* 
82  $Log: ScriptVoSpaceClient.java,v $
83  Revision 1.3  2004/12/07 16:50:33  jdt
84  merges from scripting-nww-805
85  
86  Revision 1.2.2.1  2004/12/07 14:47:58  nw
87  got table manipulation working.
88  
89  Revision 1.2  2004/12/06 20:03:03  clq2
90  nww_807a
91  
92  Revision 1.1.2.1  2004/12/06 13:27:47  nw
93  fixes to improvide integration with external values and starTables.
94   
95  */