|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILogin
Interface for the login functionality.
A class that implements this interface will be called instead of default
login to the admin screens. isLoginVisible()
method tells if
login screen should be visible to the user. If so, entered login name and
password will be sent to getUserId()
method when the "Login"- button
is clicked. If isLoginVisible()
returns false, getUserId()
will be called directly with both name and password set to null.
getUserId()
should return id of an existing user (a user
registered in Opinio).
Method Summary | |
---|---|
long |
getUserId(java.lang.String loginName,
java.lang.String password)
Gets id of the user to login to the system. |
boolean |
isLoginVisible()
True if login screen is visible to the user. |
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the request object. |
void |
setResponse(javax.servlet.http.HttpServletResponse response)
Sets the response object. |
Method Detail |
---|
long getUserId(java.lang.String loginName, java.lang.String password)
isLoginVisible()
returns true, the login screen will be shown to the user. When the user
clicks the "Login" button, this method will be called with login name and
password as parameters.
loginName
- Login name entered (if login screen is visible) or null.password
- Password entered (if login screen is visible) or null.
boolean isLoginVisible()
void setResponse(javax.servlet.http.HttpServletResponse response)
getUserId()
.
response
- The responsevoid setRequest(javax.servlet.http.HttpServletRequest request)
getUserId()
.
request
- The request
|
Copyright ? ObjectPlanet Inc. All Rights Reserved. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |