CentraSite Documentation : CentraSite Administrator’s Guide : Importing Objects Using the API : Invoking an Importer from a Java Program : Removing a Schema
Removing a Schema
 
remove
remove
removeCascading
removeCascading
You can remove a schema from CentraSite. This function deletes the XML Schema object, the ExternalLink and the resource in the repository.
Note:  
If a schema is referenced by another object, for example if it is referenced by the ExternalLink of a WSDL object, then it cannot be deleted.
The following example demonstrates how to remove a schema from CentraSite:
import com.centrasite.jaxr.JAXRAccessor;
import com.centrasite.jaxr.schema.SchemaAdministrator;
import javax.xml.registry.infomodel.ExternalLink;
 
String dbURL = "http://localhost:53307/CentraSite/CentraSite";
String user = ...;
String password = ...;
ExternalLink schemaExtLink = ...;
 
JAXRAccessor jaxr = new JAXRAccessor(dbURL, user, password);
 
try
{
SchemaAdministrator sa = new SchemaAdministrator(jaxr);
sa.remove(schemaExtLink);
}
catch (Exception e)
{
// handle error
}
finally
{
jaxr.close();
}
The SchemaAdministrator class provides the following methods for removing a schema:
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback