Adding parameter references in authorization resource 9/head
authorMartin Stockhammer <m.stockhammer@web.de>
Fri, 9 Sep 2016 07:40:29 +0000 (09:40 +0200)
committerMartin Stockhammer <m.stockhammer@web.de>
Fri, 9 Sep 2016 07:40:29 +0000 (09:40 +0200)
commit796af57be2dda6f5b4c5b27f57157ecc0a33aff1
tree3c50fbe6e3f938e4c45b33881846852289b69562
parentc02519d5a62d3cb2e9039721084e2b6b4cfcdee1
Adding parameter references in authorization resource

In certain cases the resource must be dynamically set by parameter values.
This patch allows to add a reference into the resource field of the redback
annotation '{parameterName}' that fills the resource of the permission dynamically
with the parameter value, if found.
redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/PermissionsInterceptor.java