You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Bruce McGuire <br...@coastware.com> on 2008/02/14 20:39:57 UTC

How to NOT use wicket's Role class

Hello.

 

My application has a need for more roles than user and admin.

 

Can someone point me to links etc. on the simplest method of using more than
these roles please?  This class seems to be final, so extending it won't do
the trick. Something of a similar complexity is desired, though.

 

Thanks,

 

Bruce.


Re: How to NOT use wicket's Role class

Posted by Eelco Hillenius <ee...@gmail.com>.
On Feb 16, 2008 1:17 AM, James Carman <ja...@carmanconsulting.com> wrote:
> Okay, here's a dumb question which comes from reading your slides from
> Javaopolis.  I couldn't find anything on the main website.  Why is it
> named Wicket?  Is it from the fuzzy little dude from Star Wars Episode
> V: The Empire Strikes Back or is it based on the "bat" in cricket?  Is
> there any place on the Wicket site that describes why it's named that?

Jonathan's foreword of Wicket In Action will say something about it.
And the first chapter says what it is not :-)

Eelco

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to NOT use wicket's Role class

Posted by James Carman <ja...@carmanconsulting.com>.
Okay, here's a dumb question which comes from reading your slides from
Javaopolis.  I couldn't find anything on the main website.  Why is it
named Wicket?  Is it from the fuzzy little dude from Star Wars Episode
V: The Empire Strikes Back or is it based on the "bat" in cricket?  Is
there any place on the Wicket site that describes why it's named that?

On 2/16/08, James Carman <ja...@carmanconsulting.com> wrote:
> Wonderful!  I'll be sure I let folks know when/if I use some of this
> content.  Thank you!
>
> On 2/16/08, Martijn Dashorst <ma...@gmail.com> wrote:
> > http://slideshare.net/tag/wicket
> >
> > If you choose to copy content from those presentations, make sure you
> > attribute the original author accordingly (not necessary when using
> > one or two slides, use your discretion). I've seen a couple of
> > presentations that are verbatim copies without proper attribution.
> >
> > Martijn
> >
> > On 2/16/08, James Carman <ja...@carmanconsulting.com> wrote:
> > > Speaking of spreading the word, I'm planning on giving a talk on
> > > Wicket to our local Java users group next month.  Are there any
> > > resources out there that you would suggest that I use?
> > >
> > > On 2/15/08, Jonathan Locke <jo...@gmail.com> wrote:
> > > >
> > > >
> > > >  well, spread the word!  ;-)
> > > >
> > > >
> > > >
> > > >  Bruce McGuire-2 wrote:
> > > >  >
> > > >  > Hi Jonathan.
> > > >  >
> > > >  > Thanks for the information, no need for the apology. I am loving
> > > >  > developing
> > > >  > in Wicket. I just wish I had started earlier.
> > > >  >
> > > >  > Bruce.
> > > >  >
> > > >  > -----Original Message-----
> > > >  > From: Jonathan Locke [mailto:jonathan.locke@gmail.com]
> > > >  > Sent: Thursday, 14 February, 2008 03:25 PM
> > > >  > To: users@wicket.apache.org
> > > >  > Subject: Re: How to NOT use wicket's Role class
> > > >  >
> > > >  >
> > > >  >
> > > >  > sorry, i really just ran out of time writing the auth-roles package and so
> > > >  > it's closer to an example than something fully reusable.  in my own
> > > >  > projects
> > > >  > i don't use auth-roles exactly as is.  instead, i use a Role enum and keep
> > > >  > a
> > > >  > Set of those role objects in my User object stored via hibernate.  you do
> > > >  > lose type safety in your hasAnyRole() implementation comparing with the
> > > >  > string role annotations (would be great if you could specify a list of
> > > >  > Role
> > > >  > values!) but it's not a big deal for my projects so i just compare with
> > > >  > each
> > > >  > enum's toString() value.
> > > >  >
> > > >  >
> > > >  > Bruce McGuire-2 wrote:
> > > >  >>
> > > >  >> Hello.
> > > >  >>
> > > >  >>
> > > >  >>
> > > >  >> My application has a need for more roles than user and admin.
> > > >  >>
> > > >  >>
> > > >  >>
> > > >  >> Can someone point me to links etc. on the simplest method of using more
> > > >  >> than
> > > >  >> these roles please?  This class seems to be final, so extending it won't
> > > >  >> do
> > > >  >> the trick. Something of a similar complexity is desired, though.
> > > >  >>
> > > >  >>
> > > >  >>
> > > >  >> Thanks,
> > > >  >>
> > > >  >>
> > > >  >>
> > > >  >> Bruce.
> > > >  >>
> > > >  >>
> > > >  >>
> > > >  >
> > > >  > --
> > > >  > View this message in context:
> > > >  > http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p154918
> > > >  > 31.html
> > > >  > Sent from the Wicket - User mailing list archive at Nabble.com.
> > > >  >
> > > >  >
> > > >  > ---------------------------------------------------------------------
> > > >  > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > >  > For additional commands, e-mail: users-help@wicket.apache.org
> > > >  >
> > > >  >
> > > >  > ---------------------------------------------------------------------
> > > >  > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > >  > For additional commands, e-mail: users-help@wicket.apache.org
> > > >  >
> > > >  >
> > > >  >
> > > >
> > > >  --
> > > >
> > > > View this message in context: http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p15512777.html
> > > >
> > > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > > >
> > > >
> > > >  ---------------------------------------------------------------------
> > > >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > >  For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.1 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to NOT use wicket's Role class

