org.activemath.webapp.tutor.cgWebService
Class RepositoryRegistrationWebService
java.lang.Object
org.activemath.webapp.tutor.cgWebService.RepositoryRegistrationWebService
public class RepositoryRegistrationWebService
- extends Object
Web Service class for the registration of repositories.
|
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 |
log
protected static Category log
RepositoryRegistrationWebService
public RepositoryRegistrationWebService()
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
- name
- binding URL
- URL of the OWL-ontology
- URL of the mapping from the ontology of the repository to
the Ontology of Instructional Objects (OIO).
- ContentId for test query
- 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.