public class Install extends Object
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 ReplicationConfiguration |
applyReplicationTokenChanges(ReplicationConfiguration replicationCfg,
org.apache.commons.configuration.Configuration config,
String thisnode) |
static 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(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, DispositionReportFaultMessage, IOException, org.apache.commons.configuration.ConfigurationException, XMLStreamException
JAXBException
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(TModel rootTModelKeyGen) throws JAXBException, IOException, DispositionReportFaultMessage
protected static String getNodeId(String userNodeId, String rootPartition) throws DispositionReportFaultMessage
DispositionReportFaultMessage
public static BusinessEntity getNodeBusinessEntity(String businessKey) throws DispositionReportFaultMessage
businessKey
- DispositionReportFaultMessage
public static void installSaveTModel(javax.persistence.EntityManager em, String fileName, UddiEntityPublisher publisher, String nodeId, org.apache.commons.configuration.Configuration config) throws JAXBException, 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
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, DispositionReportFaultMessage, IOException, org.apache.commons.configuration.ConfigurationException, XMLStreamException
em
- - the entity manager to the juddi modelfileName
- - name of Publisher xml fileJAXBException
DispositionReportFaultMessage
IOException
org.apache.commons.configuration.ConfigurationException
XMLStreamException
public static ReplicationConfiguration applyReplicationTokenChanges(ReplicationConfiguration replicationCfg, org.apache.commons.configuration.Configuration config, String thisnode)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.