beautypg.com

IBM WebSphere Adapters User Manual

Page 155

background image

ArrayList objects = getTopLevelObjects();
response.setObjects(objects);
return response;

}

WBIMetadataObjectImpl samples:

WBIMetadataObjectImpl

represents the nodes of the tree that WebSphere Integration

Developer displays during enterprise metadata discovery. In most cases these
nodes map to objects in the EIS that the user selects to import a service
description.

WBIMetadataObjectImpl

should be extended and the following methods must be

implemented.

createFilterProperties

The createFilterProperties() method returns an instance of a property group
that represents properties that you can use to filter searches for child objects of a
MetadataObject

. For example, if the top level node is a schema for JDBC, you

might fetch table names with a filter consisting of a specific alphabet sequence.
Implementation should return null if such properties are not applicable. For more
information, see WBIMetadataTreeImpl.createFilterProperties in the Javadocs.

createObjectProperties

The createObjectProperties() method returns a property group that provides
information about the specific object in MetadataTree. This helps inform the user
about the metadata object instance. Implementation should return null if such
properties are not applicable.

getChildren

The getChildren() method returns an instance of WBIMetadataObjectResponseImpl.
The instance should be populated with child MetadataObjects using method
setObjects()

. (This is comparable to the MetadataTree.listMetadataObjects call.)

The logic should use filter properties, if are supported by the implementation.

public MetadataObjectResponse getChildren(PropertyGroup filterParameters)

throws MetadataException {

WBIMetadataObjectResponseImpl response =

new WBIMetadataObjectResponseImpl();

ArrayList objects = getChildComponents();
response.setObjects(objects);
return response;

}

WBIMetadataSelectionImpl samples:

WBIMetadataSelectionImpl

represents the object that holds the MetadataObjects

that users can select for importing. This class also holds properties that users
specify to select from the set of available MetadataObjects.

Extend WBIMetadataSelectionImpl and implement the following methods described
below.

WebSphere Adapter development overview

149