|
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.control.LyController
leon.control.LyAreaController
leon.control.LyUserInputController
leon.control.LyLoginController
public class LyLoginController
The login controller is an user input controller which describes a login view This controller handles:
The login controller is associated to a behavior which implements LyLoginBehaviorInterface. Usually, this interface is implemented by a LyLoginBehavior class.
LyUserInputController
,
LyLoginBehaviorInterface
,
LyLoginBehavior
Nested Class Summary | |
---|---|
static class |
LyLoginController.Status
Define the status of the login |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version |
static int |
DEFAULT_COLS
Default width of string input fields. |
static java.lang.String |
PARAM_KEY_LANGUAGE
parameter key for language value (received in parameter values). |
static java.lang.String |
PARAM_KEY_LOGIN
parameter key for login value (received in parameter values). |
static java.lang.String |
PARAM_KEY_PASSWORD
parameter key for password value (received in parameter values). |
static java.lang.String |
PARAM_KEY_PORTLET_LOGIN
parameter key for portlet login value |
static java.lang.String |
PARAM_KEY_TARGET
parameter key for target value (must match LyWebConstants.TARGET_PARAM). |
static java.lang.String |
USER_CLASS_ID
Default id for user class. |
Fields inherited from class leon.control.LyAreaController |
---|
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_APPLY, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW, DEMAND_VALIDATE |
Fields inherited from class leon.control.LyController |
---|
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP |
Constructor Summary | |
---|---|
LyLoginController(LySession session,
LyController parent,
LyAction action,
LyClassInfo classInfo,
LyObjectList context)
Constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
boolean |
checkLogin(LyParameterValues values)
This method checks if the login entered by the user is valid. |
void |
close()
This method handles closing of the login controller. |
java.lang.Class<?> |
getBehaviorInterface()
Method that gives the interface that must be implemented by the behavior associated to this controller. |
LyComponent |
getComponent()
Accessor to the view component instance. |
LyAction |
getCreateAction()
Get creation action if it is enabled in login form. |
LyFieldInfo |
getLoginFieldInfo()
Accessor to the login field in userClassInfo. |
LyFieldInfo |
getPasswordFieldInfo()
Accessor to password fieldInfo. |
LyLoginController.Status |
getStatus()
Indicates login status : to know if login was successful. |
LyObject |
getUser()
Gets user connected on current session (through login or with SSO). |
LyClassInfo |
getUserClassInfo()
Accessor to User classInfo. |
int |
getUserRetries()
Indicates how many times the user has tried to log in. |
void |
invokeNextActions()
Proceed to next actions after a login (login should be valid at that point). |
void |
loginWithUser(LyObject user)
Complete login with given user. |
void |
questionAnswer(boolean result,
java.lang.Object clientData)
Called when the user answer about reconnecting to an existing session |
void |
setLoginFieldInfo(LyFieldInfo loginFieldInfo)
Accessor to Login fieldInfo (attribute). |
void |
setPasswordFieldInfo(LyFieldInfo passwordFieldInfo)
Accessor to password fieldInfo. |
void |
setUserClassInfo(LyClassInfo userClassInfo)
Accessor to User classInfo. |
void |
showView()
Shows the Window which contains the view. |
Methods inherited from class leon.control.LyUserInputController |
---|
addBoolean, addBoolean, addChoice, addChoice, addDate, addDate, addFile, addFile, addLabel, addLabel, addList, addList, addNumber, addNumber, addRelation, addRelation, addText, addText, addText, getClassInfo, getFormComponent, getImage, getInputId, getTitleBar, getViewController, isDialog, isViewResizable, reset, setBehavior, setBuilder, setDialog, setImage, setInputId, setTitleBar |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, setBuilderClass, setLastModified, setName, setUserData, showError, showError, showWarning, updateViewFromValues |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static java.lang.String USER_CLASS_ID
public static int DEFAULT_COLS
public static java.lang.String PARAM_KEY_LOGIN
public static java.lang.String PARAM_KEY_PASSWORD
public static java.lang.String PARAM_KEY_LANGUAGE
public static java.lang.String PARAM_KEY_TARGET
public static java.lang.String PARAM_KEY_PORTLET_LOGIN
Constructor Detail |
---|
public LyLoginController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
session
- current session associated to the controller. The controller automatically
registers on the specified session.parent
- parent controller (or null for 'root' controller).action
- related action (_login).classInfo
- related classInfocontext
- current action context. This context is used for the next actions.Method Detail |
---|
public java.lang.Class<?> getBehaviorInterface()
getBehaviorInterface
in class LyUserInputController
public void showView()
showView
in class LyAreaController
public LyLoginController.Status getStatus()
public int getUserRetries()
public LyComponent getComponent()
getComponent
in class LyUserInputController
public boolean checkLogin(LyParameterValues values)
values
- The values entered by the user
public void invokeNextActions()
public void close()
public LyClassInfo getUserClassInfo()
public LyFieldInfo getLoginFieldInfo()
public LyFieldInfo getPasswordFieldInfo()
public void setUserClassInfo(LyClassInfo userClassInfo)
userClassInfo
- User classInfopublic void setLoginFieldInfo(LyFieldInfo loginFieldInfo)
loginFieldInfo
- Login fieldInfopublic void setPasswordFieldInfo(LyFieldInfo passwordFieldInfo)
passwordFieldInfo
- password fieldInfopublic void actionDemand(LyActionDemand demand)
actionDemand
in class LyUserInputController
demand
- demand parameters sent by the view component.LyController.demandPerformed(leon.view.event.LyDemand)
public void questionAnswer(boolean result, java.lang.Object clientData)
questionAnswer
in interface LyQuestionAnswerInterface
result
- the result (true or false)clientData
- an array of object: 0 an existing session, 1 view valuesLyQuestionAnswerInterface
public LyObject getUser()
public void loginWithUser(LyObject user)
user
- User to log in.public LyAction getCreateAction()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |