org.apache.juddi.config
Class Install
java.lang.Object
org.apache.juddi.config.Install
public class Install
- extends java.lang.Object
- Author:
- Jeff Faath
Method Summary |
protected static boolean |
alreadyInstalled(org.apache.commons.configuration.Configuration config)
Checks if there is a database with a root publisher. |
static BusinessEntity |
getNodeBusinessEntity(java.lang.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 java.lang.String |
getNodeId(java.lang.String userNodeId,
java.lang.String rootPartition)
|
protected static java.lang.String |
getRootPartition(TModel rootTModelKeyGen)
|
protected static void |
install(org.apache.commons.configuration.Configuration config)
|
static UddiEntityPublisher |
installPublisher(javax.persistence.EntityManager em,
java.lang.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,
java.lang.String fileName,
UddiEntityPublisher publisher,
java.lang.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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_BUSINESSENTITY
public static final java.lang.String FILE_BUSINESSENTITY
- See Also:
- Constant Field Values
FILE_PUBLISHER
public static final java.lang.String FILE_PUBLISHER
- See Also:
- Constant Field Values
FILE_TMODELKEYGEN
public static final java.lang.String FILE_TMODELKEYGEN
- See Also:
- Constant Field Values
FILE_TMODELS
public static final java.lang.String FILE_TMODELS
- See Also:
- Constant Field Values
FILE_PERSISTENCE
public static final java.lang.String FILE_PERSISTENCE
- See Also:
- Constant Field Values
JUDDI_INSTALL_DATA_DIR
public static final java.lang.String JUDDI_INSTALL_DATA_DIR
- See Also:
- Constant Field Values
JUDDI_CUSTOM_INSTALL_DATA_DIR
public static final java.lang.String JUDDI_CUSTOM_INSTALL_DATA_DIR
- See Also:
- Constant Field Values
log
public static org.apache.log4j.Logger log
Install
public Install()
install
protected static void install(org.apache.commons.configuration.Configuration config)
throws javax.xml.bind.JAXBException,
DispositionReportFaultMessage,
java.io.IOException,
org.apache.commons.configuration.ConfigurationException
- Throws:
javax.xml.bind.JAXBException
DispositionReportFaultMessage
java.io.IOException
org.apache.commons.configuration.ConfigurationException
uninstall
protected static void uninstall()
alreadyInstalled
protected static boolean alreadyInstalled(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
- Checks if there is a database with a root publisher. If it is not found
an
- Parameters:
config
-
- Returns:
- true if it finds a database with the root publisher in it.
- Throws:
org.apache.commons.configuration.ConfigurationException
getRootPartition
protected static java.lang.String getRootPartition(TModel rootTModelKeyGen)
throws javax.xml.bind.JAXBException,
java.io.IOException,
DispositionReportFaultMessage
- Throws:
javax.xml.bind.JAXBException
java.io.IOException
DispositionReportFaultMessage
getNodeId
protected static java.lang.String getNodeId(java.lang.String userNodeId,
java.lang.String rootPartition)
throws DispositionReportFaultMessage
- Throws:
DispositionReportFaultMessage
getNodeBusinessEntity
public static BusinessEntity getNodeBusinessEntity(java.lang.String businessKey)
throws DispositionReportFaultMessage
- 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).
- Parameters:
businessKey
-
- Returns:
- BusinessEntity Object
- Throws:
DispositionReportFaultMessage
installSaveTModel
public static void installSaveTModel(javax.persistence.EntityManager em,
java.lang.String fileName,
UddiEntityPublisher publisher,
java.lang.String nodeId,
org.apache.commons.configuration.Configuration config)
throws javax.xml.bind.JAXBException,
DispositionReportFaultMessage,
java.io.IOException,
org.apache.commons.configuration.ConfigurationException
- Public convenience method that allows one to install additional TModels via a SaveTModel structure.
- Parameters:
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 node
- Throws:
javax.xml.bind.JAXBException
DispositionReportFaultMessage
java.io.IOException
org.apache.commons.configuration.ConfigurationException
installPublisher
public static UddiEntityPublisher installPublisher(javax.persistence.EntityManager em,
java.lang.String fileName,
org.apache.commons.configuration.Configuration config)
throws javax.xml.bind.JAXBException,
DispositionReportFaultMessage,
java.io.IOException,
org.apache.commons.configuration.ConfigurationException
- Public convenience method that allows one to install additional Publishers via a Publisher structure.
- Parameters:
em
- - the entity manager to the juddi modelfileName
- - name of Publisher xml file
- Returns:
- UddiEntityPublisher object, can be any UDDIEntity
- Throws:
javax.xml.bind.JAXBException
DispositionReportFaultMessage
java.io.IOException
org.apache.commons.configuration.ConfigurationException
Copyright © 2004-2010. All Rights Reserved.