<div dir="ltr">Sorry I don&#39;t get your example, why should destroyEverything() also have  &quot;simple&quot; annotated? <div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 6:03 PM, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">But if you are supporting multiple roles, you can&#39;t avoid such issue.<br>

<br>
For example:<br>
<br>
@Secure({&quot;developer&quot;, &quot;simple&quot;})<br>
public void destroyEverything(){<br>
// access the nuclear reactor<br>
}<br>
<br>
So the interceptor will look into this method and say &quot;geez we have<br>
simple role here&quot; and bang!<br>
<br>
What would be the solution for such problem?<br>
<div class=""><div class="h5"><br>
Sebastien Blanc wrote:<br>
&gt; Well, I was thinking of annotating methods, so delete all the thing<br>
&gt; will be only for &quot;developer&quot; and &quot;admin&quot;<br>
<br>
</div></div><span class=""><font color="#888888">--<br>
abstractj<br>
<br>
<br>
</font></span><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div></div></div>