it.eng.spagobi.analiticalmodel.document.service
Class ExecuteBIObjectModule

java.lang.Object
  extended by it.eng.spago.dispatching.service.DefaultRequestContext
      extended by it.eng.spago.dispatching.service.DefaultHttpRequestContext
          extended by it.eng.spago.dispatching.module.AbstractHttpModule
              extended by it.eng.spagobi.analiticalmodel.document.service.ExecuteBIObjectModule
All Implemented Interfaces:
it.eng.spago.dispatching.module.ModuleIFace, it.eng.spago.dispatching.service.HttpRequestContextIFace, it.eng.spago.dispatching.service.RequestContextIFace, it.eng.spago.dispatching.service.ServiceIFace, it.eng.spago.init.InitializerIFace, java.io.Serializable

public class ExecuteBIObjectModule
extends it.eng.spago.dispatching.module.AbstractHttpModule

Executes a report, according to three 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

Author:
Zerbetto, Fiscato, Bernabei, Mark Penningroth (Cincom Systems, Inc.)
See Also:
Serialized Form

Field Summary
static java.lang.String MESSAGE_EXECUTION
           
static java.lang.String MODULE_PAGE
           
static java.lang.String SUBMESSAGEDET
           
 
Constructor Summary
ExecuteBIObjectModule()
           
 
Method Summary
 int findBIObjParId(java.lang.Object parIdObj)
          Find bi obj par id.
 java.util.List getAsList(java.lang.Object o)
          Gets the as list.
 BIObjectParameter getLookedUpParameter(it.eng.spago.base.SourceBean request)
          Gets the looked up parameter.
 void init(it.eng.spago.base.SourceBean config)
           
 void saveViewPoint(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response)
          Save a viewpoint.
 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.AbstractHttpModule
getConfig, getModule, getModuleMethod, getPage, getSharedData, setModule, setModuleMethod, setPage, setSharedData
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultHttpRequestContext
freezeHttpResponse, getHttpRequest, getHttpResponse, getServletConfig, isHttpResponseFreezed, setRequestContext, unfreezeHttpResponse
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultRequestContext
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spago.dispatching.service.RequestContextIFace
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse
 

Field Detail

MODULE_PAGE

public static final java.lang.String MODULE_PAGE
See Also:
Constant Field Values

MESSAGE_EXECUTION

public static final java.lang.String MESSAGE_EXECUTION
See Also:
Constant Field Values

SUBMESSAGEDET

public static final java.lang.String SUBMESSAGEDET
See Also:
Constant Field Values
Constructor Detail

ExecuteBIObjectModule

public ExecuteBIObjectModule()
Method Detail

init

public void init(it.eng.spago.base.SourceBean config)
Specified by:
init in interface it.eng.spago.init.InitializerIFace
Overrides:
init in class it.eng.spago.dispatching.module.AbstractHttpModule

service

public void service(it.eng.spago.base.SourceBean request,
                    it.eng.spago.base.SourceBean response)
             throws java.lang.Exception
Manage all the request in order to exec all the different BIObject execution phases.

Parameters:
request - The request source bean
response - The response Source bean
Throws:
java.lang.Exception - If an Exception occurred

findBIObjParId

public int findBIObjParId(java.lang.Object parIdObj)
Find bi obj par id.

Parameters:
parIdObj - the par id obj
Returns:
the int

getAsList

public java.util.List getAsList(java.lang.Object o)
Gets the as list.

Parameters:
o - the o
Returns:
the as list

getLookedUpParameter

public BIObjectParameter getLookedUpParameter(it.eng.spago.base.SourceBean request)
                                       throws java.lang.Exception
Gets the looked up parameter.

Parameters:
request - the request
Returns:
the looked up parameter
Throws:
java.lang.Exception

saveViewPoint

public void saveViewPoint(it.eng.spago.base.SourceBean request,
                          it.eng.spago.base.SourceBean response)
                   throws java.lang.Exception
Save a viewpoint.

Parameters:
request - The request SourceBean
response - The response SourceBean
Throws:
java.lang.Exception - the exception