Package com.mendix.core.action.user
Class LoginAction
java.lang.Object
- All Implemented Interfaces:
- ICoreAction<ISession>,- Callable<ISession>
Represents an action that will perform a login when executed.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionLoginAction(IContext context, Map<String, ? extends Object> params) Creates a login action with a context and parameters.
- 
Method SummaryModifier and TypeMethodDescriptionImplement this method, this method will be called when this action is executed.Returns the username of this login action.Methods inherited from class com.mendix.systemwideinterfaces.core.UserActioncontext, executeMethods inherited from class com.mendix.core.actionmanagement.CoreActiongetUnwrappedActionMethods inherited from class com.mendix.core.actionmanagement.internal.InternalCoreActionaddDatavalidationFeedback, addDataValidationFeedback, call, clone, getActionName, getClonedContext, getContext, getEventObjects, getException, getMetaInfo, getState, handleConcurrentExecution, setActionName, setAllowsConcurrentExecution, setContext, setEventObjects, setException, setMetaInfo, setState
- 
Field Details- 
SESSION_MANAGER_PARAM- See Also:
 
- 
USER_NAME_PARAM- See Also:
 
- 
PASSWORD_PARAM- See Also:
 
- 
CURRENT_SESSION_ID_PARAM- See Also:
 
- 
CURRENT_REQUEST- See Also:
 
 
- 
- 
Constructor Details- 
LoginActionCreates a login action with a context and parameters.The parameters can contain the following values (the userName and password are mandatory; the others are optional): - userName - the name of the user (mandatory)
- password - the password of the user (mandatory)
- currentSessionId - the ID of the session to reuse for this login instead of creating a new one
- request - the current runtime request (of type IMxRuntimeRequest), which is used for logging the origin of the login
 - Parameters:
- context- the context for executing the action and checking access
- params- the parameters for the login action, which must include userName and password
 
 
- 
- 
Method Details- 
executeActionDescription copied from class:UserActionImplement this method, this method will be called when this action is executed.- Specified by:
- executeActionin class- UserAction<ISession>
- Returns:
- returns the result of the execution
- Throws:
- Exception
 
- 
getUserNameReturns the username of this login action.- Returns:
- the name of the user to login
 
 
-