LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyPasswordController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyAreaController
          extended by leon.control.LyUserInputController
              extended by leon.control.LyPasswordController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGetActionInterface, LySelectFileListenerInterface, LyGuiListener, LyInfoListener, LyEvaluator, LyDemandListener

public class LyPasswordController
extends LyUserInputController

This class implements a user input dialog/window to change the user password. This controller is associated with a behavior that implements LyPasswordBehaviorInterface. Usually, the behavior is an instance of LyPasswordBehavior class.

See Also:
LyPasswordBehavior, LyPasswordBehaviorInterface

Field Summary
static java.lang.String __VERSION
          File Version
static java.lang.String PARAM_CONFIRM_PASSWORD
          Confirm Password.
static java.lang.String PARAM_CURRENT_PASSWORD
          Current Password (for validation).
static java.lang.String PARAM_NEW_PASSWORD
          New Password.
 
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
LyPasswordController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Default constructor.
 
Method Summary
 boolean allowEmptyPassword()
          Getter for the allow empty password value.
 boolean checkPassword(LyParameterValues values)
          Checks the values submitted in the password and return true if everything is valid.
 java.lang.Class<?> getBehaviorInterface()
          Method that gives the interface that must be implemented by the behavior associated to this controller.
 LyFieldInfo getPasswordFieldInfo()
          Accessor to password fieldInfo.
 LyObject getUser()
          Accessor to the user to modify password.
 LyClassInfo getUserClassInfo()
          Accessor to User classInfo.
 void invokeNextActions()
          Proceed to next actions after a password (password should be valid at that point).
 void setPasswordFieldInfo(LyFieldInfo passwordFieldInfo)
          Accessor to password fieldInfo.
 void setUserClassInfo(LyClassInfo userClassInfo)
          Accessor to User classInfo.
 
Methods inherited from class leon.control.LyUserInputController
actionDemand, addBoolean, addBoolean, addChoice, addChoice, addDate, addDate, addFile, addFile, addLabel, addLabel, addList, addList, addNumber, addNumber, addRelation, addRelation, addText, addText, addText, getClassInfo, getComponent, getFormComponent, getImage, getInputId, getTitleBar, getViewController, isDialog, isViewResizable, reset, setBehavior, setBuilder, setDialog, setImage, setInputId, setTitleBar
 
Methods inherited from class leon.control.LyAreaController
canClose, canFree, clearViewCache, completeMenuBar, completeMessages, free, free, getAction, getAreaStackController, getBehavior, getBuilder, getContent, getContext, getContextClient, getContextTitle, getDefaultAction, getEnvironment, getFastEditionAction, getHelpFile, getImageTooltip, getInfoLabel, getInfoLabel, getKeyValue, getLabel, getLastModified, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParent, getParentAreaController, getRefreshTime, getSelection, getShortLabel, getTarget, getTitle, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, menuDemand, reset, selectFileDemand, setContext, setContext, setContextClient, setIdle, setPreference, setViewController, showView, showView, testParameter, toString, update, updateTitleBar
 
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

__VERSION

public static final java.lang.String __VERSION
File Version

See Also:
Constant Field Values

PARAM_CURRENT_PASSWORD

public static java.lang.String PARAM_CURRENT_PASSWORD
Current Password (for validation).


PARAM_NEW_PASSWORD

public static java.lang.String PARAM_NEW_PASSWORD
New Password.


PARAM_CONFIRM_PASSWORD

public static java.lang.String PARAM_CONFIRM_PASSWORD
Confirm Password.

Constructor Detail

LyPasswordController

public LyPasswordController(LySession session,
                            LyController parent,
                            LyAction action,
                            LyClassInfo classInfo,
                            LyObjectList objects)
Default constructor.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller (or null for 'root' controller).
action - action associated to the password. (parameters of view)
classInfo - related classInfo
objects - current context
Method Detail

getBehaviorInterface

public java.lang.Class<?> getBehaviorInterface()
Method that gives the interface that must be implemented by the behavior associated to this controller.

Overrides:
getBehaviorInterface in class LyUserInputController
Returns:
Class representing the behavior interface of this controller.

checkPassword

public boolean checkPassword(LyParameterValues values)
Checks the values submitted in the password and return true if everything is valid.

Parameters:
values - submitted values.
Returns:
true if validation is fine

invokeNextActions

public void invokeNextActions()
Proceed to next actions after a password (password should be valid at that point).


getUser

public LyObject getUser()
Accessor to the user to modify password.

Returns:
the user or null if not defined.

getUserClassInfo

public LyClassInfo getUserClassInfo()
Accessor to User classInfo.

Returns:
User classInfo

getPasswordFieldInfo

public LyFieldInfo getPasswordFieldInfo()
Accessor to password fieldInfo.

Returns:
password fieldInfo

setUserClassInfo

public void setUserClassInfo(LyClassInfo userClassInfo)
Accessor to User classInfo.

Parameters:
userClassInfo - User classInfo

setPasswordFieldInfo

public void setPasswordFieldInfo(LyFieldInfo passwordFieldInfo)
Accessor to password fieldInfo.

Parameters:
passwordFieldInfo - password fieldInfo

allowEmptyPassword

public boolean allowEmptyPassword()
Getter for the allow empty password value.

Returns:
true if the password can be null, fall otherwise

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com