This appendix provides reference information about integration points, which are described in Chapter 3, Extending the Administration Console.
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.
An identifier for the integration point. The remaining sections of this appendix do not provide details about specifying this attribute.
The ID of the integration point's parent.
The type of the integration point.
A 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.
A relative path to the JSF file that contains the content to be integrated. Typically, the file contains a JSF code fragment that is incorporated into a page. The code fragment often specifies a link to another JSF page that appears when a user clicks the link.
Use an org.glassfish.admingui:treeNode integration point to insert a node in the Administration Console navigation tree. Specify the attributes and their content as follows.
org.glassfish.admingui:treeNode
The id value of the treeNode that is the parent for this node. The parentId can be any of the following:
The 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.
The Registration node
The Application Server node
The Applications node
The Web Applications node under the Applications node
The Resources node
The Configuration node
The Web Container node under the Configuration node
The HTTP Service node under the Configuration node
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).
A numeric value that specifies the relative ordering of the node on the tree, whether at the top level or under another node.
A relative path to the JSF file that contains the content to be integrated.
For an example, see Example 3–2.
Use an org.glassfish.admingui:serverInstTab integration point to place an additional tab on the Application Server page of the Administration Console. Specify the attributes and their content as follows.
org.glassfish.admingui:serverInstTab
The 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 Enterprise Server.
For a sub-tab, the value is the id value for the parent tab.
A numeric value that specifies the relative ordering of the tab on the page, whether at the top level or under another tab.
A relative path to the JSF file that contains the content to be integrated.
When you use this integration point, your JSF file 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"); 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.
Use 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.
org.glassfish.admingui:commonTask
If 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, which can be deployment (for the Deployment group) or monitoring (for the Monitoring group).
A numeric value that specifies the relative ordering of the tab on the page, whether at the top level or under another tab.
A relative path to the JSF file that contains the content to be integrated.
For examples, see Example 3–7 and Example 3–9.
Use 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.
org.glassfish.admingui:configuration
The 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.
A numeric value that specifies the relative ordering of the item on the Configuration page.
A relative path to the JSF file that contains the content to be integrated.
Use 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.
org.glassfish.admingui:resources
The 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.
A numeric value that specifies the relative ordering of the item on the Resources page.
A relative path to the JSF file that contains the content to be integrated.
For an example, see Example 3–11.
Use 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.
org.glassfish.admingui:customtheme
A 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.
The 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:
Specifies the theme name for the theme that this application may depend on.
Specifies 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.
Use 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.
org.glassfish.admingui:masthead
A 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.
A file that contains the content, typically a file that is included in a JSF page.
For an example, see Example 3–15.
Use 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.
org.glassfish.admingui:loginimage
None; a login image does not have a parent ID.
A 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.
A file that contains the content, typically a file that is included in a JSF page.
For an example, see Example 3–15.
Use 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.
org.glassfish.admingui:loginform
A 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.
A file that contains the content, typically a file that is included in a JSF page.
For an example, see Example 3–15.
Use 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.
org.glassfish.admingui:versioninfo
A 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.
A file that contains the content, typically a file that is included in a JSF page.
For an example, see Example 3–15.