Click to See Complete Forum and Search --> : An application for many types of users


kunkun
September 19th, 2004, 11:50 PM
Hi,
I'm new with programming winform and web services using .NET Remoting.
Now I have a chat application which requires to support some types of users: administrator, room manager and normal user. Each of types has some special functions:
1. An administrator can manage all things: managing rooms, managing users and chat.
2. A room manager can open and manage rooms. He can also chat.
3. A users can chat together.

And I design:
Server: a web service
1. An interface IUser for normal users.
2. An interface IRoomManager which inherits IUser interface and adds some methods for room managers.
3. An interface IAdministrator inheriting IRoomManager class and adds some methods for administrators' functions.
Client: a windows application
1. A winform class User for normal users.
2. A class RoomManager which inherits User class and supplements some controls for room managers.
3.Similiarly, a class Administrator inheriting RoomManager class and adds some controls for administrators' functions.
Then depending on which user logs in, client application will construct the appropriate class and call the interface of the proper remote object.

I don't know whether it is right.
And I don't know how to authorize each type of users.
Please give me some ideas or some design pattern suitable with it.
Thanks a lot advance.

Andy Tacker
September 20th, 2004, 02:34 AM
moved and merged... <cross posts>