[aerogear-dev] [Unified Push Server] Roles structure & password management

Sebastien Blanc scm.blanc at gmail.com
Tue Nov 5 12:07:57 EST 2013


Sorry I don't get your example, why should destroyEverything() also have
 "simple" annotated?



On Tue, Nov 5, 2013 at 6:03 PM, Bruno Oliveira <bruno at abstractj.org> wrote:

> But if you are supporting multiple roles, you can't avoid such issue.
>
> For example:
>
> @Secure({"developer", "simple"})
> public void destroyEverything(){
> // access the nuclear reactor
> }
>
> So the interceptor will look into this method and say "geez we have
> simple role here" and bang!
>
> What would be the solution for such problem?
>
> Sebastien Blanc wrote:
> > Well, I was thinking of annotating methods, so delete all the thing
> > will be only for "developer" and "admin"
>
> --
> abstractj
>
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20131105/40543fc7/attachment.html 


More information about the aerogear-dev mailing list