HQU Scaffolding plus View Intro
Making a view accessible in HQ is as easy as figuring out where you want to see it in the UI. The quickest way to see your view in action is to attach it to a menu item in the masthead. Edit Plugin.groovy:
import org.hyperic.hq.hqu.rendit.HQUPlugin
class Plugin extends HQUPlugin {
Plugin() {
addView(description: 'MegaBox Freezer View',
attachType: 'masthead',
controller: FreezerController,
action: 'index',
category: 'tracker')
}
}
Edit etc/cool_i18n.properties
cool.description=Cool Boxes
Redeploy your plugin to HQ:
ant hqu-redeploy-plugin -Dplugin=cool
Finally, reload your browser on any HQ page and see your new 'Cool Boxes' in the 'Tracker' menu.
These plugins can be seen both inside and out of HQ.
http://localhost:7080/hqu/cool/freezer/index.hqu