Posted by James Carman <ja...@carmanconsulting.com>.
Wonderful!  I'll be sure I let folks know when/if I use some of this
content.  Thank you!

On 2/16/08, Martijn Dashorst <ma...@gmail.com> wrote:
> http://slideshare.net/tag/wicket
>
> If you choose to copy content from those presentations, make sure you
> attribute the original author accordingly (not necessary when using
> one or two slides, use your discretion). I've seen a couple of
> presentations that are verbatim copies without proper attribution.
>
> Martijn
>
> On 2/16/08, James Carman <ja...@carmanconsulting.com> wrote:
> > Speaking of spreading the word, I'm planning on giving a talk on
> > Wicket to our local Java users group next month.  Are there any
> > resources out there that you would suggest that I use?
> >
> > On 2/15/08, Jonathan Locke <jo...@gmail.com> wrote:
> > >
> > >
> > >  well, spread the word!  ;-)
> > >
> > >
> > >
> > >  Bruce McGuire-2 wrote:
> > >  >
> > >  > Hi Jonathan.
> > >  >
> > >  > Thanks for the information, no need for the apology. I am loving
> > >  > developing
> > >  > in Wicket. I just wish I had started earlier.
> > >  >
> > >  > Bruce.
> > >  >
> > >  > -----Original Message-----
> > >  > From: Jonathan Locke [mailto:jonathan.locke@gmail.com]
> > >  > Sent: Thursday, 14 February, 2008 03:25 PM
> > >  > To: users@wicket.apache.org
> > >  > Subject: Re: How to NOT use wicket's Role class
> > >  >
> > >  >
> > >  >
> > >  > sorry, i really just ran out of time writing the auth-roles package and so
> > >  > it's closer to an example than something fully reusable.  in my own
> > >  > projects
> > >  > i don't use auth-roles exactly as is.  instead, i use a Role enum and keep
> > >  > a
> > >  > Set of those role objects in my User object stored via hibernate.  you do
> > >  > lose type safety in your hasAnyRole() implementation comparing with the
> > >  > string role annotations (would be great if you could specify a list of
> > >  > Role
> > >  > values!) but it's not a big deal for my projects so i just compare with
> > >  > each
> > >  > enum's toString() value.
> > >  >
> > >  >
> > >  > Bruce McGuire-2 wrote:
> > >  >>
> > >  >> Hello.
> > >  >>
> > >  >>
> > >  >>
> > >  >> My application has a need for more roles than user and admin.
> > >  >>
> > >  >>
> > >  >>
> > >  >> Can someone point me to links etc. on the simplest method of using more
> > >  >> than
> > >  >> these roles please?  This class seems to be final, so extending it won't
> > >  >> do
> > >  >> the trick. Something of a similar complexity is desired, though.
> > >  >>
> > >  >>
> > >  >>
> > >  >> Thanks,
> > >  >>
> > >  >>
> > >  >>
> > >  >> Bruce.
> > >  >>
> > >  >>
> > >  >>
> > >  >
> > >  > --
> > >  > View this message in context:
> > >  > http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p154918
> > >  > 31.html
> > >  > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >  >
> > >  >
> > >  > ---------------------------------------------------------------------
> > >  > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >  > For additional commands, e-mail: users-help@wicket.apache.org
> > >  >
> > >  >
> > >  > ---------------------------------------------------------------------
> > >  > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >  > For additional commands, e-mail: users-help@wicket.apache.org
> > >  >
> > >  >
> > >  >
> > >
> > >  --
> > >
> > > View this message in context: http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p15512777.html
> > >
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > >  ---------------------------------------------------------------------
> > >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >  For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.1 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to NOT use wicket's Role class

