aspose file tools*
The moose likes Web Services and the fly likes How to use an Admin and User class in a Web Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to use an Admin and User class in a Web Application" Watch "How to use an Admin and User class in a Web Application" New topic
Author

How to use an Admin and User class in a Web Application

Talabér Ferenc
Greenhorn

Joined: May 14, 2009
Posts: 5
Hi, I have an User class and an Admin class inherited from it. In the Admin class are the methods what only Administrators can use.

How can I use these classes in the practice?
The users and admins are stored in the same database table, the application uses JPA. At runtime the user who has logged in is stored in a session bean.
I have made a method which returns an user or admin object by the user's name. How should I continue?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39885
    
  28
Too difficult a question for "beginning". Moving.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use an Admin and User class in a Web Application