...
Line | Description |
---|---|
1 | This package must be imported. |
3 | This invokes the Macro Security macro, passing it "restricted" as the name of the macro. It returns either a null string or an error string into the variable securityMessage. |
5-6 | If an error was returned by Macro Security, it is thrown here and you would skip additional processing (thus preventing the macro from rendering its usual output). |
...
9-16 | These lines are used to validate each parameter for which a Parameter Restriction is needed. As noted above, these would be placed just after any parameter handling logic. If a value was specified for the parameter, it invokes the Macro Security macro, passing it "restricted" as the name of the macro and "myRestrictedParameterName" as the name of the parameter. If an error was returned by Macro Security, it is thrown here and you would skip additional processing (thus preventing the macro from rendering its usual output). |
How your customers use Macro Security with your add-on
To use your add-on's new Macro Security capability, your customer's Confluence Administrators must:
...