Deadbolt - Play Framework - How to check a @RestrictedResource with parameters in a controller?
===


With Deadbolt's module we can check the restrictedResource with a ressource name and parameters in the view.

For example in my view, I have it, and it works well:


    #{deadbolt.restrictedResource resourceKeys:['Domain'] , resourceParameters:['domainid':domain.id]}
       <li><a href="@{Admin.showDomain(domain.id)}">${domain.title}</a></li>
    #{/deadbolt.restrictedResource}



But in my controller, I just can check the ressource name but I don't find a way to check it in my RestrictedResourcesHandler passing the domainid with.


I am looking for a solution to do something like that:

    @RestrictedResource(name = {"Domain"}, params = {domainid})
    public static void showDomain(String domainid)
    {
    }

Thanks in advance