|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.dispatching.service.DefaultRequestContext
it.eng.spago.dispatching.module.AbstractModule
it.eng.spagobi.services.modules.ExecuteBIObjectModule
public class ExecuteBIObjectModule
Executes a report, according to four phases; each phase is identified by a message string.
1) Creates the page
2) Selects the role
3) From the field input values loads the object and starts execution
4) See Report/Change the report state
Field Summary | |
---|---|
(package private) it.eng.spago.error.EMFErrorHandler |
errorHandler
|
static java.lang.String |
EXEC_CHANGE_STATE
|
static java.lang.String |
EXEC_PHASE_RETURN_FROM_LOOKUP
|
static java.lang.String |
EXEC_PHASE_SELECTED_ROLE
|
(package private) ExecutionController |
execContr
|
static java.lang.String |
MESSAGE_EXECUTION
|
static java.lang.String |
MODULE_PAGE
|
(package private) it.eng.spago.base.SessionContainer |
permanentSession
|
(package private) it.eng.spago.base.RequestContainer |
requestContainer
|
(package private) it.eng.spago.base.SessionContainer |
session
|
Constructor Summary | |
---|---|
ExecuteBIObjectModule()
|
Method Summary | |
---|---|
private void |
changeStateHandler(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Called after the user change state selection to pass the BIObject from a state to another |
private void |
debug(java.lang.String method,
java.lang.String message)
Trace a debug message into the log |
private void |
deleteSubObjectHandler(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Delete a subObject |
private void |
execute(BIObject obj,
BIObject.SubObjectDetail subObj,
it.eng.spago.base.SourceBean response)
Based on the object type launches the right execution mechanism. |
private void |
executionHandler(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Handles the final execution of the object |
private void |
executionSubObjectHandler(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Based on the object type lauch the right subobject execution mechanism. |
int |
findBIObjParId(java.lang.Object parIdObj)
|
private java.util.List |
getSubObjectsList(BIObject obj,
it.eng.spago.security.IEngUserProfile profile)
Get the list of subObjects of a BIObject for the current user |
void |
init(it.eng.spago.base.SourceBean config)
|
private void |
lookUpReturnHandler(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Called after the parameter value lookup selection to continue the execution phase |
private void |
pageCreationHandler(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Manage the parameter page creation preaparing and setting into the response all the necessary attributes |
private void |
selectRoleHandler(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Called after the user role selection to continue the execution phase |
void |
service(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Manage all the request in order to exec all the different BIObject execution phases |
Methods inherited from class it.eng.spago.dispatching.module.AbstractModule |
---|
getConfig, getModule, getPage, getSharedData, setModule, setPage, setSharedData |
Methods inherited from class it.eng.spago.dispatching.service.DefaultRequestContext |
---|
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse, setRequestContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MODULE_PAGE
public static final java.lang.String EXEC_PHASE_SELECTED_ROLE
public static final java.lang.String EXEC_PHASE_RETURN_FROM_LOOKUP
public static final java.lang.String EXEC_CHANGE_STATE
public static final java.lang.String MESSAGE_EXECUTION
it.eng.spago.error.EMFErrorHandler errorHandler
ExecutionController execContr
it.eng.spago.base.RequestContainer requestContainer
it.eng.spago.base.SessionContainer session
it.eng.spago.base.SessionContainer permanentSession
Constructor Detail |
---|
public ExecuteBIObjectModule()
Method Detail |
---|
public void init(it.eng.spago.base.SourceBean config)
init
in interface it.eng.spago.init.InitializerIFace
init
in class it.eng.spago.dispatching.module.AbstractModule
public void service(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
request
- The request source beanresponse
- The response Source bean
java.lang.Exception
- If an Exception occurredprivate void pageCreationHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
request
- The Spago Request SourceBeanresponse
- The Spago Response SourceBean
java.lang.Exception
private void changeStateHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
request
- The request SourceBeanresponse
- The response SourceBean
java.lang.Exception
private void executionHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
request
- The request SourceBeanresponse
- The response SourceBean
java.lang.Exception
public int findBIObjParId(java.lang.Object parIdObj)
private void lookUpReturnHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
request
- The request SourceBeanresponse
- The response SourceBean
java.lang.Exception
private void selectRoleHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
request
- The request SourceBeanresponse
- The response SourceBean
java.lang.Exception
private void deleteSubObjectHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
request
- The request SourceBeanresponse
- The response SourceBean
java.lang.Exception
private java.util.List getSubObjectsList(BIObject obj, it.eng.spago.security.IEngUserProfile profile)
obj
- BIObject container of the subObjectsprofile
- profile of the user
private void execute(BIObject obj, BIObject.SubObjectDetail subObj, it.eng.spago.base.SourceBean response)
obj
- The BIobjectsubObj
- The SubObjectDetail subObject to be executed (in case it is not null)response
- The response Source Beanprivate void executionSubObjectHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
request
- The request SourceBeanresponse
- The response SourceBean
java.lang.Exception
private void debug(java.lang.String method, java.lang.String message)
method
- Name of the method to store into the logmessage
- Message to store into the log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |