|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.gui.JbbUsers
public class JbbUsers
This class handles the list of all the users that can be associated to an application. It is typically used in a server side application where multiple clients can connect at any given time. It provides common services including validation of a given user name/password against the current list of users, persistence of the list in an xml flat file (e.g. "users.xml"), add/remove/modify services against th current list...
| Constructor Summary | |
|---|---|
JbbUsers()
Constructor |
|
| Method Summary | |
|---|---|
void |
addUser(JbbUser zUser)
to add a user |
static JbbUsers |
getInstance()
This method returns the global instance of the Users class. |
void |
initialize(String zUsersFileName)
Open the users file |
boolean |
isAdministrator(String zUserName,
String zUserPwd)
|
boolean |
isValidUser(String zUserName,
String zUserPwd)
|
void |
modifyUser(JbbUser zUser)
to modify the password and/or type a given user |
void |
removeUser(JbbUser zUser)
to remove a user form the list |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JbbUsers()
| Method Detail |
|---|
public static final JbbUsers getInstance()
public void initialize(String zUsersFileName)
throws Exception
zUsersFileName - the full users file name
Exception - if an error occurs
public boolean isValidUser(String zUserName,
String zUserPwd)
public boolean isAdministrator(String zUserName,
String zUserPwd)
public void addUser(JbbUser zUser)
throws Exception
zUser - a user
Exception - if an error occurs
public void modifyUser(JbbUser zUser)
throws Exception
zUser -
Exception
public void removeUser(JbbUser zUser)
throws Exception
zUser -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||