Posted by Martijn Dashorst <ma...@gmail.com>.
http://slideshare.net/tag/wicket

If you choose to copy content from those presentations, make sure you
attribute the original author accordingly (not necessary when using
one or two slides, use your discretion). I've seen a couple of
presentations that are verbatim copies without proper attribution.

Martijn

On 2/16/08, James Carman <ja...@carmanconsulting.com> wrote:
> Speaking of spreading the word, I'm planning on giving a talk on
> Wicket to our local Java users group next month.  Are there any
> resources out there that you would suggest that I use?
>
> On 2/15/08, Jonathan Locke <jo...@gmail.com> wrote:
> >
> >
> >  well, spread the word!  ;-)
> >
> >
> >
> >  Bruce McGuire-2 wrote:
> >  >
> >  > Hi Jonathan.
> >  >
> >  > Thanks for the information, no need for the apology. I am loving
> >  > developing
> >  > in Wicket. I just wish I had started earlier.
> >  >
> >  > Bruce.
> >  >
> >  > -----Original Message-----
> >  > From: Jonathan Locke [mailto:jonathan.locke@gmail.com]
> >  > Sent: Thursday, 14 February, 2008 03:25 PM
> >  > To: users@wicket.apache.org
> >  > Subject: Re: How to NOT use wicket's Role class
> >  >
> >  >
> >  >
> >  > sorry, i really just ran out of time writing the auth-roles package and so
> >  > it's closer to an example than something fully reusable.  in my own
> >  > projects
> >  > i don't use auth-roles exactly as is.  instead, i use a Role enum and keep
> >  > a
> >  > Set of those role objects in my User object stored via hibernate.  you do
> >  > lose type safety in your hasAnyRole() implementation comparing with the
> >  > string role annotations (would be great if you could specify a list of
> >  > Role
> >  > values!) but it's not a big deal for my projects so i just compare with
> >  > each
> >  > enum's toString() value.
> >  >
> >  >
> >  > Bruce McGuire-2 wrote:
> >  >>
> >  >> Hello.
> >  >>
> >  >>
> >  >>
> >  >> My application has a need for more roles than user and admin.
> >  >>
> >  >>
> >  >>
> >  >> Can someone point me to links etc. on the simplest method of using more
> >  >> than
> >  >> these roles please?  This class seems to be final, so extending it won't
> >  >> do
> >  >> the trick. Something of a similar complexity is desired, though.
> >  >>
> >  >>
> >  >>
> >  >> Thanks,
> >  >>
> >  >>
> >  >>
> >  >> Bruce.
> >  >>
> >  >>
> >  >>
> >  >
> >  > --
> >  > View this message in context:
> >  > http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p154918
> >  > 31.html
> >  > Sent from the Wicket - User mailing list archive at Nabble.com.
> >  >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >  > For additional commands, e-mail: users-help@wicket.apache.org
> >  >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >  > For additional commands, e-mail: users-help@wicket.apache.org
> >  >
> >  >
> >  >
> >
> >  --
> >
> > View this message in context: http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p15512777.html
> >
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> >  ---------------------------------------------------------------------
> >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >  For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to NOT use wicket's Role class

