N1 Grid Service Provisioning System 5.0 Plug-in Development Guide

Defining an Interface to the Plug-In

One of the key activities in creating a solution that you can provide to others or distribute across your environment is defining an interface to your solution within the N1 Grid Service Provisioning System browser interface. To define the interface, you create an XML file that uses the <plguinUI> element and its children. For information about the <pluginUI> element, see Chapter 6, Plug-in User Interface Schema, in N1 Grid Service Provisioning System 5.0 XML Schema Reference Guide.


Example 2–16 Sample Plug-In Interface File

The following sample plug-in interface file pluginUI.xml is for the Solaris Zones plug-in.

<?xml version="1.0" encoding="UTF-8"?>
<pluginUI menuItem="Solaris"   xmlns="http://www.sun.com/schema/SPS"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.sun.com/schema/SPS pluginUI.xsd"
   schemaVersion="5.0">
   <icon jarPath="gui/solaris.gif"/>
   <customPage name="Solaris"> 
    <section title="Solaris specific tasks"
       description="create and manage Solaris specific components...">
       <entry title="Solaris Zones" description="create and manage zones">
         <action text="list" toolTip="list of installed zones">
           <compWhereInstalled path="/com/sun/solaris" name="N1GridContainer"/>
         </action>
         <action text="create and manage" toolTip="create and manage zones">
           <compDetails path="/com/sun/solaris" name="N1GridContainer" />
         </action>
       </entry>
     </section>
   </customPage>
</pluginUI>