|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javaWebGen.web.BaseLoginModel
public class BaseLoginModel
| Constructor Summary | |
|---|---|
BaseLoginModel()
|
|
| Method Summary | |
|---|---|
boolean |
isAuthorized(LoginBean login,
java.lang.String role)
is their role authorized to to this role? |
LoginBean |
login(java.lang.String userId,
java.lang.String pass)
try to login to the app if user id and password are not found it will set the user_name and password to a default Feel free to extend this class to provide you own logic for example throwing an WebAppException exception if login attempts are excessive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseLoginModel()
| Method Detail |
|---|
public LoginBean login(java.lang.String userId,
java.lang.String pass)
throws WebAppException
userId - pass -
WebAppException
public boolean isAuthorized(LoginBean login,
java.lang.String role)
throws WebAppException
login - role -
WebAppException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||