This appendix provides reference information about integration points, which are described in Extending the Administration Console. For complete information about integration points, see .
Define an integration point for each user interface feature in the console-config.xml file for your add-on component.
The following topics are addressed here:
For each integration-point element, specify the following attributes. Each attribute takes a string value.
idAn identifier for the integration point. The remaining sections of this appendix do not provide details about specifying this attribute.
parentIdThe ID of the integration point's parent.
typeThe type of the integration point.
priorityA numeric value that specifies the relative ordering of integration points with the same parentId. A lower number specifies a higher priority (for example, 100 represents a higher priority than 400). You may need to experiment in order to place the integration point where you want it. This attribute is optional.
contentA relative path to the JavaServer Faces page that contains the content to be integrated. Typically, the file contains a JavaServer Faces code fragment that is incorporated into a page. The code fragment often specifies a link to another JavaServer Faces page that appears when a user clicks the link.
org.glassfish.admingui:navNode Integration PointUse an org.glassfish.admingui:navNode integration point to insert a node in the Administration Console navigation tree. Specify the attributes and their content as follows.
typeorg.glassfish.admingui:navNode, the left-hand navigation tree
parentIdThe id value of the navNode that is the parent for this node. The parentId can be any of the following:
treeThe root node of the entire navigation tree. Use this value to place your node at the top level of the tree. You can then use the id of this node to create additional nodes beneath it.
registrationThe Registration node
applicationServerThe GlassFish Server node
applicationsThe Applications node
resourcesThe Resources node
configurationThe Configuration node
webContainerThe Web Container node under the Configuration node
httpServiceThe HTTP Service node under the Configuration node
Note:
The webContainer and httpService nodes are available only if you installed the web container module for the Administration Console (the console-web-gui.jar OSGi bundle).
priorityA numeric value that specifies the relative ordering of the node on the tree, whether at the top level or under another node.
contentA relative path to the JavaServer Faces page that contains the content to be integrated, or a URL to an external resource that returns the appropriate data structure for inclusion.
For an example, see Example 3-2.
org.glassfish.admingui:rightPanel Integration PointUse an org.glassfish.admingui:rightPanel integration point to specify content for the right frame of the Administration Console. Specify the attributes and their content as follows.
typeorg.glassfish.admingui:rightPanel
parentIdNone.
priorityA numeric value that specifies the relative ordering. If multiple plug-ins specify content for the right frame, the one with greater priority will take precedence.
contentA path relative to the root of the plug-in JAR file to a file containing the content for the right panel. Alternatively, it may contain a full URL which will deliver the content for the right panel.
org.glassfish.admingui:rightPanelTitle Integration PointUse an org.glassfish.admingui:rightPanel integration point to specify the title for the right frame of the Administration Console. Specify the attributes and their content as follows.
typeorg.glassfish.admingui:rightPanelTitle
parentIdNone.
priorityA numeric value that specifies the relative ordering. If multiple plug-ins specify content for the right frame, the one with greater priority will take precedence.
contentSpecifies the title to display at the top of the right panel.
org.glassfish.admingui:serverInstTab Integration PointUse an org.glassfish.admingui:serverInstTab integration point to place an additional tab on the GlassFish Server page of the Administration Console. Specify the attributes and their content as follows.
typeorg.glassfish.admingui:serverInstTab
parentIdThe id value of the tab set that is the parent for this tab. For a top-level tab on this page, this value is serverInstTabs, the tab set that contains the general information property pages for GlassFish Server.
For a sub-tab, the value is the id value for the parent tab.
priorityA numeric value that specifies the relative ordering of the tab on the page, whether at the top level or under another tab.
contentA relative path to the JavaServer Faces page that contains the content to be integrated.
When you use this integration point, your JavaServer Faces page must call the setSessionAttribute handler for the command event to set the session variable of the serverInstTabs tab set to the id value of your tab. For example, the file may have the following content:
<sun:tab id="sampletab" immediate="true" text="Sample First Tab">
<!command
setSessionAttribute(key="serverInstTabs" value="sampleTab");
gf.redirect(page="#{request.contextPath}/page/tabPage.jsf?name=Sample%20First%20Tab");
/>
</sun:tab>
The id of the sun:tab custom tag must be the same as the value argument of the setSessionAttribute handler.
For examples, see Example 3-4 and Example 3-5.
org.glassfish.admingui:commonTask Integration PointUse an org.glassfish.admingui:commonTask integration point to place a new task or task group on the Common Tasks page of the Administration Console. Specify the attributes and their content as follows.
typeorg.glassfish.admingui:commonTask
parentIdIf you are adding a task group, the id value of the Common Tasks page, which is commonTasksSection.
If you are adding a single task, the id value of the task group that is the parent for this tab, such as deployment (for the Deployment group).
priorityA numeric value that specifies the relative ordering of the tab on the page, whether at the top level or under another tab.
contentA relative path to the JavaServer Faces page that contains the content to be integrated.
For examples, see Example 3-7 and Example 3-9.
org.glassfish.admingui:configuration Integration PointUse an org.glassfish.admingui:configuration integration point to add a component to the Configuration page of the Administration Console. Typically, you add a link to the property sheet section of this page. Specify the attributes and their content as follows.
typeorg.glassfish.admingui:configuration
parentIdThe id value of the property sheet for the Configuration page. This value is propSheetSection, the section that contains the property definitions for the Configuration page.
priorityA numeric value that specifies the relative ordering of the item on the Configuration page.
contentA relative path to the JavaServer Faces page that contains the content to be integrated.
org.glassfish.admingui:resources Integration PointUse an org.glassfish.admingui:resources integration point to add a component to the Resources page of the Administration Console. Typically, you add a link to the property sheet section of this page. Specify the attributes and their content as follows.
typeorg.glassfish.admingui:resources
parentIdThe id value of the property sheet for the Resources page. This value is propSheetSection, the section that contains the property definitions for the Resources page.
priorityA numeric value that specifies the relative ordering of the item on the Resources page.
contentA relative path to the JavaServer Faces page that contains the content to be integrated.
For an example, see Example 3-11.
org.glassfish.admingui:customtheme Integration PointUse an org.glassfish.admingui:customtheme integration point to add your own branding to the Administration Console. Specify the attributes and their content as follows. Do not specify a parentId attribute for this integration point.
typeorg.glassfish.admingui:customtheme
priorityA numeric value that specifies the relative ordering of the item in comparison to other themes. This value must be between 1 and 100. The theme with the smallest number is used first.
contentThe name of the properties file that contains the key/value pairs that will be used to access your theme JAR file. You must specify the following keys:
com.sun.webui.theme.DEFAULT_THEMESpecifies the theme name for the theme that this application may depend on.
com.sun.webui.theme.DEFAULT_THEME_VERSIONSpecifies the theme version this application may depend on.
For example, the properties file for the default Administration Console brand contains the following:
com.sun.webui.theme.DEFAULT_THEME=suntheme com.sun.webui.theme.DEFAULT_THEME_VERSION=4.3
For an example, see Example 3-14.
org.glassfish.admingui:masthead Integration PointUse an org.glassfish.admingui:masthead integration point to specify the name and location of the include masthead file, which can be customized with a branding image. This include file will be integrated on the masthead of the Administration Console. Specify the attributes and their content as follows. Do not specify a parentId attribute for this integration point.
typeorg.glassfish.admingui:masthead
priorityA numeric value that specifies the relative ordering of the item in comparison to other items of this type. This value must be between 1 and 100. The theme with the smallest number is used first.
contentA file that contains the content, typically a file that is included in a JavaServer Faces page.
For an example, see Example 3-15.
org.glassfish.admingui:loginimage Integration PointUse an org.glassfish.admingui:loginimage integration point to specify the name and location of the include file containing the branding login image code that will be integrated with the login page of the Administration Console. Specify the attributes and their content as follows. Do not specify a parentId attribute for this integration point.
typeorg.glassfish.admingui:loginimage
parentIdNone; a login image does not have a parent ID.
priorityA numeric value that specifies the relative ordering of the item in comparison to other items of this type. This value must be between 1 and 100. The theme with the smallest number is used first.
contentA file that contains the content, typically a file that is included in a JavaServer Faces page.
For an example, see Example 3-15.
org.glassfish.admingui:loginform Integration PointUse an org.glassfish.admingui:loginform integration point to specify the name and location of the include file containing the customized login form code. This code also contains the login background image used for the login page for the Administration Console. Specify the attributes and their content as follows. Do not specify a parentId attribute for this integration point.
typeorg.glassfish.admingui:loginform
priorityA numeric value that specifies the relative ordering of the item in comparison to other items of this type. This value must be between 1 and 100. The theme with the smallest number is used first.
contentA file that contains the content, typically a file that is included in a JavaServer Faces page.
For an example, see Example 3-15.
org.glassfish.admingui:versioninfo Integration PointUse an org.glassfish.admingui:versioninfo integration point to specify the name and location of the include file containing the branding image that will be integrated with the content of the version popup window. Specify the attributes and their content as follows. Do not specify a parentId attribute for this integration point.
typeorg.glassfish.admingui:versioninfo
priorityA numeric value that specifies the relative ordering of the item in comparison to other items of this type. This value must be between 1 and 100. The theme with the smallest number is used first.
contentA file that contains the content, typically a file that is included in a JavaServer Faces page.
For an example, see Example 3-15.