Package com.microstrategy.web.app.tasks
Class MobileAppLoginTask
- java.lang.Object
-
- com.microstrategy.web.tasks.AbstractBaseTask
-
- com.microstrategy.web.tasks.LoginTask
-
- com.microstrategy.web.tasks.MobileLoginTask
-
- com.microstrategy.web.app.tasks.MobileAppLoginTask
-
- All Implemented Interfaces:
Task
- Direct Known Subclasses:
UsherAuthenticationTask
public class MobileAppLoginTask extends MobileLoginTask
- Since:
- MicroStrategy Web 9.0.1m
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.tasks.MobileLoginTask
clientIDParam, clientTypeParam, defaultLocaleCountryParam, defaultLocaleLanguageParam, deviceIDParam, displayLocaleOverrideParam, displayLocaleParam, includeStatsSettingsParam, includeUserInfoParam, localeCountryParam, localeLanguageParam, messagesLocaleOverrideParam, messagesLocaleParam, metadataLocaleOverrideParam, metadataLocaleParam, numberLocaleOverrideParam, numberLocaleParam, PARAM_NAME_CLIENT_ID, PARAM_NAME_CLIENT_TYPE, PARAM_NAME_DEFAULT_LOCALE_COUNTRY, PARAM_NAME_DEFAULT_LOCALE_LANGUAGE, PARAM_NAME_DEVICE_ID, PARAM_NAME_INCLUDE_STATS_SETTINGS, PARAM_NAME_LOCALE_COUNTRY, PARAM_NAME_LOCALE_LANGUAGE, PARAM_NAME_PROJECT_ID, PARAM_NAME_SESSION_FLAGS, PARAM_NAME_SESSION_KEY, PARAM_NAME_TIME_ZONE, PARAM_NAME_WORKING_SET_SIZE, projectIDTaskParam, PROP_NAME_LOGINTASKDATA_OLD_SESSION_STATE, sessionFlagsParam, sessionKeyParam, timeZoneParam, warehouseDataLocaleOverrideParam, warehouseDataLocaleParam, workingSetSizeParam
-
Fields inherited from class com.microstrategy.web.tasks.LoginTask
applicationTypeTaskParam, authModeTaskParam, BLOCK_NAME_LOGINTASKDATA, loginTaskParam, PARAM_NAME_APPLICATION_TYPE, PARAM_NAME_AUTH_MODE, PARAM_NAME_L, PARAM_NAME_LOGIN, PARAM_NAME_P, PARAM_NAME_PASSWORD, PARAM_NAME_PORT, PARAM_NAME_PROJECT, PARAM_NAME_SERVER, PARAM_NAME_TWO_STEP_VERIFICATION_CODE, passwordTaskParam, portTaskParam, projectTaskParam, PROP_NAME_LOGINTASKDATA_NAME, PROP_NAME_LOGINTASKDATA_SESSION_STATE, serverTaskParam, tsvCodeTaskParam
-
Fields inherited from class com.microstrategy.web.tasks.AbstractBaseTask
compressOutput, CONTENT_TYPE_BINARY, CONTENT_TYPE_HTML, CONTENT_TYPE_JSON, CONTENT_TYPE_JSON_ALL, CONTENT_TYPE_JSON_D, CONTENT_TYPE_JSON_P, CONTENT_TYPE_XML, CONTENT_TYPE_XML_ANF, DEFAULT_MAX_WAIT, DEFAULT_POLLING_FREQ, execFlagsParam, INDEFINITE_MAX_WAIT, maxWaitParam, metadata, mPrivileges, msgIDParam, objectIDParam, OTHER_CONTENT_KEY_LAYOUTS, PARAM_NAME_EXEC_FLAGS, PARAM_NAME_MAX_WAIT, PARAM_NAME_MESSAGE_ID, PARAM_NAME_OBJECT_ID, PARAM_NAME_POLLING_FREQ, PARAM_NAME_RESULT_FLAGS, PARAM_NAME_SESSION_ID, PARAM_NAME_SESSION_STATE, PARAM_NAME_STATE_ID, pollingFreqParam, PREFERENCE_DEFAULT_MAX_WAIT_IN_TASK, resultFlagsParam, sessionIDParam, sessionStateParam, stateIDParam
-
-
Constructor Summary
Constructors Constructor Description MobileAppLoginTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkSession(TaskRequestContext context, WebIServerSession wiss)
protected void
checkSession(TaskRequestContext context, WebIServerSession wiss, boolean skipServerType)
protected void
configureWebIServerSession(TaskRequestContext context, WebIServerSession wiss, java.lang.String server, int port, java.lang.String project, java.lang.String l, java.lang.String p, int authMode, java.lang.String twoStepVerificationCode, java.lang.String accessToken)
protected void
configureWebIServerSession(TaskRequestContext context, WebIServerSession wiss, java.lang.String server, int port, java.lang.String project, java.lang.String l, java.lang.String p, int authMode, java.lang.String twoStepVerificationCode, java.lang.String accessToken, java.lang.String orgID)
protected boolean
isAuthModeEnabled(TaskRequestContext context, WebIServerSession session)
TaskRequestContext
newRequestContext()
Returns a new object to hold per-request data for this Task.-
Methods inherited from class com.microstrategy.web.tasks.MobileLoginTask
addVersionInfo, configure, isAuthModeEnabled
-
Methods inherited from class com.microstrategy.web.tasks.LoginTask
buildResponse, checkAuthParameters, configureWebIServerSession, getAccessToken, processRequest
-
Methods inherited from class com.microstrategy.web.tasks.AbstractBaseTask
addExecFlagsParam, addJuilLayouts, addMaxWaitParam, addMaxWaitParam, addMessageIDParam, addObjectIDParam, addParameterMetadata, addParameterMetadata, addParameterMetadata, addPollingFrequencyParam, addPollingFrequencyParam, addResultFlagsParam, addSessionIDParam, addSessionStateParam, addStateIDParam, checkForRequiredParameters, destroy, getCompressOutput, getID, getMetadata, getPrivileges, getSysDefaultPreferenceValue, init, processRequest, retrieveUploadedFile, setCompressOutput, setDescription, setID, setMetadata, setPrivileges, validateContentType
-
-
-
-
Method Detail
-
newRequestContext
public TaskRequestContext newRequestContext()
Description copied from interface:Task
Returns a new object to hold per-request data for this Task.- Specified by:
newRequestContext
in interfaceTask
- Overrides:
newRequestContext
in classAbstractBaseTask
- Returns:
- A new
TaskRequestContext
object for this Task.
-
configureWebIServerSession
protected void configureWebIServerSession(TaskRequestContext context, WebIServerSession wiss, java.lang.String server, int port, java.lang.String project, java.lang.String l, java.lang.String p, int authMode, java.lang.String twoStepVerificationCode, java.lang.String accessToken) throws TaskException
- Overrides:
configureWebIServerSession
in classMobileLoginTask
- Throws:
TaskException
-
configureWebIServerSession
protected void configureWebIServerSession(TaskRequestContext context, WebIServerSession wiss, java.lang.String server, int port, java.lang.String project, java.lang.String l, java.lang.String p, int authMode, java.lang.String twoStepVerificationCode, java.lang.String accessToken, java.lang.String orgID) throws TaskException
- Overrides:
configureWebIServerSession
in classMobileLoginTask
- Throws:
TaskException
-
checkSession
protected void checkSession(TaskRequestContext context, WebIServerSession wiss) throws TaskException
- Overrides:
checkSession
in classMobileLoginTask
- Throws:
TaskException
-
checkSession
protected void checkSession(TaskRequestContext context, WebIServerSession wiss, boolean skipServerType) throws TaskException
- Overrides:
checkSession
in classMobileLoginTask
- Throws:
TaskException
-
isAuthModeEnabled
protected boolean isAuthModeEnabled(TaskRequestContext context, WebIServerSession session) throws TaskException
- Overrides:
isAuthModeEnabled
in classLoginTask
- Throws:
TaskException
-
-