public class

RecoverDataDiscoveryErrorsTask

extends AbstractBaseTask
java.lang.Object
   ↳ com.microstrategy.web.tasks.AbstractBaseTask
     ↳ com.microstrategy.web.tasks.RecoverDataDiscoveryErrorsTask

Class Overview

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.

Summary

Constants
String PARAM_MESSAGE_ID
String PARAM_SKIP_TABLES
String PARAM_TABLE_IDS
[Expand]
Inherited Constants
From class com.microstrategy.web.tasks.AbstractBaseTask
Fields
protected TaskParameterMetadata messageIDTaskParam
protected TaskParameterMetadata skipTablesWithErrorParam
protected TaskParameterMetadata tableIDsTaskParam
[Expand]
Inherited Fields
From class com.microstrategy.web.tasks.AbstractBaseTask
Public Constructors
RecoverDataDiscoveryErrorsTask()
Creates a new SaveAndPublishCubeTask object.
Public Methods
void processRequest(TaskRequestContext context, MarkupOutput markupOutput)
This method uploads the contents of a file and submits it to IServer for cube creation.
Protected Methods
void constructTaskOutput(TaskRequestContext context, MarkupOutput markupOutput, String output)
Construct the Task output given the upload file text.
[Expand]
Inherited Methods
From class com.microstrategy.web.tasks.AbstractBaseTask
From class java.lang.Object
From interface com.microstrategy.web.tasks.Task

Constants

public static final String PARAM_MESSAGE_ID

Constant Value: "msgid"

public static final String PARAM_SKIP_TABLES

Constant Value: "skipTables"

public static final String PARAM_TABLE_IDS

Constant Value: "tableIds"

Fields

protected TaskParameterMetadata messageIDTaskParam

protected TaskParameterMetadata skipTablesWithErrorParam

protected TaskParameterMetadata tableIDsTaskParam

Public Constructors

public RecoverDataDiscoveryErrorsTask ()

Creates a new SaveAndPublishCubeTask object.

Public Methods

public void processRequest (TaskRequestContext context, MarkupOutput markupOutput)

This method uploads the contents of a file and submits it to IServer for cube creation.

  1. Check for required parameters.
  2. Try to retrieve the uploaded file. See #retrieveUploadedFile(TaskRequestContext, RequestKeys).
  3. Generate and submit XML command
  4. Validate result

Parameters
context The TaskRequestContext that contains all information about this Task invocation.
markupOutput The MarkupOutput that records the contents of the Task response.
Throws
TaskException If anything fails along the way. See the individual methods invoked by this method.

Protected Methods

protected void constructTaskOutput (TaskRequestContext context, MarkupOutput markupOutput, String output)

Construct the Task output given the upload file text.

Parameters
markupOutput The TaskOutput instance to populate into.
Throws
TaskException If there was any problem serializing the results to the TaskOutput.