You can use an XML template included in the vSphere Web Client SDK to quickly create an object collection node extension for a new object type.
The object collection template generates an extension definition for an object collection node that contains an expandable sliding view in the object navigator for all objects in the collection. The variables in the template reference the necessary relation and object workspace extensions that the object collection node needs to function.
The following example shows how to instantiate the object collection template for a custom object type called Chassis. In the example, the <variable> elements correspond to the properties of the ObjectNavigatorNodeSpec data object.
To avoid name clashes with other extensions, such as object view templates, the namespace variable must be unique. The template instance ID must be unique for every object collection you define.
<templateInstance id="com.vmware.samples.lists.allChassis"> <templateId>vsphere.core.inventorylist.objectCollectionTemplate</templateId> <variable name="namespace" value="com.vmware.samples.chassisCollection"/> <variable name="title" value="#{chassisLabel}"/> <variable name="icon" value="#{chassis}"/> <variable name="objectType" value="samples:Chassis"/> <variable name="listViewId" value="com.vmware.samples.chassis.list"/> <variable name="parentUid" value="com.vmware.samples.chassisAppCategory"/> </templateInstance>