com.ibm.di.admin
Class Publish

java.lang.Object
  extended by com.ibm.di.admin.Publish

public class Publish
extends Object

This class contains methods needed to publish objects to a flattened configuration file.


Constructor Summary
Publish()
           
 
Method Summary
static void addOperation(ContainerConfig cc, OperationConfig oc)
          Adds an Operation section to a container
static void addVersionInfo(String name, String cls, ContainerConfig cc)
          Adds a VersionInfo record for a component to a container
static List getDependentObjects(BaseConfiguration config)
          Returns a list of components/objects that a given configuration depends on (e.g.
static MetamergeConfig publish(BaseConfiguration[] items, String url)
          Publish an array of items
static MetamergeConfig publish(BaseConfiguration item, String url)
          Publish a list of items
static MetamergeConfig publish(List items, String url)
          Publish a list of items
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Publish

public Publish()
Method Detail

getDependentObjects

public static List getDependentObjects(BaseConfiguration config)
                                throws Exception
Returns a list of components/objects that a given configuration depends on (e.g. references/inherits from)

Parameters:
config - The configuration for which dependencies are generated
Returns:
The list of dependent components
Throws:
Exception

publish

public static MetamergeConfig publish(BaseConfiguration item,
                                      String url)
                               throws Exception
Publish a list of items

Parameters:
item - A list of items to publish
url - The file or url to publish to
Returns:
The config with the published items
Throws:
Exception

publish

public static MetamergeConfig publish(BaseConfiguration[] items,
                                      String url)
                               throws Exception
Publish an array of items

Parameters:
items - The array of items to publish
url - The file or url to publish to
Returns:
The config with the published items
Throws:
Exception

publish

public static MetamergeConfig publish(List items,
                                      String url)
                               throws Exception
Publish a list of items

Parameters:
items - The array of items to publish
url - The file or url to publish to
Returns:
The config with the published items
Throws:
Exception

addOperation

public static void addOperation(ContainerConfig cc,
                                OperationConfig oc)
                         throws Exception
Adds an Operation section to a container

Parameters:
cc - The receiving container
oc - The operation source
Throws:
Exception

addVersionInfo

public static void addVersionInfo(String name,
                                  String cls,
                                  ContainerConfig cc)
                           throws Exception
Adds a VersionInfo record for a component to a container

Parameters:
name - The name of the component
cls - The component's java class name
cc - The receiving container
Throws:
Exception