Issue Details (XML | Word | Printable)

Key: UTIL-28
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: David Peterson
Reporter: Bob Swift
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Utilities Plugin

Need execute function that has the original parameter Map as a parameter

Created: 14/Jul/06 03:13 AM   Updated: 14/Jul/06 03:20 AM
Component/s: Confluence Macro
Affects Version/s: 2.1.3
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
Only need this for 2.2.x and above. Hope you can include in your rework efforts. Here is the code that I added to a base macro that is used for a number of macros that needs to have access to the original parameters (before having their case changed). Basically, a subclass of ConfluenceMacro just needs the option to use either the execute(MacroInfo info) or the execute(MacroInfo info, Map params) call.

public String execute(Map params, String body, RenderContext renderCtx) throws MacroException

{ if (!(renderCtx instanceof PageContext)) throw new MacroException("This macro can only be used in Confluence."); MacroInfo ctx = createMacroInfo(params, body, (PageContext)renderCtx); return execute(ctx, params); }

public String execute(MacroInfo info, Map params) throws MacroException

{ return execute(info); }

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Peterson added a comment - 14/Jul/06 03:20 AM
I'm way ahead of you