Package com.microstrategy.web.tasks
Class SaveAndPublishCubeTask
- java.lang.Object
-
- com.microstrategy.web.tasks.AbstractBaseTask
-
- com.microstrategy.web.tasks.SaveAndPublishCubeTask
-
- All Implemented Interfaces:
Task
public class SaveAndPublishCubeTask 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
descParam
protected TaskParameterMetadata
displayModeParam
protected TaskParameterMetadata
extParamsParam
protected TaskParameterMetadata
folderIDParam
protected TaskParameterMetadata
nameParam
static java.lang.String
PARAM_NAME_DISPLAY_MODE
static java.lang.String
PARAM_NAME_FOLDER_ID
static java.lang.String
PARAM_NAME_REPORT_DESC
static java.lang.String
PARAM_NAME_REPORT_NAME
protected TaskParameterMetadata
saveAsFlagsParam
protected TaskParameterMetadata
shouldRefreshParam
protected TaskParameterMetadata
shouldSaveParam
-
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 SaveAndPublishCubeTask()
Creates a new SaveAndPublishCubeTask object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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_NAME_FOLDER_ID
public static final java.lang.String PARAM_NAME_FOLDER_ID
- See Also:
- Constant Field Values
-
PARAM_NAME_REPORT_NAME
public static final java.lang.String PARAM_NAME_REPORT_NAME
- See Also:
- Constant Field Values
-
PARAM_NAME_REPORT_DESC
public static final java.lang.String PARAM_NAME_REPORT_DESC
- See Also:
- Constant Field Values
-
PARAM_NAME_DISPLAY_MODE
public static final java.lang.String PARAM_NAME_DISPLAY_MODE
- See Also:
- Constant Field Values
-
folderIDParam
protected TaskParameterMetadata folderIDParam
-
nameParam
protected TaskParameterMetadata nameParam
-
descParam
protected TaskParameterMetadata descParam
-
displayModeParam
protected TaskParameterMetadata displayModeParam
-
extParamsParam
protected TaskParameterMetadata extParamsParam
-
shouldSaveParam
protected TaskParameterMetadata shouldSaveParam
-
shouldRefreshParam
protected TaskParameterMetadata shouldRefreshParam
-
saveAsFlagsParam
protected TaskParameterMetadata saveAsFlagsParam
-
-
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)
-
-