|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyLoginBehavior
public class LyLoginBehavior
Default behavior for the login behavior interface. Applications may override this class or implement their own instance of LyLoginBehaviorInterface
LyLoginController
,
LyLoginBehaviorInterface
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyLoginBehavior()
Default constructor : must have no parameter to enable automatic creation of instance from meta-model files. |
Method Summary | |
---|---|
void |
completeInitializeLogin(LyLoginController loginController)
Complete login initialization with default values or extra fields adding for input. |
boolean |
confirmReconnect(LyLoginController loginController)
Returns a boolean value that indicates if the reconnect must be confirmed or not. |
void |
endLogin(LyLoginController loginController,
LyParameterValues values)
Ends the login. |
LySession |
getExistingSessionForUser(LyLoginController loginController,
LyObject currentUser,
LyParameterValues values)
Gets any existing session for the given user. |
LyObject |
getUser(LyLoginController loginController,
LyParameterValues values)
Gets the user associated to the given login and password values. |
void |
initializeLogin(LyLoginController loginController)
Login initialization of manipulated classInfo, loginFieldInfo and passwordFieldInfo. |
void |
userInputDemand(LyController controller,
LyDemand demand)
Invoked when the user validates the input content. |
boolean |
validate(LyLoginController loginController,
java.lang.String login,
java.lang.String password,
LyParameterValues values)
Deprecated. since V1.2. Replaced by validate(loginController, login, password, values, new StringBuffer())
. |
boolean |
validate(LyLoginController loginController,
java.lang.String login,
java.lang.String password,
LyParameterValues values,
java.lang.StringBuffer error)
Validate the login: checks that one unique user exists for the given values. |
boolean |
validateUser(LyLoginController loginController,
LyObject user,
LyParameterValues values,
java.lang.StringBuffer error,
boolean autoLogin)
Validate the login: checks that user is valid. |
Methods inherited from class leon.app.behavior.LyActionBehavior |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from class leon.app.behavior.LyBehavior |
---|
free, getSession, handleDemand, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction |
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface |
---|
free, handleDemand, init |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyLoginBehavior()
Method Detail |
---|
public void initializeLogin(LyLoginController loginController)
initializeLogin
in interface LyLoginBehaviorInterface
loginController
- current controllerpublic void completeInitializeLogin(LyLoginController loginController)
completeInitializeLogin
in interface LyLoginBehaviorInterface
loginController
- current controllerpublic boolean validate(LyLoginController loginController, java.lang.String login, java.lang.String password, LyParameterValues values)
validate(loginController, login, password, values, new StringBuffer())
.
validate(LyLoginController, String, String, LyParameterValues, StringBuffer)
validate
in interface LyLoginBehaviorInterface
loginController
- current controllerlogin
- value typed in by the userpassword
- value typed in by the uservalues
- extra values from the login controller validation.
public boolean validate(LyLoginController loginController, java.lang.String login, java.lang.String password, LyParameterValues values, java.lang.StringBuffer error)
validate
in interface LyLoginBehaviorInterface
loginController
- current controllerlogin
- value typed in by the userpassword
- value typed in by the uservalues
- extra values from the login controller validation.error
- error message to show in case of invalid login. It is a result
parameter.
public boolean validateUser(LyLoginController loginController, LyObject user, LyParameterValues values, java.lang.StringBuffer error, boolean autoLogin)
validateUser
in interface LyLoginBehaviorInterface
loginController
- current controlleruser
- user that logged in.values
- extra values from the login controller validation.error
- error message to show in case of invalid login. It is a result
parameter.autoLogin
- boolean indicating if the call results from an auto-login.
public void endLogin(LyLoginController loginController, LyParameterValues values)
LyLoginController.Status#LOGIN_FAILED
) or cancelled
(LyLoginController.Status#LOGIN_CANCELLED
) and if the login action is the root
action, else if the login is ok or missing (LyLoginController.Status#LOGIN_OK
or
LyLoginController.Status#LOGIN_MISSING
) then invoke the next action.
endLogin
in interface LyLoginBehaviorInterface
loginController
- current controllervalues
- extra values from the login controller validation.public LyObject getUser(LyLoginController loginController, LyParameterValues values)
getUser
in interface LyLoginBehaviorInterface
loginController
- current controllervalues
- values from the login controller.
public void userInputDemand(LyController controller, LyDemand demand)
checks the login
if demand source is
validate, closes
it if demand source is cancel.
userInputDemand
in interface LyUserInputBehaviorInterface
controller
- the current LyUserInputController instancedemand
- demand parameters sent by the view component.public LySession getExistingSessionForUser(LyLoginController loginController, LyObject currentUser, LyParameterValues values)
getExistingSessionForUser
in interface LyLoginBehaviorInterface
loginController
- current controllercurrentUser
- the current uservalues
- the values of the current view
public boolean confirmReconnect(LyLoginController loginController)
confirmReconnect
in interface LyLoginBehaviorInterface
loginController
- the login controller
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |