Package com.microstrategy.web.app.tasks
Class MojoRWEventsTask
- java.lang.Object
 - 
- com.microstrategy.web.tasks.AbstractBaseTask
 - 
- com.microstrategy.web.app.tasks.AbstractAppTask
 - 
- com.microstrategy.web.app.tasks.WebComponentTask
 - 
- com.microstrategy.web.app.tasks.BeanTask
 - 
- com.microstrategy.web.app.tasks.MojoRWEventsTask
 
 
 
 
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringEVENT_ARG_SOURCE_PARAMETERprotected static java.lang.StringEVENT_ARG_TRANSACTION_STRINGprotected static java.lang.StringPARAM_DESC_CHANGESprotected static java.lang.StringPARAM_NAME_CHANGESprotected static java.lang.StringPARAM_NAME_MESSAGE_ID- 
Fields inherited from class com.microstrategy.web.app.tasks.WebComponentTask
FP_NAME_CONTENT_TYPE, initializationErrorMessage 
- 
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_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 MojoRWEventsTask() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollectData(BeanTaskRequestContext btrContext)This method calls the 'collectData' method on the WebBean instance.protected java.lang.StringgetStyleName(BeanTaskRequestContext btrContext)protected voidhandleEvent(BeanTaskRequestContext btrContext)This method instructs the WebBean to handle the event.protected voidoverrideActualParameters(BeanTaskRequestContext btrContext, TransformInstance instance)Overrides any actual parameters specified in the Bean Task XML.protected voidprepareBean(BeanTaskRequestContext btrContext)This method prepares the WebBean for execution.protected voidprepareEventRequestKeys(RequestKeys requestKeys, EventInfo[] events)protected voidregisterParameterMetadata(TaskParameterMetadata parameterMetadata)Registers a specific Task parameter metadata.- 
Methods inherited from class com.microstrategy.web.app.tasks.BeanTask
createWebBean 
- 
Methods inherited from class com.microstrategy.web.app.tasks.WebComponentTask
addTransform, createUntypedWebComponent, destroy, generatesContent, getBeanInfo, init, isSuccessfullyInitialized, newRequestContext, prepareArgumentRequestKeys, prepareArgumentRequestKeys, prepareEventOrderRequestKeys, prepareEventOrderRequestKeys, prepareEventRequestKeys, prepareParameterRequestKeys, prepareRequestKeys, processRequest, registerTaskMetadata, requiresIServerSession, restoreBeanState, serializeResult, setBeanContext, setBeanInfo, setBeanName, setBeanProperties, setBeanSession, setSuccessfullyInitialized, setTaskID, transformBean 
- 
Methods inherited from class com.microstrategy.web.app.tasks.AbstractAppTask
getDescriptor 
- 
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, getCompressOutput, getID, getMetadata, getPrivileges, getSysDefaultPreferenceValue, processRequest, retrieveUploadedFile, setCompressOutput, setDescription, setID, setMetadata, setPrivileges, validateContentType 
 - 
 
 - 
 
- 
- 
Field Detail
- 
PARAM_NAME_MESSAGE_ID
protected static final java.lang.String PARAM_NAME_MESSAGE_ID
- See Also:
 - Constant Field Values
 
 
- 
PARAM_NAME_CHANGES
protected static final java.lang.String PARAM_NAME_CHANGES
- See Also:
 - Constant Field Values
 
 
- 
PARAM_DESC_CHANGES
protected static final java.lang.String PARAM_DESC_CHANGES
- See Also:
 - Constant Field Values
 
 
- 
EVENT_ARG_TRANSACTION_STRING
protected static final java.lang.String EVENT_ARG_TRANSACTION_STRING
- See Also:
 - Constant Field Values
 
 
- 
EVENT_ARG_SOURCE_PARAMETER
protected static final java.lang.String EVENT_ARG_SOURCE_PARAMETER
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
registerParameterMetadata
protected void registerParameterMetadata(TaskParameterMetadata parameterMetadata)
Description copied from class:WebComponentTaskRegisters a specific Task parameter metadata. This method is called byWebComponentTask.registerTaskMetadata(TaskMetadata). It is helpful to override in a Task so that a specific TaskParameterMetadata may be saved for later use.- Overrides:
 registerParameterMetadatain classWebComponentTask- Parameters:
 parameterMetadata- The TaskParameterMetadata object being saved.
 
- 
prepareBean
protected void prepareBean(BeanTaskRequestContext btrContext) throws TaskException
Description copied from class:WebComponentTaskThis method prepares the WebBean for execution. It is called by theWebComponentTask.processRequest(TaskRequestContext, TaskOutput)method. It performs the following actions:- Creates a new WebBean instance and adds it to the
      context. (calls 
WebComponentTask.createWebBean(BeanTaskRequestContext)) - Sets any bean properties. (calls 
WebComponentTask.setBeanProperties(BeanTaskRequestContext)) - Restores any bean state. (calls 
WebComponentTask.restoreBeanState(BeanTaskRequestContext)) 
- Overrides:
 prepareBeanin classWebComponentTask- Parameters:
 btrContext- The BeanTaskRequestContext to use.- Throws:
 TaskException- If anything fails along the way.
 - Creates a new WebBean instance and adds it to the
      context. (calls 
 
- 
collectData
protected void collectData(BeanTaskRequestContext btrContext) throws TaskException
Description copied from class:WebComponentTaskThis method calls the 'collectData' method on the WebBean instance. This method is called byWebComponentTask.processRequest(TaskRequestContext, TaskOutput).- Overrides:
 collectDatain classWebComponentTask- Parameters:
 btrContext- The BeanTaskRequestContext object.- Throws:
 TaskException- If there is a failure while trying to collect data for the Web Bean.
 
- 
prepareEventRequestKeys
protected void prepareEventRequestKeys(RequestKeys requestKeys, EventInfo[] events)
- Overrides:
 prepareEventRequestKeysin classWebComponentTask
 
- 
getStyleName
protected java.lang.String getStyleName(BeanTaskRequestContext btrContext) throws TaskRequestMalformedException
- Overrides:
 getStyleNamein classWebComponentTask- Throws:
 TaskRequestMalformedException
 
- 
overrideActualParameters
protected void overrideActualParameters(BeanTaskRequestContext btrContext, TransformInstance instance) throws TaskRequestMalformedException
Description copied from class:WebComponentTaskOverrides any actual parameters specified in the Bean Task XML. This method is called by theWebComponentTask.serializeResult(BeanTaskRequestContext, TaskOutput)method.- Overrides:
 overrideActualParametersin classWebComponentTask- Parameters:
 btrContext- The BeanTaskRequestContext to use.instance- The TransformInstance to operate on.- Throws:
 TaskRequestMalformedException
 
- 
handleEvent
protected void handleEvent(BeanTaskRequestContext btrContext) throws TaskException
Description copied from class:WebComponentTaskThis method instructs the WebBean to handle the event. It is called fromWebComponentTask.processRequest(TaskRequestContext, TaskOutput).- Overrides:
 handleEventin classWebComponentTask- Parameters:
 btrContext- The BeanTaskRequestContext that contains the WebBean instance.- Throws:
 TaskException- If something fails in the process of handling the event.TaskRequestMalformedException- If there was an exception raised while handling the event.
 
 - 
 
 -