Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

LineDescription
1This package must be imported.
3This 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-6If 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:

...