SOA Governance and API Management : CentraSite Developers Guide : Pluggable Architecture : Customizing Content Pages : Extension Points : Command for Item
Command for Item
Usage
Add a command to a menu.
Attributes
*point="com.centrasite.control.itemCommand"
*id (default: name of implementing class)
*class
Interface
ExtensionCommand
*boolean appliesTo (Item)
*String getName()
*String getImageURL()
*int getCategory()
(used for grouping of commands)
*abstract void execute(ActionContext actionContext)
Abstract base class
AbstractExtensionCommand
Processing
*When a list of commands for a menu item is retrieved (for example, for context menu or toolbar), the following steps are performed for each known extension:
*create an instance of class and invoke appliesTo(Item).
*If true is returned, the command is added to the list.
Provided by
CentraSite Control
Example
<extension point="com.centrasite.control.itemCommand"
id="test"
class="com.centrasite.control.extpt.junit.
DisplayRegObjKeyCommand">
</extension>
Copyright © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback