|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectibspan.tss.dao.UsersDAO
public class UsersDAO
Data Access Object providing nice interface to model with users accounts.
| Constructor Summary | |
|---|---|
UsersDAO(OntModel mUsersDB)
Creates UserDAO object providing interface to the given
users model. |
|
| Method Summary | |
|---|---|
int |
getNextUserID()
Returns ID under which next user can be registered. |
int |
getUserID(String login)
Returns ID of a user with the given login name. |
String |
getUserName(int userID)
Returns a name for the user with the given ID. |
boolean |
isLoginPasswordMatching(String login,
String password)
Checks whether given login name matches to the given password, i.e. |
boolean |
isUserKnown(String name,
String login)
Checks whether given name or login name has been registered. |
int |
registerUser(String name,
String login,
String password)
Creates (registers) an account for the user with given properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UsersDAO(OntModel mUsersDB)
throws DAOException
UserDAO object providing interface to the given
users model.
mUsersDB - is model with users.
DAOException - when there is a problem with initializing this object.| Method Detail |
|---|
public int registerUser(String name,
String login,
String password)
throws UserAlreadyKnownException
name - is a name for a new user.login - is a login name for a new user.password - is a password for a new user.
UserAlreadyKnownException - when trying to register user which have the name or login
name exactly the same as the one already registered.
public boolean isLoginPasswordMatching(String login,
String password)
login - is a login name.password - is a password.
true if authorization passed successfully.public int getUserID(String login)
login - is a login name.
public String getUserName(int userID)
userID - is ID of user
public boolean isUserKnown(String name,
String login)
name - is name of a userlogin - is login name of a user
true is such user exists.public int getNextUserID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||