org.activemath.webapp.tutor.cgWebService
Class RepositoryRegistrationWebService

java.lang.Object
  extended by org.activemath.webapp.tutor.cgWebService.RepositoryRegistrationWebService

public class RepositoryRegistrationWebService
extends Object

Web Service class for the registration of repositories.


Field Summary
protected static Category log
           
 
Constructor Summary
RepositoryRegistrationWebService()
           
 
Method Summary
 org.apache.axiom.om.OMElement getMetadataOntology(org.apache.axiom.om.OMElement request)
          Returns the ontology as an XML document contained in the result OMElement.
 org.apache.axiom.om.OMElement registerRepository(org.apache.axiom.om.OMElement repository)
          Registers a repository according to the arguments given in the OMElement request.
 org.apache.axiom.om.OMElement unregisterRepository(org.apache.axiom.om.OMElement repository)
          Unregisters a repository from CGWS with given OMElement which contains the repository Id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Category log
Constructor Detail

RepositoryRegistrationWebService

public RepositoryRegistrationWebService()
Method Detail

registerRepository

public org.apache.axiom.om.OMElement registerRepository(org.apache.axiom.om.OMElement repository)
Registers a repository according to the arguments given in the OMElement request. The arguments of the request are

Parameters:
repository -
Returns:
an OMElement. If the registration was successful, it contains the given OMElement. Otherwise, the OMElement contains an error message.

unregisterRepository

public org.apache.axiom.om.OMElement unregisterRepository(org.apache.axiom.om.OMElement repository)
Unregisters a repository from CGWS with given OMElement which contains the repository Id.

Parameters:
repository - (Id of the repository, for instance the bindingURL)
Returns:
OMElement. If it contains the request (like an echo), then the unregistration was successful, otherwise, if it contains the error message, it means, there's something wrong.

getMetadataOntology

public org.apache.axiom.om.OMElement getMetadataOntology(org.apache.axiom.om.OMElement request)
Returns the ontology as an XML document contained in the result OMElement.

Parameters:
request - (any OMElement, the content of request won't be read)
Returns:
the OIO ontology as XML.