You can create a plug-in to provide an action to use in IBM® Content Navigator. For example, you might define a custom action that imports documents or that generates a custom report generation for a set of selected documents. This action can be added to toolbars and context menus.
To create an action:
File | Description |
---|---|
SamplePluginAction.java | This file extends the PluginAction.java class
to define a sample action. The behavior of this action is defined by the samplePluginAction function that is defined in the SamplePlugin.js file. |
SamplePluginCheckInAction.java | This file extends the PluginAction.java class
to define a sample action. The behavior of this action is defined by the samplePluginAction function that is defined in the SamplePlugin.js file. |
SamplePluginFilteredAction.java | This file extends the PluginAction.java class
to define a sample action. This class implements an action that is
available only for documents with a MIME type of text. The behavior of this action is defined by the samplePluginFilteredAction function that is defined in the SamplePlugin.js file. |
CustomAction.js | This file implements the isEnabled function so that an action is enabled only for documents with a MIME type of text. |
Add the action to a custom toolbar or context menu by implementing the getMenuItems method in a PluginMenu subclass to return an instance of this PluginAction class. This method adds the action to the custom toolbar or menu that is represented by the PluginMenu subclass.
After you add the plug-in in the web client, use the IBM Content Navigator administration tool to add the action to a toolbar or context menu.