public interface ILogin
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).Modifier and Type | Method and Description |
---|---|
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.
|
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 requestBuilt on April 12 2018