java.lang.Object | |||
↳ | com.microstrategy.web.beans.GenericEventHandler | ||
↳ | com.microstrategy.web.beans.SysEventHandler | ||
↳ | com.microstrategy.web.beans.ExpressionPromptEventHandlerImpl |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | IMAGE_SUFFIX_X | ||||||||||
String | IMAGE_SUFFIX_Y | ||||||||||
String | NONE_OPTION_ID | ||||||||||
String | POSITION_MARK | ||||||||||
String | WILDCARD |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected WebEvent | _event | ||||||||||
protected RequestKeys | _keys | ||||||||||
protected int | _position |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ExpressionPromptEventHandlerImpl() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
processRequest(RequestKeys keys)
Logic to process the event.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
applyLocalSettings(WebObjectSource wos)
Sets minimal flags on the WebObjectSource
| ||||||||||
boolean |
checkClearAnswer(String answer)
Based on the Prompt answer option and the answer string, this method calls clear prompt answer.
| ||||||||||
WebPromptAnswer | getAnswerByID() | ||||||||||
int |
getAnswerFormat(int position)
Returns the answer Format being used from the request keys
| ||||||||||
int |
getAppendedIntValue(String str, int defVal)
Return the integer value from the string.
| ||||||||||
String |
getIncrementalFetchParameter(int arg, int position)
Returns the incremental fetch parameter value.
| ||||||||||
int |
getIntValue(String str, int defaultVal)
Returns the integer value from the string
| ||||||||||
int |
getIntValue(String str, String msg)
Returns the int value based on the String.
| ||||||||||
WebObjectInfo |
getObject(AbstractPromptEventHandlerImpl.MdObject mObj)
Returns the WebObjectInfo associated with the MdObject
| ||||||||||
WebObjectSource |
getObjectSource()
Returns the WebObjectSource from the WebObjectsFactory
| ||||||||||
WebObjectsFactory |
getObjectsFactory()
Returns the WebObjectsFactory associated with the session.
| ||||||||||
WebPromptAnswer | getPromptAnswer() | ||||||||||
WebSessionInfo |
getSessionInfo()
Returns the WebSessionInfo object associated with the prompt
This method throws an IllegalStateException if the session is null.
| ||||||||||
String[] |
getValuesFromRequest(int arg, int index, String delim)
Returns a string array containing values corresponding to the argument
from the request keys collection.
| ||||||||||
boolean |
handleCancelPrompt()
Cancels the web prompt
| ||||||||||
void |
initUsingKeys(RequestKeys keys)
Initialize the event handler using the request keys
Sets up protected variables _keys, _event,_position
| ||||||||||
void | savePromptAnswer() | ||||||||||
void | setReuseOnPromptAnswer(WebPromptAnswer pa, WebUserAnswers userAnswers) | ||||||||||
void | setSavedPromptAnswer(WebPromptAnswer pa) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Logic to process the event. Specific event handler implementation extending this class will need to override the default behavior.
keys | the RequestKeys object containing event ID, sources, and any other information. |
---|
WebException |
---|
Sets minimal flags on the WebObjectSource
wos | - WebObjectSource |
---|
Based on the Prompt answer option and the answer string, this method calls clear prompt answer.
answer | - answer for the prompt |
---|
Returns the answer Format being used from the request keys
position | the prompt position |
---|
EnumPromptAnswerFormat
WebException | - if the answer format is unrecognized |
---|
Return the integer value from the string. If the string has a prefix, it removes the prefix and returns the appended integer value
str | - the String to parse |
---|---|
defVal | - the default value if the parsing fails |
Returns the incremental fetch parameter value. The value can be either a prefixed key or it could be just a value.
arg | - int the event argument id. |
---|---|
position | - the position of the argument. |
Returns the integer value from the string
str | - the String to be parsed |
---|---|
defaultVal | - the default value to be returned if the parsing fails |
Returns the int value based on the String. If there is an error, throws a WebException with the error message.
str | - String to parse. |
---|---|
msg | - Error message when there is a parsing error. |
WebException | - when the String could not be converted to integer. |
---|
Returns the WebObjectInfo associated with the MdObject
mObj | - MdObject |
---|
WebObjectsException | if the object cannot be retrieved |
---|
Returns the WebObjectSource from the WebObjectsFactory
Returns the WebObjectsFactory associated with the session.
Returns the WebSessionInfo object associated with the prompt This method throws an IllegalStateException if the session is null.
Returns a string array containing values corresponding to the argument from the request keys collection.
arg | - the argument id for the argument |
---|---|
index | - the position in the collection |
delim | - the delimiter string. If the delimiter is specified, argument value is separated by the delimiter. |
Cancels the web prompt
Initialize the event handler using the request keys Sets up protected variables _keys, _event,_position
keys | - the request keys |
---|