IBM Content Navigator, Version 2.0.3         

Creating a feature

You can create a plug-in to add a major feature to IBM® Content Navigator. For example, you might create a feature to show statistical data on content usage or a summary of recent document activity. You might also create a feature or to select documents for archival. This feature can be displayed with the features that are provided by IBM Content Navigator such as favorites, browse, search, and administration.

Procedure

To define a feature:

  1. Create an icon to represent the feature in the web client. Start of change The icon must be 24 pixels wide by 24 pixels high on a transparent background. Make the target dimensions fit within 22 pixels by 22 pixels and surround it with 1 pixel of padding. For best results and maintainability, create the icon as a Scalable Vector Graphics (SVG) image. Alternatively, you can create the icon as a transparent PNG file. End of change
  2. Create a widget to provide the primary pane that defines the user interface for the feature. This widget provides users with access to the behavior of the feature.
  3. Extend the PluginFeature class to describe the feature:
    1. Implement the getIconUrl method to return the class name of the icon that you created in step 1.
    2. Start of change Implement the getSvgFilePath method to return the path to the SVG file, if you created one in step 1. End of change
    3. Implement the getContentClass method to return an instance of the widget that you created in step 2.
  4. Add the service as a component in your Plugin.java subclass. Implement the getFeatures method to return an instance of the PluginFeature class that you created in step 3.

Sample plug-in files for a custom feature

The following files in the sample plug-in define a feature:
Table 1. Sample files that define a plug-in feature
File Description
SamplePluginFeature.java This file extends the PluginFeature class to create a sample feature.

What to do next

After you add the plug-in in the web client, use the IBM Content Navigator administration tool to add the feature to a desktop. You add the feature on the Appearance tab for the desktop.