He had different actions
On Oct 27, 2011 7:32 AM, "Martin Grigorov" <mgrigo...@apache.org> wrote:

> On Thu, Oct 27, 2011 at 1:23 PM, nebojsa.nedic
> <nebojsa.b.ne...@gmail.com> wrote:
> > Hello all,
> >
> > I would like to ask is it possible to add multiple authorize actions on
> one
> > class.
> >
> > It would mean that in case the user has role (i.e.) "Admin" component is
> > enabled and rendered, for role "user" component is disabled and rendered,
> > and for role "guest" component is not rendered.
> >
> > Kind of combination of these two annotations:
> > @AuthorizeAction(action = "ENABLE", roles = { "ROLE_ADMIN" })
> > @AuthorizeAction(action = "RENDER", roles = { "ROLE_USER" })
>
> @AuthorizeAction(action = "ENABLE", roles = { "ROLE_ADMIN", "ROLE_USER" })
> @AuthorizeAction(action = "RENDER", roles = { "ROLE_USER" })
>
> List all roles which are authorized to do the action.
> >
> > What would be the best way to implement this?
> >
> > Thank you.
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AuthorizeAction-multiple-actions-tp3943997p3943997.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to