org.apache.juddi.config
Class Install

java.lang.Object
  extended by org.apache.juddi.config.Install

public class Install
extends Object

Author:
Jeff Faath

Field Summary
static String FILE_BUSINESSENTITY
           
static String FILE_PERSISTENCE
           
static String FILE_PUBLISHER
           
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 Summary
Install()
           
 
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(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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_BUSINESSENTITY

public static final String FILE_BUSINESSENTITY
See Also:
Constant Field Values

FILE_PUBLISHER

public static final String FILE_PUBLISHER
See Also:
Constant Field Values

FILE_TMODELKEYGEN

public static final String FILE_TMODELKEYGEN
See Also:
Constant Field Values

FILE_TMODELS

public static final String FILE_TMODELS
See Also:
Constant Field Values

FILE_PERSISTENCE

public static final String FILE_PERSISTENCE
See Also:
Constant Field Values

JUDDI_INSTALL_DATA_DIR

public static final String JUDDI_INSTALL_DATA_DIR
See Also:
Constant Field Values

JUDDI_CUSTOM_INSTALL_DATA_DIR

public static final String JUDDI_CUSTOM_INSTALL_DATA_DIR
See Also:
Constant Field Values

log

public static org.apache.commons.logging.Log log
Constructor Detail

Install

public Install()
Method Detail

install

protected static void install(org.apache.commons.configuration.Configuration config)
                       throws javax.xml.bind.JAXBException,
                              DispositionReportFaultMessage,
                              IOException,
                              org.apache.commons.configuration.ConfigurationException
Throws:
javax.xml.bind.JAXBException
DispositionReportFaultMessage
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 String getRootPartition(TModel rootTModelKeyGen)
                                  throws javax.xml.bind.JAXBException,
                                         IOException,
                                         DispositionReportFaultMessage
Throws:
javax.xml.bind.JAXBException
IOException
DispositionReportFaultMessage

getNodeId

protected static String getNodeId(String userNodeId,
                                  String rootPartition)
                           throws DispositionReportFaultMessage
Throws:
DispositionReportFaultMessage

getNodeBusinessEntity

public static BusinessEntity getNodeBusinessEntity(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,
                                     String fileName,
                                     UddiEntityPublisher publisher,
                                     String nodeId,
                                     org.apache.commons.configuration.Configuration config)
                              throws javax.xml.bind.JAXBException,
                                     DispositionReportFaultMessage,
                                     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 model
fileName - - name of SaveTModel xml file
publisher - - the publisher structure that owns the tModels
nodeId - - the node id of the custodial node
Throws:
javax.xml.bind.JAXBException
DispositionReportFaultMessage
IOException
org.apache.commons.configuration.ConfigurationException

installPublisher

public static UddiEntityPublisher installPublisher(javax.persistence.EntityManager em,
                                                   String fileName,
                                                   org.apache.commons.configuration.Configuration config)
                                            throws javax.xml.bind.JAXBException,
                                                   DispositionReportFaultMessage,
                                                   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 model
fileName - - name of Publisher xml file
Returns:
UddiEntityPublisher object, can be any UDDIEntity
Throws:
javax.xml.bind.JAXBException
DispositionReportFaultMessage
IOException
org.apache.commons.configuration.ConfigurationException


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.