Package com.microstrategy.web.app.tasks
Class UsherAuthenticationTask
- java.lang.Object
-
- com.microstrategy.web.tasks.AbstractBaseTask
-
- com.microstrategy.web.tasks.LoginTask
-
- com.microstrategy.web.tasks.MobileLoginTask
-
- com.microstrategy.web.app.tasks.MobileAppLoginTask
-
- com.microstrategy.web.app.tasks.UsherAuthenticationTask
-
- All Implemented Interfaces:
EnumUsherRequest
,Task
public class UsherAuthenticationTask extends MobileAppLoginTask implements EnumUsherRequest
-
-
Field Summary
Fields Modifier and Type Field Description protected TaskParameterMetadata
accessTokenParam
protected TaskParameterMetadata
orgIdParam
protected TaskParameterMetadata
pollActionParam
protected TaskParameterMetadata
usherInstallStatusParam
-
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_P, 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
-
Fields inherited from interface com.microstrategy.web.app.utils.usher.EnumUsherRequest
BAD_CONFIG, CUSTOMER_USHER_APP_ID, GENERIC_ERROR_CODE_FOR_USHER_AUTH, HANDLE_INPUT_STREAM, HANDLE_STRING, INVALID_RESPONSE_FROM_USHER, INVALID_TOKEN, ORG_ID, SESSION_ID, TIME_TO_LIVE, USER_ALREADY_EXISTS, USHER_ACCESS_TOKEN
-
-
Constructor Summary
Constructors Constructor Description UsherAuthenticationTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureWebIServerSession(TaskRequestContext trc, 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 twoStepCode, java.lang.String accessToken)
protected void
configureWebIServerSession(TaskRequestContext trc, 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 twoStepCode, java.lang.String accessToken, java.lang.String orgID)
void
processRequest(TaskRequestContext trc, TaskOutput taskOutput)
Creates an Intelligence Server session using the information supplied in the request.-
Methods inherited from class com.microstrategy.web.app.tasks.MobileAppLoginTask
checkSession, checkSession, isAuthModeEnabled, newRequestContext
-
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
-
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
-
-
-
-
Field Detail
-
pollActionParam
protected TaskParameterMetadata pollActionParam
-
usherInstallStatusParam
protected TaskParameterMetadata usherInstallStatusParam
-
accessTokenParam
protected TaskParameterMetadata accessTokenParam
-
orgIdParam
protected TaskParameterMetadata orgIdParam
-
-
Method Detail
-
processRequest
public void processRequest(TaskRequestContext trc, TaskOutput taskOutput) throws TaskException
Description copied from class:LoginTask
Creates an Intelligence Server session using the information supplied in the request.- Specified by:
processRequest
in interfaceTask
- Overrides:
processRequest
in classLoginTask
- Parameters:
trc
- TheTaskRequestContext
object that maintains the state of the request.taskOutput
- TheTaskOutput
that records the contents of the Task response.- Throws:
TaskException
- If the Task is unable to obtain a Block to store the results.TaskRequestMalformedException
- If any of the information is incorrect.- See Also:
Task.processRequest(TaskRequestContext, TaskOutput)
-
configureWebIServerSession
protected void configureWebIServerSession(TaskRequestContext trc, 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 twoStepCode, java.lang.String accessToken) throws TaskException
- Overrides:
configureWebIServerSession
in classMobileAppLoginTask
- Throws:
TaskException
-
configureWebIServerSession
protected void configureWebIServerSession(TaskRequestContext trc, 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 twoStepCode, java.lang.String accessToken, java.lang.String orgID) throws TaskException
- Overrides:
configureWebIServerSession
in classMobileAppLoginTask
- Throws:
TaskException
-
-