Menu

#4209 [HHQ-3963] Add action to rendering of subject.gsp or update

Bug
open
None
5
2012-10-09
2010-06-22
No

http://jira.hyperic.com/browse/HHQ-3963


Not sure if this should be a feature request or a request to update the documentation.



According to http://support.hyperic.com/display/DOC/Tailoring+Alert+Notification+Templates



The object 'action' is available when rendering gsp templates. This is not completely accurate, it's only available when rendering the text or email gsps. The subject.gsp excludes this variable. It would be easy to add though, see EmailAction:



    private String createSubject(AlertDefinitionInterface alertdef,


                                 AlertInterface alert, Resource resource,


                                 String status) {


        Map params = new HashMap();


        params.put("resource", resource);


        params.put("alertDef", alertdef);


        params.put("alert", alert);


        params.put("status", status);


        params.put("isSms", new Boolean(isSms()));



        return renderTemplate("subject.gsp", params);


    }



When this method is called the ActionExecutionInfo is available, so we would just need to modify the method signature and pass it as part of the parameters.

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.