Posted by James Carman <ja...@carmanconsulting.com>.
Speaking of spreading the word, I'm planning on giving a talk on
Wicket to our local Java users group next month.  Are there any
resources out there that you would suggest that I use?

On 2/15/08, Jonathan Locke <jo...@gmail.com> wrote:
>
>
>  well, spread the word!  ;-)
>
>
>
>  Bruce McGuire-2 wrote:
>  >
>  > Hi Jonathan.
>  >
>  > Thanks for the information, no need for the apology. I am loving
>  > developing
>  > in Wicket. I just wish I had started earlier.
>  >
>  > Bruce.
>  >
>  > -----Original Message-----
>  > From: Jonathan Locke [mailto:jonathan.locke@gmail.com]
>  > Sent: Thursday, 14 February, 2008 03:25 PM
>  > To: users@wicket.apache.org
>  > Subject: Re: How to NOT use wicket's Role class
>  >
>  >
>  >
>  > sorry, i really just ran out of time writing the auth-roles package and so
>  > it's closer to an example than something fully reusable.  in my own
>  > projects
>  > i don't use auth-roles exactly as is.  instead, i use a Role enum and keep
>  > a
>  > Set of those role objects in my User object stored via hibernate.  you do
>  > lose type safety in your hasAnyRole() implementation comparing with the
>  > string role annotations (would be great if you could specify a list of
>  > Role
>  > values!) but it's not a big deal for my projects so i just compare with
>  > each
>  > enum's toString() value.
>  >
>  >
>  > Bruce McGuire-2 wrote:
>  >>
>  >> Hello.
>  >>
>  >>
>  >>
>  >> My application has a need for more roles than user and admin.
>  >>
>  >>
>  >>
>  >> Can someone point me to links etc. on the simplest method of using more
>  >> than
>  >> these roles please?  This class seems to be final, so extending it won't
>  >> do
>  >> the trick. Something of a similar complexity is desired, though.
>  >>
>  >>
>  >>
>  >> Thanks,
>  >>
>  >>
>  >>
>  >> Bruce.
>  >>
>  >>
>  >>
>  >
>  > --
>  > View this message in context:
>  > http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p154918
>  > 31.html
>  > Sent from the Wicket - User mailing list archive at Nabble.com.
>  >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  > For additional commands, e-mail: users-help@wicket.apache.org
>  >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  > For additional commands, e-mail: users-help@wicket.apache.org
>  >
>  >
>  >
>
>  --
>
> View this message in context: http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p15512777.html
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: How to NOT use wicket's Role class

Posted by Jonathan Locke <jo...@gmail.com>.

well, spread the word!  ;-)


Bruce McGuire-2 wrote:
> 
> Hi Jonathan.
> 
> Thanks for the information, no need for the apology. I am loving
> developing
> in Wicket. I just wish I had started earlier.
> 
> Bruce.
> 
> -----Original Message-----
> From: Jonathan Locke [mailto:jonathan.locke@gmail.com] 
> Sent: Thursday, 14 February, 2008 03:25 PM
> To: users@wicket.apache.org
> Subject: Re: How to NOT use wicket's Role class
> 
> 
> 
> sorry, i really just ran out of time writing the auth-roles package and so
> it's closer to an example than something fully reusable.  in my own
> projects
> i don't use auth-roles exactly as is.  instead, i use a Role enum and keep
> a
> Set of those role objects in my User object stored via hibernate.  you do
> lose type safety in your hasAnyRole() implementation comparing with the
> string role annotations (would be great if you could specify a list of
> Role
> values!) but it's not a big deal for my projects so i just compare with
> each
> enum's toString() value.
> 
> 
> Bruce McGuire-2 wrote:
>> 
>> Hello.
>> 
>>  
>> 
>> My application has a need for more roles than user and admin.
>> 
>>  
>> 
>> Can someone point me to links etc. on the simplest method of using more
>> than
>> these roles please?  This class seems to be final, so extending it won't
>> do
>> the trick. Something of a similar complexity is desired, though.
>> 
>>  
>> 
>> Thanks,
>> 
>>  
>> 
>> Bruce.
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p154918
> 31.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p15512777.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: How to NOT use wicket's Role class

