public class Install extends Object
org.apache.juddi.servlets.RegistryServlet
Modifier and Type | Field and Description |
---|---|
static String |
FILE_BUSINESSENTITY |
static String |
FILE_PERSISTENCE |
static String |
FILE_PUBLISHER |
static String |
FILE_REPLICATION_CONFIG |
static String |
FILE_TMODELKEYGEN |
static String |
FILE_TMODELS |
static String |
JUDDI_CUSTOM_INSTALL_DATA_DIR |
static String |
JUDDI_INSTALL_DATA_DIR |
static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
Install() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
alreadyInstalled(org.apache.commons.configuration.Configuration config)
Checks if there is a database with a root publisher.
|
static org.uddi.repl_v3.ReplicationConfiguration |
applyReplicationTokenChanges(org.uddi.repl_v3.ReplicationConfiguration replicationCfg,
org.apache.commons.configuration.Configuration config,
String thisnode) |
static org.uddi.api_v3.BusinessEntity |
getNodeBusinessEntity(String businessKey)
Public convenience method that allows one to retrieve the node
business entity (perhaps to display during an install process, or
even to initiate the install process).
|
protected static String |
getNodeId(String userNodeId,
String rootPartition) |
protected static String |
getRootPartition(org.uddi.api_v3.TModel rootTModelKeyGen) |
protected static void |
install(org.apache.commons.configuration.Configuration config) |
static UddiEntityPublisher |
installPublisher(javax.persistence.EntityManager em,
String fileName,
org.apache.commons.configuration.Configuration config)
Public convenience method that allows one to install additional
Publishers via a Publisher structure.
|
static void |
installSaveTModel(javax.persistence.EntityManager em,
String fileName,
UddiEntityPublisher publisher,
String nodeId,
org.apache.commons.configuration.Configuration config)
Public convenience method that allows one to install additional
TModels via a SaveTModel structure.
|
protected static void |
uninstall() |
public static final String FILE_BUSINESSENTITY
public static final String FILE_PUBLISHER
public static final String FILE_TMODELKEYGEN
public static final String FILE_TMODELS
public static final String FILE_PERSISTENCE
public static final String JUDDI_INSTALL_DATA_DIR
public static final String JUDDI_CUSTOM_INSTALL_DATA_DIR
public static final String FILE_REPLICATION_CONFIG
public static final org.apache.commons.logging.Log log
protected static void install(org.apache.commons.configuration.Configuration config) throws JAXBException, org.uddi.v3_service.DispositionReportFaultMessage, IOException, org.apache.commons.configuration.ConfigurationException, XMLStreamException
JAXBException
org.uddi.v3_service.DispositionReportFaultMessage
IOException
org.apache.commons.configuration.ConfigurationException
XMLStreamException
protected static void uninstall()
protected static boolean alreadyInstalled(org.apache.commons.configuration.Configuration config) throws org.apache.commons.configuration.ConfigurationException
config
- org.apache.commons.configuration.ConfigurationException
protected static String getRootPartition(org.uddi.api_v3.TModel rootTModelKeyGen) throws JAXBException, IOException, org.uddi.v3_service.DispositionReportFaultMessage
JAXBException
IOException
org.uddi.v3_service.DispositionReportFaultMessage
protected static String getNodeId(String userNodeId, String rootPartition) throws org.uddi.v3_service.DispositionReportFaultMessage
org.uddi.v3_service.DispositionReportFaultMessage
public static org.uddi.api_v3.BusinessEntity getNodeBusinessEntity(String businessKey) throws org.uddi.v3_service.DispositionReportFaultMessage
businessKey
- org.uddi.v3_service.DispositionReportFaultMessage
public static void installSaveTModel(javax.persistence.EntityManager em, String fileName, UddiEntityPublisher publisher, String nodeId, org.apache.commons.configuration.Configuration config) throws JAXBException, org.uddi.v3_service.DispositionReportFaultMessage, IOException, org.apache.commons.configuration.ConfigurationException, XMLStreamException
em
- - the entity manager to a juddi modelfileName
- - name of SaveTModel xml filepublisher
- - the publisher structure that owns the tModelsnodeId
- - the node id of the custodial nodeJAXBException
org.uddi.v3_service.DispositionReportFaultMessage
IOException
org.apache.commons.configuration.ConfigurationException
XMLStreamException
public static UddiEntityPublisher installPublisher(javax.persistence.EntityManager em, String fileName, org.apache.commons.configuration.Configuration config) throws JAXBException, org.uddi.v3_service.DispositionReportFaultMessage, IOException, org.apache.commons.configuration.ConfigurationException, XMLStreamException
em
- - the entity manager to the juddi modelfileName
- - name of Publisher xml fileJAXBException
org.uddi.v3_service.DispositionReportFaultMessage
IOException
org.apache.commons.configuration.ConfigurationException
XMLStreamException
public static org.uddi.repl_v3.ReplicationConfiguration applyReplicationTokenChanges(org.uddi.repl_v3.ReplicationConfiguration replicationCfg, org.apache.commons.configuration.Configuration config, String thisnode)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.