public class

SaveAndPublishCubeTask

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

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_NAME_DISPLAY_MODE
String PARAM_NAME_FOLDER_ID
String PARAM_NAME_REPORT_DESC
String PARAM_NAME_REPORT_NAME
[Expand]
Inherited Constants
From class com.microstrategy.web.tasks.AbstractBaseTask
Fields
protected TaskParameterMetadata descParam
protected TaskParameterMetadata displayModeParam
protected TaskParameterMetadata extParamsParam
protected TaskParameterMetadata folderIDParam
protected TaskParameterMetadata nameParam
protected TaskParameterMetadata saveAsFlagsParam
protected TaskParameterMetadata shouldRefreshParam
protected TaskParameterMetadata shouldSaveParam
[Expand]
Inherited Fields
From class com.microstrategy.web.tasks.AbstractBaseTask
Public Constructors
SaveAndPublishCubeTask()
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 objectId, String messageID)
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_NAME_DISPLAY_MODE

Constant Value: "displayMode"

public static final String PARAM_NAME_FOLDER_ID

Constant Value: "folderID"

public static final String PARAM_NAME_REPORT_DESC

Constant Value: "objDesc"

public static final String PARAM_NAME_REPORT_NAME

Constant Value: "objName"

Fields

protected TaskParameterMetadata descParam

protected TaskParameterMetadata displayModeParam

protected TaskParameterMetadata extParamsParam

protected TaskParameterMetadata folderIDParam

protected TaskParameterMetadata nameParam

protected TaskParameterMetadata saveAsFlagsParam

protected TaskParameterMetadata shouldRefreshParam

protected TaskParameterMetadata shouldSaveParam

Public Constructors

public SaveAndPublishCubeTask ()

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 objectId, String messageID)

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.