|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.uddi.promoter.PromoterAPI
API functions for exporting, importing, promoting, finding and deleting UDDI entities.
Export is the process of getting UDDI entities from a source registry, specified by a list of keys, and persisting them to a UDDI entity definition file, or EDF, which is in XML format.
Import is the process of reading an EDF and transforming UDDI entities represented in XML format to UDDI4J objects and loading these in a target registry, with the entity keys as specified in the EDF.
Promote is the single step process which combines the export and import steps, which can, but does not require, the writing of the EDF.
Find is the process of performing inquiry operation or operations on the source registry, and using the matching results to generate a list of UDDI entity keys. The list of keys can be used as input to the export, promote and delte functions.
Delete is the process of deleting UDDI entities from the target registry, as specified by a list of UDDI entity keys.
Usage of this class to perform these functions is typically to:
Configuration
and populate it from a Properties
object
or from a configuration properties file
PromoterAPI
passing the Configuration
in the constructor
UddiEntityKeys
, the location of a keys file, or, for one entity, by specifying an
entity type and a key value
exportEntities
, promoteEntities(boolean)
,
importEntities
, deleteEntities
or extractKeysFromInquiry(FindTModel,
FindBusiness, FindService, FindBinding, FindRelatedBusinesses)
Field Summary | |
---|---|
static java.lang.String |
java_copyright
|
Fields inherited from interface com.ibm.uddi.promoter.CommandLineConstants |
---|
ARG_BINDING, ARG_BUSINESS, ARG_DEFINITION_FILE, ARG_DELETE, ARG_EXPORT, ARG_IMPORT, ARG_IMPORT_REFERENCED_ENTITIES, ARG_INPUT_KEYFILE, ARG_INPUT_KEYFILE_OLD, ARG_OVERWRITE, ARG_OVERWRITE_OLD, ARG_PROMOTE, ARG_PROPERTIES_FILE, ARG_SERVICE, ARG_TMODEL, ARG_VERBOSE, ARG_VERBOSE_OLD, USAGE |
Constructor Summary | |
---|---|
PromoterAPI(Configuration config)
Constructor taking a Configuration . |
Method Summary | |
---|---|
void |
deleteEntities()
Drives deletion of entities from the target registry. |
void |
exportEntities()
Drives the export of UDDI entities from the source registry. |
void |
extractKeysFromInquiry(org.uddi4j.request.FindTModel findTModel,
org.uddi4j.request.FindBusiness findBusiness,
org.uddi4j.request.FindService findService,
org.uddi4j.request.FindBinding findBinding,
org.uddi4j.request.FindRelatedBusinesses findRelatedBusiness)
Performs inquiry requests on the source registry and uses the results to set the UddiEntityKeys in PromoterAPI
that can be used by the exportEntities ,
promoteEntities and deleteEntities methods. |
Configuration |
getConfiguration()
Returns the configuration. |
void |
importEntities()
Drives the import of UDDI entities to target registry, where the source of UDDI entities is an entity definition file in XML format, according to the UDDI Utility Tools schema, promoter.xsd . |
void |
promoteEntities(boolean writeXML)
Drives the single step process of extracting UDDI entities from the source registry and importing them to the target registry. |
void |
setConfiguration(Configuration configuration)
Sets the configuration. |
void |
setUddiEntities(java.lang.String keysFilePath)
Reads the list of UDDI entity keys from the specified file. |
void |
setUddiEntities(UddiEntityKeys entityKeys)
Sets the list of UDDI entity keys to be exported, promoted or deleted. |
void |
setUddiEntity(java.lang.String entityType,
java.lang.String entityKey)
Specifys a single UDDI entity to be exported, promoted or deleted. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String java_copyright
Constructor Detail |
public PromoterAPI(Configuration config) throws PromoterConfigurationException, PromoterIOException
Configuration
.
config
- Method Detail |
public void setUddiEntities(UddiEntityKeys entityKeys)
entityKeys
- public void setUddiEntities(java.lang.String keysFilePath) throws PromoterIOException
keysFilePath
- public void setUddiEntity(java.lang.String entityType, java.lang.String entityKey)
entityType
- Can be one of 'tModel', 'business', 'service' or 'binding'.entityKey
- public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration
- public void exportEntities() throws PromoterException
The UDDI entities are persisted to an XML file, the entity definition file (EDF), which can be later used to import into a target UDDI registry.
The EDF is generated according to the UDDI Utility Tools schema, promoter.xsd
.
PromoterException
- public void extractKeysFromInquiry(org.uddi4j.request.FindTModel findTModel, org.uddi4j.request.FindBusiness findBusiness, org.uddi4j.request.FindService findService, org.uddi4j.request.FindBinding findBinding, org.uddi4j.request.FindRelatedBusinesses findRelatedBusiness) throws PromoterException
UddiEntityKeys
in PromoterAPI
that can be used by the exportEntities
,
promoteEntities
and deleteEntities
methods.
The five possible arguments are all UDDI4J find objects and are optional. To omit a find object just set the argument to null. For example, to invoke this method specifying only business and tModel search criteria, the invocation would be similar to:
promoterAPI.extractKeysFromInquiry(findTModel, findBusiness, null, null, null);
findTModel
- findBusiness
- findService
- findBinding
- findRelatedBusiness
- PromoterException
- public void importEntities() throws PromoterException
promoter.xsd
.
PromoterException
- public void promoteEntities(boolean writeXML) throws PromoterException
In this case, although an intermediate XML file may be written, it is not used for the import step.
writeXML
- true
will generate an intermediate EDF.PromoterException
- public void deleteEntities() throws PromoterUDDI4JException, PromoterTransportException, PromoterConfigurationException
PromoterUDDI4JException
- PromoterTransportException
- PromoterConfigurationException
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |