Defining a Relation Extension
To create a relation extension, you need to create the metadata extension definition in your user interface plug-in module plugin.xml file. You do not need to create a Flex class. Relation extensions use a single common extension point in the vSphere Web Client user interface layer, named vise.relateditems.specs. Relation extensions must specify this extension point, and provide a data object of type com.vmware.ui.relateditems.model.ObjectRelationSetSpec.
The ObjectRelationSetSpec object specifies the object type to which the relation pertains, and a list of RelationSpec objects that describe the current object’s relationship to other vSphere objects. The ObjectReltaionSetSpec contains other optional properties that you can use to set the data view in which relations are displayed, and to further refine when relations appear.
ObjectRelationSetSpec Extension Object Properties lists the properties you set for the ObjectRelationSetSpec object.
Type of object to which the relation pertains. For example, if you are creating a relation for the Host object type, you set the <type> property to the string HostSystem.
Array of objects of type com.vmware.ui.relateditems.model.RelationSpec. Each RelationSpec object describes the relation between the current object, specified in the <type> property, and a target object that you specify. See Describing the Relation Using the RelationSpec Object.
Extension ID of the Related Items data view for the current object. When the user selects the object node using the object navigator, the Related Items data view you specify in the <relationsViewId> property appears in the main workspace in the vSphere Web Client GUI. This property is optional. If you do not include the <relationsViewId> property in your extension definition, no Related Items data view appears for that object.