1 package org.astrogrid.registry.client.admin;
2
3
4 import java.net.URL;
5 import java.util.Vector;
6 import javax.xml.parsers.DocumentBuilder;
7 import javax.xml.parsers.DocumentBuilderFactory;
8 import javax.xml.parsers.ParserConfigurationException;
9 import org.apache.axis.client.Call;
10 import org.apache.axis.client.Service;
11 import org.apache.axis.message.SOAPBodyElement;
12 import org.apache.axis.utils.XMLUtils;
13 import org.w3c.dom.Document;
14 import org.w3c.dom.Element;
15 import org.w3c.dom.NodeList;
16 import org.w3c.dom.Node;
17 import java.io.Reader;
18 import java.io.StringReader;
19 import org.xml.sax.InputSource;
20
21 import javax.xml.rpc.ServiceException;
22 import org.xml.sax.SAXException;
23 import java.rmi.RemoteException;
24
25 import org.astrogrid.registry.RegistryException;
26
27 import java.io.File;
28 import java.io.IOException;
29 import org.astrogrid.util.DomHelper;
30 import org.astrogrid.config.Config;
31
32 import org.astrogrid.registry.common.XSLHelper;
33
34 /***
35 * Class Name: RegistryAdminService
36 * Description: This class represents the client webservice delegate to the Administration piece of the
37 * web service. It uses the same Interface as the server side webservice so they both implement and handle
38 * the same web service method names. The primary goal of this class is to establish a Axis-Message style
39 * webservice call to the server.
40 *
41 * @see org.astrogrid.registry.common.RegistryAdminInterface
42 * @author Kevin Benson
43 *
44 *
45 */
46 public interface RegistryAdminService {
47
48
49 /***
50 * Takes an XML Document to send to the update server side web service call. Establishes
51 * a service and a call to the web service and call it's update method, using an Axis-Message
52 * style. Then updates this document onto the registry.
53 * @param query Document a XML document dom object to be updated on the registry.
54 * @return the document updated on the registry is returned.
55 * @author Kevin Benson
56 *
57 */
58 public Document update(Document update) throws RegistryException;
59
60 public Document updateFromFile(File fi) throws RegistryException;
61
62 public Document updateFromURL(URL location) throws RegistryException;
63
64 public String getCurrentStatus();
65
66 public Document getStatus();
67
68 public void harvestResource(Document harvestDoc) throws RegistryException;
69 }