java.lang.Object | |||
↳ | com.microstrategy.web.beans.GenericEventHandler | ||
↳ | com.microstrategy.web.beans.SysEventHandler | ||
↳ | com.microstrategy.web.app.beans.AdminServletEventHandler |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected AppContext | _appContext |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AdminServletEventHandler() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addEvent(Element eventNode)
This method is deprecated.
The GenericEventHandler is not responsible to read the xml structure.
| ||||||||||
boolean |
delegateRequest(RequestKeys keys)
The default implementation of this method simply delegates the event to
the next source component specified in the static field
GenericWebEvent.URL_SOURCE_NAME . | ||||||||||
ComponentInitializationContext |
getInitializationContext()
Returns a wrapper object holdiong a reference to the beans that have been initialized for the current request
| ||||||||||
Class |
getSupportedWebComponentType()
Returns the
WebComponent class by default. | ||||||||||
WebEvent |
getWebEvent(int eventID)
Extends the getWebEvent by making sure the WebEventOpenPage, WebEventOpenHome and WebEventCancel
events always return a non-null value.
| ||||||||||
boolean |
handleRequest(RequestKeys keys)
This is the main method.
| ||||||||||
boolean |
isCSRFCheckRequired(String pageName)
Check if we need to do the CSRF check for the target page,
the check is based on whether the page is login required,
and whether the request query string is empty@return
| ||||||||||
boolean |
isEventWait()
Get the flag which indicate whether we make sure bean status is ready before executing the next event
| ||||||||||
void | processExtraEvents() | ||||||||||
boolean |
processRequest(RequestKeys keys)
handle request as specified by the RequestKeys
| ||||||||||
void |
setEventWait(boolean evtWait)
Set the flag which indicate whether we make sure bean status is ready before executing the next event
| ||||||||||
void |
setWebComponent(WebComponent component)
set the corresponding web component (should be of ServletWebComponent type) for this event handler
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AppComponent | getAppComponent() | ||||||||||
String |
getArgumentValue(WebEvent event, int argID)
Utility method to obtain the value of a given event argument
| ||||||||||
int | getCurrentEventID() | ||||||||||
boolean |
handleSetTopLeftPosition(RequestKeys keys)
Utility method for processing a location change request, by manipulating the
top and left properties of the instance
| ||||||||||
WebEvent |
newDefaultEventInstance()
This method is called to create a concrete new instance of a WebEvent when the event-class
has not specified in the EventInfo.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
This method is deprecated.
The GenericEventHandler is not responsible to read the xml structure.
Extends the addEvent method by creating the ServletEvent instead of a GenericWebEvent.
eventNode | an xml node with the event information |
---|
The default implementation of this method simply delegates the event to
the next source component specified in the static field
GenericWebEvent.URL_SOURCE_NAME
.
keys | the RequestKeys object containing event ID, sources, and any other information. |
---|
processRequest
or one of its children.Returns a wrapper object holdiong a reference to the beans that have been initialized for the current request
Returns the WebComponent
class by default. Subclasses should
override this to return their respective WebComponent
or WebBean
int.
Class
of the WebComponent
this event
handler is associated with.
Extends the getWebEvent by making sure the WebEventOpenPage, WebEventOpenHome and WebEventCancel events always return a non-null value. These events are critical to the servlet exectuion.
eventID | the event id of type EnumServletEvents . |
---|
This is the main method. It handles the events in the request.
First it calls the getEventsFromRequest
method to get an ordered
list of the events that needs to be handled, then it process each one of the events.
The process of each event consists on:
createPage
method)
processPage
method).
saveReturnToPage
method, which combined with the ReturnTo
event supports to go back to the last visited page.saveLastSuccesfulPage
,
this combined with the fact that if at the end the page is in cancelled state
the servlet calls restoreLastSuccesfulPage
, provide support for
cancelling beans execution.keys | the keys with the request information |
---|
WebException | if an unknown exception happens or if the page cannot be created. |
---|
Check if we need to do the CSRF check for the target page, the check is based on whether the page is login required, and whether the request query string is empty@return
WebException |
---|
Get the flag which indicate whether we make sure bean status is ready before executing the next event
handle request as specified by the RequestKeys
keys | input request |
---|
WebException |
---|
Set the flag which indicate whether we make sure bean status is ready before executing the next event
set the corresponding web component (should be of ServletWebComponent type) for this event handler
component | the input web component |
---|
AppComponent
instance associated to this event handler
Utility method to obtain the value of a given event argument
event | WebEvent to analyze |
---|---|
argID | integer identifier of the argument to search for |
Utility method for processing a location change request, by manipulating the top and left properties of the instance
keys | RequestKeys from where the event, top and left information will be retrieved |
---|
This method is called to create a concrete new instance of a WebEvent when the event-class has not specified in the EventInfo.