# Usage: How to use the dashboard service

Author: Tsuyoshi Ito - clerezza.org

Date: June 7, 2009

## Using the service

A JaxRs resource can reference the service `org.apache.clerezza.platform.dashboard.DashBoard` and can use the Method createGraphNodeWithDashBoardMenu to add the dashboard menu to a created graph of the JaxRs Resource.
JaxRs resources can register themselves to the dashboard by adding the service properties:

- `@scr.property name="org.apache.clerezza.platform.dashboard.visible" type="Boolean" value="true""org.apache.clerezza.platform.dashboard.visible" type="Boolean" value="true",`
- `@scr.property type="String" value="Name of module/bundle" description="Specifies the label of the menu entry."`,
- `@scr.property type="String" value="XY" description="Specifies the the group label"`, and
- `@scr.property type="Integer" value="0" description="Specifies the index of the entry in the menu"`.

,

## Add dashboard to seedsnipe template

Insert the following javascript references `/jquery/jquery-1.3.2.min.js` and `/jquery/jquery.menu.js`. After the tag <body> of your template insert the follwing code: <div id="header"> ${render(dhb:includeDashBoardMenu, "naked")} <h1>Titel of Bundle</h1> </div>

That's all. Enjoy.