How do I update macro parameters using Java

Is it possible within my Macro class, where the code to show my macro image stub we currently update the macro parameters using JS, is it possible to update the macro parameters before the macro is inserted onto the page using Java

Hi Adisa,

What your requirement looks like to me, is a Event Listener while the page is being saved. You might want to read those pages that explain how to do so:

https://developer.atlassian.com/server/confluence/event-listener-module/
https://developer.atlassian.com/server/confluence/writing-an-event-listener-plugin-module/
For the list of events: Atlassian Confluence 6.6.0 API

Hope it helps,

Cheers,

Florian