Package com.microstrategy.web.tasks
Class RecoverDataDiscoveryErrorsTask
- java.lang.Object
-
- com.microstrategy.web.tasks.AbstractBaseTask
-
- com.microstrategy.web.tasks.RecoverDataDiscoveryErrorsTask
-
- All Implemented Interfaces:
Task
public class RecoverDataDiscoveryErrorsTask extends AbstractBaseTask
This Task processes the file uploaded from an HTML form and returns the content of the file to client. Client side JavaScript can not read the contents of local files for security reasons.- Since:
- MicroStrategy Web 9.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected TaskParameterMetadata
messageIDTaskParam
static java.lang.String
PARAM_MESSAGE_ID
static java.lang.String
PARAM_SKIP_TABLES
static java.lang.String
PARAM_TABLE_IDS
protected TaskParameterMetadata
skipTablesWithErrorParam
protected TaskParameterMetadata
tableIDsTaskParam
-
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 RecoverDataDiscoveryErrorsTask()
Creates a new SaveAndPublishCubeTask object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
constructTaskOutput(TaskRequestContext context, MarkupOutput markupOutput, java.lang.String output)
Construct the Task output given the upload file text.void
processRequest(TaskRequestContext context, MarkupOutput markupOutput)
This method uploads the contents of a file and submits it to IServer for cube creation.-
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, newRequestContext, processRequest, retrieveUploadedFile, setCompressOutput, setDescription, setID, setMetadata, setPrivileges, validateContentType
-
-
-
-
Field Detail
-
PARAM_SKIP_TABLES
public static final java.lang.String PARAM_SKIP_TABLES
- See Also:
- Constant Field Values
-
PARAM_MESSAGE_ID
public static final java.lang.String PARAM_MESSAGE_ID
- See Also:
- Constant Field Values
-
PARAM_TABLE_IDS
public static final java.lang.String PARAM_TABLE_IDS
- See Also:
- Constant Field Values
-
skipTablesWithErrorParam
protected TaskParameterMetadata skipTablesWithErrorParam
-
messageIDTaskParam
protected TaskParameterMetadata messageIDTaskParam
-
tableIDsTaskParam
protected TaskParameterMetadata tableIDsTaskParam
-
-
Method Detail
-
processRequest
public void processRequest(TaskRequestContext context, MarkupOutput markupOutput) throws TaskException
This method uploads the contents of a file and submits it to IServer for cube creation.- Check for required parameters.
- Try to retrieve the uploaded file. See
#retrieveUploadedFile(TaskRequestContext, RequestKeys)
. - Generate and submit XML command
- Validate result
- Specified by:
processRequest
in interfaceTask
- Overrides:
processRequest
in classAbstractBaseTask
- Parameters:
context
- TheTaskRequestContext
that contains all information about this Task invocation.taskOutput
- TheTaskOutput
that contains our response.- Throws:
TaskException
- If anything fails along the way. See the individual methods invoked by this method.- See Also:
Task.processRequest(TaskRequestContext, MarkupOutput)
-
constructTaskOutput
protected void constructTaskOutput(TaskRequestContext context, MarkupOutput markupOutput, java.lang.String output) throws TaskException
Construct the Task output given the upload file text.- Parameters:
markupOutput
- TheTaskOutput
instance to populate into.- Throws:
TaskException
- If there was any problem serializing the results to the TaskOutput.
-
-