Posted by Bruce McGuire <br...@coastware.com>.
Hi Jonathan.

Thanks for the information, no need for the apology. I am loving developing
in Wicket. I just wish I had started earlier.

Bruce.

-----Original Message-----
From: Jonathan Locke [mailto:jonathan.locke@gmail.com] 
Sent: Thursday, 14 February, 2008 03:25 PM
To: users@wicket.apache.org
Subject: Re: How to NOT use wicket's Role class



sorry, i really just ran out of time writing the auth-roles package and so
it's closer to an example than something fully reusable.  in my own projects
i don't use auth-roles exactly as is.  instead, i use a Role enum and keep a
Set of those role objects in my User object stored via hibernate.  you do
lose type safety in your hasAnyRole() implementation comparing with the
string role annotations (would be great if you could specify a list of Role
values!) but it's not a big deal for my projects so i just compare with each
enum's toString() value.


Bruce McGuire-2 wrote:
> 
> Hello.
> 
>  
> 
> My application has a need for more roles than user and admin.
> 
>  
> 
> Can someone point me to links etc. on the simplest method of using more
> than
> these roles please?  This class seems to be final, so extending it won't
> do
> the trick. Something of a similar complexity is desired, though.
> 
>  
> 
> Thanks,
> 
>  
> 
> Bruce.
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p154918
31.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to NOT use wicket's Role class

Posted by Jonathan Locke <jo...@gmail.com>.

sorry, i really just ran out of time writing the auth-roles package and so
it's closer to an example than something fully reusable.  in my own projects
i don't use auth-roles exactly as is.  instead, i use a Role enum and keep a
Set of those role objects in my User object stored via hibernate.  you do
lose type safety in your hasAnyRole() implementation comparing with the
string role annotations (would be great if you could specify a list of Role
values!) but it's not a big deal for my projects so i just compare with each
enum's toString() value.


Bruce McGuire-2 wrote:
> 
> Hello.
> 
>  
> 
> My application has a need for more roles than user and admin.
> 
>  
> 
> Can someone point me to links etc. on the simplest method of using more
> than
> these roles please?  This class seems to be final, so extending it won't
> do
> the trick. Something of a similar complexity is desired, though.
> 
>  
> 
> Thanks,
> 
>  
> 
> Bruce.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-NOT-use-wicket%27s-Role-class-tp15487694p15491831.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to NOT use wicket's Role class

Posted by Janos Cserep <cs...@metaprime.hu>.
Bruce,

Just use simpel strings as your role names:

Roles roles = new Roles("OWNER,SUPERVISOR");

roles.hasAnyRole(new Roles("OWNER)) - this will be true

I usually put these as public final static Strings into my WebApplication
class...

Janos

On Thu, Feb 14, 2008 at 8:39 PM, Bruce McGuire <br...@coastware.com> wrote:

> Hello.
>
>
>
> My application has a need for more roles than user and admin.
>
>
>
> Can someone point me to links etc. on the simplest method of using more
> than
> these roles please?  This class seems to be final, so extending it won't
> do
> the trick. Something of a similar complexity is desired, though.
>
>
>
> Thanks,
>
>
>
> Bruce.
>
>


-- 
János Cserép - cserepj@metaprime.hu
Web: http://www.szeretgom.hu
Skype: cserepj

Re: How to NOT use wicket's Role class

Posted by Igor Vaynberg <ig...@gmail.com>.
you can always copy and paste that code into your project and hack
away at it. wicket-roles is really just an example project.

-igor


On Thu, Feb 14, 2008 at 11:39 AM, Bruce McGuire <br...@coastware.com> wrote:
> Hello.
>
>
>
>  My application has a need for more roles than user and admin.
>
>
>
>  Can someone point me to links etc. on the simplest method of using more than
>  these roles please?  This class seems to be final, so extending it won't do
>  the trick. Something of a similar complexity is desired, though.
>
>
>
>  Thanks,
>
>
>
>  Bruce.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org