Packagecom.vmware.actionsfw
Classpublic class ActionSetSpec
InheritanceActionSetSpec Inheritance Object

This descriptor class wraps a set of ActionSpec objects and is the object type for extensions that extend the vise.actions.sets extension point.

The action framework generates actions from the ActionSpec objects contained within the actions property. Each action within the set may share common metadata that describes the type of objects for which the contained actions are relevant.

View the examples

See also

com.vmware.actionsfw.ActionSpec


Public Properties
 PropertyDefined By
  actions : Array
An Array of ActionSpec objects that describe a set of actions.
ActionSetSpec
Property Detail
actionsproperty
public var actions:Array

An Array of ActionSpec objects that describe a set of actions.

Examples
The following code might appear in a plugin manifest file to declare an action for virtual machines.
 
  <!-- action set for VMs -->
  <extension id="com.acme.actions.vm.vmActionSet"/>
     <extendedPoint>vise.actions.sets</extendedPoint>
     <object>
        <actions>
           <!-- action 1 -->
           <com.vmware.actionsfw.ActionSpec>
              <uid>com.acme.actions.vm.vmAction1</uid>
              <label>action label 1</label>
              <description>This will perform action 1 on the virtual machine</description>
              <icon>Embed("../assets/vmAction1Icon.png")</icon>
              <!-- This action requires that the "config.template" property be true on the ActionContext objects -->
              <conditionalProperty>config.template</conditionalProperty>
              <!-- The command class that handles ActinInvocationEvents for this action -->
              <operationId>vmAction1CommandClass</operationId>
              <acceptsMultipleTargets>true</acceptsMultipleTargets>
           </com.vmware.actionsfw.ActionSpec>
        </actions>
     </object>
     <metadata>
        <objectType>VirtualMachine</objectType>
     </metadata>
  </extension>