Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-17-2007, 02:25 PM   PM User | #1
Animal_Instinct
New to the CF scene

 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Animal_Instinct is an unknown quantity at this point
authentication

@DeclareRoles("BIDDER", "CSR", "ADMIN")
@Stateless
public class BidManagerBean implements BidManager {
@RolesAllowed("CSR, ADMIN")
public void cancelBid(Bid bid, Item item) {...}

@PermitAll
public List<Bid> getBids(Item item) {...}
}

How can I know if the user that is trying to access cancelBid method has the role CRS or ADMIN?? Where do I specify which roles belong to an user?

TNX
Animal_Instinct is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:59 AM.


Advertisement
Log in to turn off these ads.